From ad5a02324292519891ef495f66889a1878a1275a Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Tue, 8 Jun 2010 14:45:04 +0000 Subject: main/bacula: moved from testing --- main/bacula-client/APKBUILD | 70 +++++++++++++++++ main/bacula-client/bacula-client.post-install | 2 + main/bacula-client/bacula-client.pre-install | 3 + main/bacula-client/bacula-fd-conf | 4 + main/bacula-client/bacula-fd-init | 22 ++++++ main/bacula-client/configure.in.patch | 23 ++++++ main/bacula-client/os.m4.patch | 12 +++ main/bacula/APKBUILD | 96 ++++++++++++++++++++++++ main/bacula/bacula-dir-conf | 7 ++ main/bacula/bacula-dir-init | 23 ++++++ main/bacula/bacula-fd-conf | 4 + main/bacula/bacula-fd-init | 22 ++++++ main/bacula/bacula-sd-conf | 7 ++ main/bacula/bacula-sd-init | 22 ++++++ main/bacula/bacula.post-install | 10 +++ main/bacula/bacula.pre-install | 4 + main/bacula/configure.in.patch | 23 ++++++ main/bacula/os.m4.patch | 12 +++ testing/bacula-client/APKBUILD | 70 ----------------- testing/bacula-client/bacula-client.post-install | 2 - testing/bacula-client/bacula-client.pre-install | 3 - testing/bacula-client/bacula-fd-conf | 4 - testing/bacula-client/bacula-fd-init | 22 ------ testing/bacula-client/configure.in.patch | 23 ------ testing/bacula-client/os.m4.patch | 12 --- testing/bacula/APKBUILD | 96 ------------------------ testing/bacula/bacula-dir-conf | 7 -- testing/bacula/bacula-dir-init | 23 ------ testing/bacula/bacula-fd-conf | 4 - testing/bacula/bacula-fd-init | 22 ------ testing/bacula/bacula-sd-conf | 7 -- testing/bacula/bacula-sd-init | 22 ------ testing/bacula/bacula.post-install | 10 --- testing/bacula/bacula.pre-install | 4 - testing/bacula/configure.in.patch | 23 ------ testing/bacula/os.m4.patch | 12 --- 36 files changed, 366 insertions(+), 366 deletions(-) create mode 100644 main/bacula-client/APKBUILD create mode 100644 main/bacula-client/bacula-client.post-install create mode 100644 main/bacula-client/bacula-client.pre-install create mode 100644 main/bacula-client/bacula-fd-conf create mode 100644 main/bacula-client/bacula-fd-init create mode 100644 main/bacula-client/configure.in.patch create mode 100644 main/bacula-client/os.m4.patch create mode 100644 main/bacula/APKBUILD create mode 100644 main/bacula/bacula-dir-conf create mode 100644 main/bacula/bacula-dir-init create mode 100644 main/bacula/bacula-fd-conf create mode 100644 main/bacula/bacula-fd-init create mode 100644 main/bacula/bacula-sd-conf create mode 100644 main/bacula/bacula-sd-init create mode 100644 main/bacula/bacula.post-install create mode 100644 main/bacula/bacula.pre-install create mode 100644 main/bacula/configure.in.patch create mode 100644 main/bacula/os.m4.patch delete mode 100644 testing/bacula-client/APKBUILD delete mode 100644 testing/bacula-client/bacula-client.post-install delete mode 100644 testing/bacula-client/bacula-client.pre-install delete mode 100644 testing/bacula-client/bacula-fd-conf delete mode 100644 testing/bacula-client/bacula-fd-init delete mode 100644 testing/bacula-client/configure.in.patch delete mode 100644 testing/bacula-client/os.m4.patch delete mode 100644 testing/bacula/APKBUILD delete mode 100644 testing/bacula/bacula-dir-conf delete mode 100644 testing/bacula/bacula-dir-init delete mode 100644 testing/bacula/bacula-fd-conf delete mode 100644 testing/bacula/bacula-fd-init delete mode 100644 testing/bacula/bacula-sd-conf delete mode 100644 testing/bacula/bacula-sd-init delete mode 100644 testing/bacula/bacula.post-install delete mode 100644 testing/bacula/bacula.pre-install delete mode 100644 testing/bacula/configure.in.patch delete mode 100644 testing/bacula/os.m4.patch diff --git a/main/bacula-client/APKBUILD b/main/bacula-client/APKBUILD new file mode 100644 index 0000000000..b3921077e4 --- /dev/null +++ b/main/bacula-client/APKBUILD @@ -0,0 +1,70 @@ +# Contributor: Leonardo Arena +# Maintainer: Leonardo Arena +pkgname="bacula-client" +_realname="bacula" +pkgver=5.0.0 +pkgrel=3 +pkgdesc="Client (File Daemon) of Bacula, a network based backup program" +url="http://www.bacula.org" +license="GPL2" +depends="" +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 \ + --enable-smartalloc \ + --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="68e008d2578a6d9a50af60439db17dcb bacula-5.0.0.tar.gz +38b0fe78acdc5e65aec3a59578e98a20 bacula-fd-init +4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf +ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch +cf7a2a4e972697f54364654c4e282b8b os.m4.patch" diff --git a/main/bacula-client/bacula-client.post-install b/main/bacula-client/bacula-client.post-install new file mode 100644 index 0000000000..51274b5c3f --- /dev/null +++ b/main/bacula-client/bacula-client.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +chown bacula.bacula /var/bacula diff --git a/main/bacula-client/bacula-client.pre-install b/main/bacula-client/bacula-client.pre-install new file mode 100644 index 0000000000..54f4087708 --- /dev/null +++ b/main/bacula-client/bacula-client.pre-install @@ -0,0 +1,3 @@ +#!/bin/sh +addgroup -S bacula 2>/dev/null +exit 0 diff --git a/main/bacula-client/bacula-fd-conf b/main/bacula-client/bacula-fd-conf new file mode 100644 index 0000000000..033ef74b4b --- /dev/null +++ b/main/bacula-client/bacula-fd-conf @@ -0,0 +1,4 @@ +# 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" diff --git a/main/bacula-client/bacula-fd-init b/main/bacula-client/bacula-fd-init new file mode 100644 index 0000000000..618b3508c7 --- /dev/null +++ b/main/bacula-client/bacula-fd-init @@ -0,0 +1,22 @@ +#!/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 $? +} diff --git a/main/bacula-client/configure.in.patch b/main/bacula-client/configure.in.patch new file mode 100644 index 0000000000..cfe2a0b7cf --- /dev/null +++ b/main/bacula-client/configure.in.patch @@ -0,0 +1,23 @@ +--- 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" diff --git a/main/bacula-client/os.m4.patch b/main/bacula-client/os.m4.patch new file mode 100644 index 0000000000..95dc5666ad --- /dev/null +++ b/main/bacula-client/os.m4.patch @@ -0,0 +1,12 @@ +--- 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 diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD new file mode 100644 index 0000000000..ff4161ea1c --- /dev/null +++ b/main/bacula/APKBUILD @@ -0,0 +1,96 @@ +# Contributor: Leonardo Arena +# Maintainer: Leonardo Arena +pkgname="bacula" +pkgver=5.0.1 +pkgrel=3 +pkgdesc="Enterprise ready, network based backup program" +url="http://www.bacula.org" +license="GPL2" +depends="postgresql" +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 \ + --with-logdir=/var/log \ + --enable-largefile \ + --enable-smartalloc \ + --disable-nls \ + --with-openssl=/usr/include/openssl \ + --with-postgresql \ + --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=PuemReTsKKObLe3TTaU73a3dPWwISW \ + --with-fd-password=Mbh1ujsgZ2ogRFVjPWD9TAVMFP6o8E \ + --with-sd-password=icpaksuq0gpDStLT8Uqgk1HIozFnx1 \ + --with-db-password=BQrlfPPfdXdMHlJID0HrGHZde2Lqd9 + + 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 + install -Dm644 examples/sample-query.sql "$pkgdir"/etc/bacula/scripts/query.sql + mkdir -p "$pkgdir"/var/run/bacula + # Fix correct log dir + sed -i -e 's%/var/bacula/log%/var/log/bacula%' "$pkgdir"/etc/bacula/bacula-dir.conf + # Install logrotate script + install -Dm644 scripts/logrotate $pkgdir/etc/logrotate.d/bacula + sed -i -e 's%/var/bacula/log%/var/log/bacula%' "$pkgdir"/etc/logrotate.d/bacula +} + +md5sums="beb9f8da196b3c9ffb0356f087dbdb99 bacula-5.0.1.tar.gz +b1b328013634c98119663730e3e2da7e bacula-dir-init +20f28a16f34e3f20ed18ed81b010e765 bacula-dir-conf +5ae1fba6860a320394d65744e5640bdb bacula-sd-init +afe2f9a4d79d7d96eb9372d003d10f86 bacula-sd-conf +6ae93e570f95fa845fa534c2d2efaac0 bacula-fd-init +4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf +ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch +cf7a2a4e972697f54364654c4e282b8b os.m4.patch" diff --git a/main/bacula/bacula-dir-conf b/main/bacula/bacula-dir-conf new file mode 100644 index 0000000000..17a56161f0 --- /dev/null +++ b/main/bacula/bacula-dir-conf @@ -0,0 +1,7 @@ +# 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" diff --git a/main/bacula/bacula-dir-init b/main/bacula/bacula-dir-init new file mode 100644 index 0000000000..033d72f9a0 --- /dev/null +++ b/main/bacula/bacula-dir-init @@ -0,0 +1,23 @@ +#!/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/bacula-dir.*.pid + eend $? +} diff --git a/main/bacula/bacula-fd-conf b/main/bacula/bacula-fd-conf new file mode 100644 index 0000000000..033ef74b4b --- /dev/null +++ b/main/bacula/bacula-fd-conf @@ -0,0 +1,4 @@ +# 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" diff --git a/main/bacula/bacula-fd-init b/main/bacula/bacula-fd-init new file mode 100644 index 0000000000..1e36a19479 --- /dev/null +++ b/main/bacula/bacula-fd-init @@ -0,0 +1,22 @@ +#!/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/bacula-fd.*.pid + eend $? +} diff --git a/main/bacula/bacula-sd-conf b/main/bacula/bacula-sd-conf new file mode 100644 index 0000000000..88e13aa0eb --- /dev/null +++ b/main/bacula/bacula-sd-conf @@ -0,0 +1,7 @@ +# 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" diff --git a/main/bacula/bacula-sd-init b/main/bacula/bacula-sd-init new file mode 100644 index 0000000000..2375b8e457 --- /dev/null +++ b/main/bacula/bacula-sd-init @@ -0,0 +1,22 @@ +#!/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/bacula-sd.*.pid + eend $? +} diff --git a/main/bacula/bacula.post-install b/main/bacula/bacula.post-install new file mode 100644 index 0000000000..a092957361 --- /dev/null +++ b/main/bacula/bacula.post-install @@ -0,0 +1,10 @@ +#!/bin/sh +for dir in /var/bacula /var/log/bacula /var/run/bacula /var/lib/bacula /etc/bacula/scripts/make_catalog_backup* +do + chown bacula.bacula $dir +done + +for file in create_postgresql_database make_postgresql_tables grant_postgresql_privileges +do + chown postgres /etc/bacula/scripts/$file +done diff --git a/main/bacula/bacula.pre-install b/main/bacula/bacula.pre-install new file mode 100644 index 0000000000..bfac8567a5 --- /dev/null +++ b/main/bacula/bacula.pre-install @@ -0,0 +1,4 @@ +#!/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 diff --git a/main/bacula/configure.in.patch b/main/bacula/configure.in.patch new file mode 100644 index 0000000000..cfe2a0b7cf --- /dev/null +++ b/main/bacula/configure.in.patch @@ -0,0 +1,23 @@ +--- 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" diff --git a/main/bacula/os.m4.patch b/main/bacula/os.m4.patch new file mode 100644 index 0000000000..95dc5666ad --- /dev/null +++ b/main/bacula/os.m4.patch @@ -0,0 +1,12 @@ +--- 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 diff --git a/testing/bacula-client/APKBUILD b/testing/bacula-client/APKBUILD deleted file mode 100644 index b3921077e4..0000000000 --- a/testing/bacula-client/APKBUILD +++ /dev/null @@ -1,70 +0,0 @@ -# Contributor: Leonardo Arena -# Maintainer: Leonardo Arena -pkgname="bacula-client" -_realname="bacula" -pkgver=5.0.0 -pkgrel=3 -pkgdesc="Client (File Daemon) of Bacula, a network based backup program" -url="http://www.bacula.org" -license="GPL2" -depends="" -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 \ - --enable-smartalloc \ - --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="68e008d2578a6d9a50af60439db17dcb bacula-5.0.0.tar.gz -38b0fe78acdc5e65aec3a59578e98a20 bacula-fd-init -4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf -ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch -cf7a2a4e972697f54364654c4e282b8b os.m4.patch" diff --git a/testing/bacula-client/bacula-client.post-install b/testing/bacula-client/bacula-client.post-install deleted file mode 100644 index 51274b5c3f..0000000000 --- a/testing/bacula-client/bacula-client.post-install +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -chown bacula.bacula /var/bacula diff --git a/testing/bacula-client/bacula-client.pre-install b/testing/bacula-client/bacula-client.pre-install deleted file mode 100644 index 54f4087708..0000000000 --- a/testing/bacula-client/bacula-client.pre-install +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -addgroup -S bacula 2>/dev/null -exit 0 diff --git a/testing/bacula-client/bacula-fd-conf b/testing/bacula-client/bacula-fd-conf deleted file mode 100644 index 033ef74b4b..0000000000 --- a/testing/bacula-client/bacula-fd-conf +++ /dev/null @@ -1,4 +0,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" diff --git a/testing/bacula-client/bacula-fd-init b/testing/bacula-client/bacula-fd-init deleted file mode 100644 index 618b3508c7..0000000000 --- a/testing/bacula-client/bacula-fd-init +++ /dev/null @@ -1,22 +0,0 @@ -#!/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 $? -} diff --git a/testing/bacula-client/configure.in.patch b/testing/bacula-client/configure.in.patch deleted file mode 100644 index cfe2a0b7cf..0000000000 --- a/testing/bacula-client/configure.in.patch +++ /dev/null @@ -1,23 +0,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" diff --git a/testing/bacula-client/os.m4.patch b/testing/bacula-client/os.m4.patch deleted file mode 100644 index 95dc5666ad..0000000000 --- a/testing/bacula-client/os.m4.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- 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 diff --git a/testing/bacula/APKBUILD b/testing/bacula/APKBUILD deleted file mode 100644 index ff4161ea1c..0000000000 --- a/testing/bacula/APKBUILD +++ /dev/null @@ -1,96 +0,0 @@ -# Contributor: Leonardo Arena -# Maintainer: Leonardo Arena -pkgname="bacula" -pkgver=5.0.1 -pkgrel=3 -pkgdesc="Enterprise ready, network based backup program" -url="http://www.bacula.org" -license="GPL2" -depends="postgresql" -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 \ - --with-logdir=/var/log \ - --enable-largefile \ - --enable-smartalloc \ - --disable-nls \ - --with-openssl=/usr/include/openssl \ - --with-postgresql \ - --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=PuemReTsKKObLe3TTaU73a3dPWwISW \ - --with-fd-password=Mbh1ujsgZ2ogRFVjPWD9TAVMFP6o8E \ - --with-sd-password=icpaksuq0gpDStLT8Uqgk1HIozFnx1 \ - --with-db-password=BQrlfPPfdXdMHlJID0HrGHZde2Lqd9 - - 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 - install -Dm644 examples/sample-query.sql "$pkgdir"/etc/bacula/scripts/query.sql - mkdir -p "$pkgdir"/var/run/bacula - # Fix correct log dir - sed -i -e 's%/var/bacula/log%/var/log/bacula%' "$pkgdir"/etc/bacula/bacula-dir.conf - # Install logrotate script - install -Dm644 scripts/logrotate $pkgdir/etc/logrotate.d/bacula - sed -i -e 's%/var/bacula/log%/var/log/bacula%' "$pkgdir"/etc/logrotate.d/bacula -} - -md5sums="beb9f8da196b3c9ffb0356f087dbdb99 bacula-5.0.1.tar.gz -b1b328013634c98119663730e3e2da7e bacula-dir-init -20f28a16f34e3f20ed18ed81b010e765 bacula-dir-conf -5ae1fba6860a320394d65744e5640bdb bacula-sd-init -afe2f9a4d79d7d96eb9372d003d10f86 bacula-sd-conf -6ae93e570f95fa845fa534c2d2efaac0 bacula-fd-init -4500ce2d62bf9df33c07f70dc40f7b85 bacula-fd-conf -ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch -cf7a2a4e972697f54364654c4e282b8b os.m4.patch" diff --git a/testing/bacula/bacula-dir-conf b/testing/bacula/bacula-dir-conf deleted file mode 100644 index 17a56161f0..0000000000 --- a/testing/bacula/bacula-dir-conf +++ /dev/null @@ -1,7 +0,0 @@ -# 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" diff --git a/testing/bacula/bacula-dir-init b/testing/bacula/bacula-dir-init deleted file mode 100644 index 033d72f9a0..0000000000 --- a/testing/bacula/bacula-dir-init +++ /dev/null @@ -1,23 +0,0 @@ -#!/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/bacula-dir.*.pid - eend $? -} diff --git a/testing/bacula/bacula-fd-conf b/testing/bacula/bacula-fd-conf deleted file mode 100644 index 033ef74b4b..0000000000 --- a/testing/bacula/bacula-fd-conf +++ /dev/null @@ -1,4 +0,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" diff --git a/testing/bacula/bacula-fd-init b/testing/bacula/bacula-fd-init deleted file mode 100644 index 1e36a19479..0000000000 --- a/testing/bacula/bacula-fd-init +++ /dev/null @@ -1,22 +0,0 @@ -#!/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/bacula-fd.*.pid - eend $? -} diff --git a/testing/bacula/bacula-sd-conf b/testing/bacula/bacula-sd-conf deleted file mode 100644 index 88e13aa0eb..0000000000 --- a/testing/bacula/bacula-sd-conf +++ /dev/null @@ -1,7 +0,0 @@ -# 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" diff --git a/testing/bacula/bacula-sd-init b/testing/bacula/bacula-sd-init deleted file mode 100644 index 2375b8e457..0000000000 --- a/testing/bacula/bacula-sd-init +++ /dev/null @@ -1,22 +0,0 @@ -#!/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/bacula-sd.*.pid - eend $? -} diff --git a/testing/bacula/bacula.post-install b/testing/bacula/bacula.post-install deleted file mode 100644 index a092957361..0000000000 --- a/testing/bacula/bacula.post-install +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -for dir in /var/bacula /var/log/bacula /var/run/bacula /var/lib/bacula /etc/bacula/scripts/make_catalog_backup* -do - chown bacula.bacula $dir -done - -for file in create_postgresql_database make_postgresql_tables grant_postgresql_privileges -do - chown postgres /etc/bacula/scripts/$file -done diff --git a/testing/bacula/bacula.pre-install b/testing/bacula/bacula.pre-install deleted file mode 100644 index bfac8567a5..0000000000 --- a/testing/bacula/bacula.pre-install +++ /dev/null @@ -1,4 +0,0 @@ -#!/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 diff --git a/testing/bacula/configure.in.patch b/testing/bacula/configure.in.patch deleted file mode 100644 index cfe2a0b7cf..0000000000 --- a/testing/bacula/configure.in.patch +++ /dev/null @@ -1,23 +0,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" diff --git a/testing/bacula/os.m4.patch b/testing/bacula/os.m4.patch deleted file mode 100644 index 95dc5666ad..0000000000 --- a/testing/bacula/os.m4.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- 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 -- cgit v1.2.3