diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-11-21 08:42:57 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-11-21 08:47:02 +0000 |
commit | bf2e25cf2fefaac83b3374523ccab8e1181044ed (patch) | |
tree | 910f3afbb80aaae6913e6d0c66344bb460e2d8bf | |
parent | 04297c4e2b1bfd4a50618cbee14f272928b14c85 (diff) | |
download | aports-bf2e25cf2fefaac83b3374523ccab8e1181044ed.tar.bz2 aports-bf2e25cf2fefaac83b3374523ccab8e1181044ed.tar.xz |
main/bacula: upgrade to v5.2.1
Enabled support for mysql and sqlite.
DB backend engines have been moved into subpkgs.
Some patches from v5.0 have been dropped.
-rw-r--r-- | main/bacula/APKBUILD | 59 | ||||
-rw-r--r-- | main/bacula/bacula-mysql.post-install | 2 | ||||
-rw-r--r-- | main/bacula/bacula-pgsql.post-install | 2 | ||||
-rw-r--r-- | main/bacula/bacula-sqlite.post-install | 2 | ||||
-rw-r--r-- | main/bacula/bacula.post-upgrade | 6 |
5 files changed, 58 insertions, 13 deletions
diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD index e139ae91c5..0c4b461ece 100644 --- a/main/bacula/APKBUILD +++ b/main/bacula/APKBUILD @@ -1,16 +1,18 @@ # Contributor: Leonardo Arena <rnalrd@gmail.com> # Maintainer: Leonardo Arena <rnalrd@gmail.com> pkgname="bacula" -pkgver=5.0.3 -pkgrel=9 +pkgver=5.2.1 +pkgrel=0 pkgdesc="Enterprise ready, network based backup program" url="http://www.bacula.org" arch="all" license="AGPL3" depends="" -makedepends="autoconf ncurses-dev openssl-dev postgresql-dev zlib-dev" -install="$pkgname.pre-install $pkgname.post-install" -subpackages="$pkgname-doc" +depends_dev="autoconf mysql-dev ncurses-dev openssl-dev postgresql-dev sqlite-dev + zlib-dev" +makedepends="$depends_dev" +install="$pkgname.pre-install $pkgname.post-install $pkgname.post-upgrade" +subpackages="$pkgname-doc $pkgname-mysql $pkgname-pgsql $pkgname-sqlite" source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz bacula-dir-init bacula-dir-conf @@ -18,23 +20,20 @@ source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgn bacula-sd-conf bacula-fd-init bacula-fd-conf - - bacula-5.0.1-dsolink.patch bacula-5.0.2-config.patch bacula-5.0.2-openssl.patch bacula-5.0.2-python27.patch - bacula-5.0.3-dsolink.patch bacula-5.0.3-log-path.patch bacula-5.0.3-mysql55.patch bacula-5.0.3-sqlite-priv.patch bacula-config.patch configure.in.patch bacula-5.0.3-Makefile.patch - bacula-5.0.3-as-needed.patch os.m4.patch cxx.patch" _builddir="$srcdir/$pkgname-$pkgver" + prepare () { cd "$_builddir" for i in $source; do @@ -63,6 +62,8 @@ build() { --disable-nls \ --with-openssl=/usr/include/openssl \ --with-postgresql \ + --with-mysql \ + --with-sqlite3 \ --with-scriptdir=/etc/bacula/scripts \ --with-working-dir=/var/bacula \ --with-dir-user=bacula \ @@ -100,26 +101,58 @@ package() { sed -i -e 's/make_catalog_backup.pl/make_catalog_backup/' \ "$pkgdir"/etc/bacula/bacula-dir.conf find "$pkgdir" -iname *.la -delete + # Backend is dinamically linked when subpackage is installed + #rm "$pkgdir"/usr/lib/libbaccats.so + #rm "$pkgdir"/usr/lib/libbaccats-5.2.1.so +} + +_mv_backend() { + mkdir -p "$subpkgdir"/usr/lib + mkdir -p "$subpkgdir"/etc/bacula/scripts + mv "$pkgdir"/usr/lib/libbaccats-${1}-${pkgver}.so \ + "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/usr/lib/libbaccats-${1}.so \ + "$subpkgdir"/usr/lib || return 1 + mv "$pkgdir"/etc/bacula/scripts/*_${1}_* \ + "$subpkgdir"/etc/bacula/scripts || return 1 +} + +mysql() { + pkgdesc="Bacula MySQL backend" + depends="bacula" + install="$pkgname.post-install" + _mv_backend mysql +} + +pgsql() { + pkgdesc="Bacula PGSQL backend" + depends="bacula" + install="$pkgname.post-install" + _mv_backend postgresql +} + +sqlite() { + pkgdesc="Bacula SQLite backend" + depends="bacula" + install="$pkgname.post-install" + _mv_backend sqlite3 } -md5sums="9de254ae39cab0587fdb2f5d8d90b03b bacula-5.0.3.tar.gz +md5sums="793da9f89fc5e024b6b95eb16a3120e5 bacula-5.2.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 -eee101f1b7b6b4f2c140898db5f8123b bacula-5.0.1-dsolink.patch 71f7f9c041eff045b2e97d141316c059 bacula-5.0.2-config.patch 4e310e84c7aba5b8d043758e0fa0088f bacula-5.0.2-openssl.patch 13e511698b5dc376e673c963a848d364 bacula-5.0.2-python27.patch -82d3a5c113c633bf0bd86ac3590baaff bacula-5.0.3-dsolink.patch 9bde1e9d43146af8985ff62d491d7218 bacula-5.0.3-log-path.patch def9da0c090141dcef817d80c1a29fd1 bacula-5.0.3-mysql55.patch 9def0e68e3eb2f5f8b4c34108a248efd bacula-5.0.3-sqlite-priv.patch 5d3c1bf25d50996e0c0c344dc2444014 bacula-config.patch ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch 0ec20df57bb632ed729cfaf5d0a3ee33 bacula-5.0.3-Makefile.patch -76267747f4d2e85e033cc6793ccb6afa bacula-5.0.3-as-needed.patch cf7a2a4e972697f54364654c4e282b8b os.m4.patch 1bfdbfea7a36d5503753414dffb953eb cxx.patch" diff --git a/main/bacula/bacula-mysql.post-install b/main/bacula/bacula-mysql.post-install new file mode 100644 index 0000000000..8d78bad570 --- /dev/null +++ b/main/bacula/bacula-mysql.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +cp /usr/lib/libbaccats-mysql.so /usr/lib/libbaccats-5.2.1.so diff --git a/main/bacula/bacula-pgsql.post-install b/main/bacula/bacula-pgsql.post-install new file mode 100644 index 0000000000..c1c8cf15fb --- /dev/null +++ b/main/bacula/bacula-pgsql.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +cp /usr/lib/libbaccats-postgresql.so /usr/lib/libbaccats-5.2.1.so diff --git a/main/bacula/bacula-sqlite.post-install b/main/bacula/bacula-sqlite.post-install new file mode 100644 index 0000000000..9487d4e470 --- /dev/null +++ b/main/bacula/bacula-sqlite.post-install @@ -0,0 +1,2 @@ +#!/bin/sh +cp /usr/lib/libbaccats-sqlite3.so /usr/lib/libbaccats-5.2.1.so diff --git a/main/bacula/bacula.post-upgrade b/main/bacula/bacula.post-upgrade new file mode 100644 index 0000000000..7113feaf03 --- /dev/null +++ b/main/bacula/bacula.post-upgrade @@ -0,0 +1,6 @@ +#!/bin/sh +echo "*" >&2 +echo "* Please remember to manually update your database schema:" >&2 +echo "*" >&2 +ls /etc/bacula/scripts/update_* >&2 +exit 0 |