Commit e1e572d6 authored by Natanael Copa's avatar Natanael Copa

Merge remote branch 'larena/master'

parents bee68ae8 8b7f65e4
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="bacula-client"
_realname="bacula"
pkgver=3.0.3
pkgrel=0
pkgdesc="Client (File Daemon) of Bacula, a network based backup program"
url="http://www.bacula.org"
license="GPL2"
depends="openssl ncurses"
makedepends="openssl-dev autoconf ncurses-dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$_realname/$_realname/$pkgver/$_realname-$pkgver.tar.gz
bacula-fd-init
bacula-fd-conf
configure.in.patch
os.m4.patch"
prepare () {
cd "$srcdir/$_realname-$pkgver"
patch -p1 < ../../configure.in.patch
patch -p1 < ../../os.m4.patch
}
build() {
cd "$srcdir/$_realname-$pkgver"
export LDFLAGS=
# Need to run configure at least once
# in order to do not go into an infinite loop
./configure
make configure
make distclean
./configure --prefix=/usr \
--sysconfdir=/etc/bacula \
--localstatedir=/var \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--infodir=/usr/share/info \
--with-pid-dir=/var/run \
--with-subsys-dir=/var/lock/subsys \
--enable-largefile \
--enable-client-only \
--disable-nls \
--with-openssl=/usr/include/openssl \
--with-scriptdir=/etc/bacula/scripts \
--with-working-dir=/var/bacula \
--with-fd-user=root \
--with-fd-group=root \
--with-fd-password=ca4pheexie1aeC1hee3i \
make || return 1
}
package() {
cd "$srcdir/$_realname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm755 $srcdir/bacula-fd-init \
$pkgdir/etc/init.d/bacula-fd
install -Dm644 $srcdir/bacula-fd-conf \
$pkgdir/etc/conf.d/bacula-fd
}
md5sums="feba58691b674b12056359d459ad6940 bacula-3.0.3.tar.gz
38b0fe78acdc5e65aec3a59578e98a20 bacula-fd-init
4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf
ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch
cf7a2a4e972697f54364654c4e282b8b os.m4.patch"
#!/bin/sh
chown bacula.bacula /var/bacula
#!/bin/sh
addgroup -S bacula 2>/dev/null
exit 0
# Config file for /etc/init.d/bacula-fd
# Options for the file daemon.
FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf"
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-backup/bacula/files/3.0.3/bacula-fd-init,v 1.1 2009/11/08 17:14:46 wschlich Exp $
depend() {
need net
use dns
}
start() {
ebegin "Starting bacula file daemon"
start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
-- ${FD_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping bacula file daemon"
start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid
eend $?
}
--- bacula-3.0.3-orig/autoconf/configure.in Sun Oct 18 09:10:16 2009
+++ bacula-3.0.3/autoconf/configure.in Wed Dec 2 14:13:44 2009
@@ -2576,6 +2576,20 @@
fi
TAPEDRIVE="/dev/nrmt0"
;;
+alpine)
+ dnl Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ fi
+ if `test -f /etc/alpine-release && grep -q alpine /etc/alpine-release`; then
+ DISTNAME="alpine"
+ fi
+ DISTVER=`cat /etc/alpine-release`
+ TAPEDRIVE="/dev/nst0"
+ PSCMD="ps -e -o pid,comm"
+ largefile_support="yes"
+ ;;
bsdi)
DISTVER=`uname -a |awk '{print $3}'`
TAPEDRIVE="/dev/nrmt0"
--- bacula-3.0.3-orig/autoconf/bacula-macros/os.m4 Sun Oct 18 09:10:16 2009
+++ bacula-3.0.3/autoconf/bacula-macros/os.m4 Wed Dec 2 13:48:30 2009
@@ -201,6 +201,9 @@
elif test -f /etc/gentoo-release
then
DISTNAME=gentoo
+elif test -f /etc/alpine-release
+then
+ DISTNAME=alpine
elif test -f /etc/debian_version
then
DISTNAME=debian
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="bacula"
pkgver=3.0.3
pkgrel=0
pkgdesc="Enterprise ready, network based backup program"
url="http://www.bacula.org"
license="GPL2"
depends="postgresql openssl ncurses"
makedepends="postgresql-dev openssl-dev ncurses-dev autoconf"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
bacula-dir-init
bacula-dir-conf
bacula-sd-init
bacula-sd-conf
bacula-fd-init
bacula-fd-conf
configure.in.patch
os.m4.patch"
prepare () {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 < ../../configure.in.patch
patch -p1 < ../../os.m4.patch
}
build() {
cd "$srcdir/$pkgname-$pkgver"
export LDFLAGS=
# Need to run configure at least once
# in order to do not go into an infinite loop
./configure
make configure
make distclean
./configure --prefix=/usr \
--sysconfdir=/etc/bacula \
--localstatedir=/var \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--infodir=/usr/share/info \
--with-pid-dir=/var/run \
--with-subsys-dir=/var/lock/subsys \
--enable-largefile \
--disable-nls \
--with-openssl=/usr/include/openssl \
--with-postgresql=/usr \
--with-scriptdir=/etc/bacula/scripts \
--with-working-dir=/var/bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=root \
--with-fd-group=root \
--with-dir-password=pie9Sah6aZo4aiS5te5e \
--with-fd-password=ca4pheexie1aeC1hee3i \
--with-sd-password=Saphaech3xohmuDaDaLi
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
for DAEMON in dir sd fd
do
install -Dm755 $srcdir/bacula-${DAEMON}-init \
$pkgdir/etc/init.d/bacula-${DAEMON}
install -Dm644 $srcdir/bacula-${DAEMON}-conf \
$pkgdir/etc/conf.d/bacula-${DAEMON}
done
}
md5sums="feba58691b674b12056359d459ad6940 bacula-3.0.3.tar.gz
2e11ca528feb60adc1bb09a6488eb654 bacula-dir-init
20f28a16f34e3f20ed18ed81b010e765 bacula-dir-conf
38603c86eae43e8a38962bb8590c41dd bacula-sd-init
afe2f9a4d79d7d96eb9372d003d10f86 bacula-sd-conf
38b0fe78acdc5e65aec3a59578e98a20 bacula-fd-init
4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf
ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch
cf7a2a4e972697f54364654c4e282b8b os.m4.patch"
# Config file for /etc/init.d/bacula-dir
# Options for the director daemon.
# The DIR can be run as a non-root user, however
# please ensure that this user has proper permissions to
# access your backup devices.
DIR_OPTIONS="-u bacula -g bacula -c /etc/bacula/bacula-dir.conf"
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-backup/bacula/files/3.0.3/bacula-dir-init,v 1.1 2009/11/08 17:14:46 wschlich Exp $
depend() {
need net postgresql
after firewall
use dns bacula-fd bacula-sd
}
start() {
ebegin "Starting bacula director"
start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
-- ${DIR_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping bacula director"
start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid
eend $?
}
# Config file for /etc/init.d/bacula-fd
# Options for the file daemon.
FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf"
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-backup/bacula/files/3.0.3/bacula-fd-init,v 1.1 2009/11/08 17:14:46 wschlich Exp $
depend() {
need net
use dns
}
start() {
ebegin "Starting bacula file daemon"
start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
-- ${FD_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping bacula file daemon"
start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid
eend $?
}
# Config file for /etc/init.d/bacula-sd
# Options for the storage daemon.
# The SD can be run as a non-root user, however
# please ensure that this user has proper permissions to
# access your backup devices.
SD_OPTIONS="-u bacula -g bacula -c /etc/bacula/bacula-sd.conf"
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-backup/bacula/files/3.0.3/bacula-sd-init,v 1.1 2009/11/08 17:14:46 wschlich Exp $
depend() {
need net
use dns
}
start() {
ebegin "Starting bacula storage daemon"
start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
-- ${SD_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping bacula storage daemon"
start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid
eend $?
}
#!/bin/sh
chown bacula.bacula /var/bacula
#!/bin/sh
addgroup -S bacula 2>/dev/null
adduser -h /var/bacula/ -s /bin/false -G bacula -S -H -D bacula 2>/dev/null
exit 0
--- bacula-3.0.3-orig/autoconf/configure.in Sun Oct 18 09:10:16 2009
+++ bacula-3.0.3/autoconf/configure.in Wed Dec 2 14:13:44 2009
@@ -2576,6 +2576,20 @@
fi
TAPEDRIVE="/dev/nrmt0"
;;
+alpine)
+ dnl Make sure hostname is resolved
+ ping -c 1 $hostname 2>&1 1>/dev/null
+ if test ! $? = 0; then
+ hostname="localhost"
+ fi
+ if `test -f /etc/alpine-release && grep -q alpine /etc/alpine-release`; then
+ DISTNAME="alpine"
+ fi
+ DISTVER=`cat /etc/alpine-release`
+ TAPEDRIVE="/dev/nst0"
+ PSCMD="ps -e -o pid,comm"
+ largefile_support="yes"
+ ;;
bsdi)
DISTVER=`uname -a |awk '{print $3}'`
TAPEDRIVE="/dev/nrmt0"
--- bacula-3.0.3-orig/autoconf/bacula-macros/os.m4 Sun Oct 18 09:10:16 2009
+++ bacula-3.0.3/autoconf/bacula-macros/os.m4 Wed Dec 2 13:48:30 2009
@@ -201,6 +201,9 @@
elif test -f /etc/gentoo-release
then
DISTNAME=gentoo
+elif test -f /etc/alpine-release
+then
+ DISTNAME=alpine
elif test -f /etc/debian_version
then
DISTNAME=debian
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="mtx"
pkgver=1.3.12
pkgrel=0
pkgdesc="SCSI Media Changer and Backup Device Control"
url="http://mtx.opensource-sw.net/"
license="GPL2"
depends=""
makedepends=""
install=""
subpackages=""
source="http://downloads.sourceforge.net/mtx/$pkgname-$pkgver.tar.gz"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
--datadir=/usr/share
make || return 1
make prefix="$pkgdir" install
}
md5sums="ce8f0e44671fb0c7d9ec30bb0bfa8b5c mtx-1.3.12.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment