From 290a7aa3b0da4cb480b9f094efe4da2b13cd359d Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Tue, 6 Nov 2012 14:35:03 +0000 Subject: main/bacula: fix backend libraries --- main/bacula/APKBUILD | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'main/bacula/APKBUILD') diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD index 321de9dbf2..a892474aa6 100644 --- a/main/bacula/APKBUILD +++ b/main/bacula/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena pkgname="bacula" pkgver=5.2.12 -pkgrel=0 +pkgrel=1 pkgdesc="Enterprise ready, network based backup program" url="http://www.bacula.org" arch="all" @@ -107,18 +107,15 @@ package() { chown bacula.bacula "$pkgdir"$dir || return 1 done 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 + "$subpkgdir"/usr/lib/libbaccats-${pkgver}.so || return 1 mv "$pkgdir"/usr/lib/libbaccats-${1}.so \ - "$subpkgdir"/usr/lib || return 1 + "$subpkgdir"/usr/lib/libbaccats.so || return 1 mv "$pkgdir"/etc/bacula/scripts/*_${1}_* \ "$subpkgdir"/etc/bacula/scripts || return 1 } @@ -126,14 +123,12 @@ _mv_backend() { 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" pkgusers="postgres" _mv_backend postgresql for file in create_postgresql_database make_postgresql_tables \ @@ -146,7 +141,6 @@ pgsql() { sqlite() { pkgdesc="Bacula SQLite backend" depends="bacula" - install="$pkgname.post-install" _mv_backend sqlite3 } -- cgit v1.2.3