aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/bacula/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD
index c043344d03..84cd62d4d2 100644
--- a/main/bacula/APKBUILD
+++ b/main/bacula/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="bacula"
pkgver=5.2.12
-pkgrel=3
+pkgrel=4
pkgdesc="Enterprise ready, network based backup program"
url="http://www.bacula.org"
arch="all"
@@ -15,6 +15,7 @@ install="$pkgname.pre-install $pkgname.post-upgrade"
subpackages="$pkgname-doc $pkgname-mysql $pkgname-pgsql $pkgname-sqlite"
pkgusers="bacula"
pkggroups="bacula"
+somask="libbaccats-${pkgver}.so"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
bacula-dir-init
bacula-dir-conf
@@ -108,16 +109,17 @@ package() {
chown bacula.bacula "$pkgdir"$dir || return 1
done
find "$pkgdir" -iname *.la -delete
- rm "$pkgdir"/usr/lib/libbaccats-${pkgver}.so
- rm "$pkgdir"/usr/lib/libbaccats.so
+ find "$pkgdir"/usr/lib -iname libbaccats* -type l -delete
}
_mv_backend() {
mkdir -p "$subpkgdir"/usr/lib
mkdir -p "$subpkgdir"/etc/bacula/scripts
mv "$pkgdir"/usr/lib/libbaccats-${1}-${pkgver}.so \
- "$subpkgdir"/usr/lib/libbaccats-${pkgver}.so || return 1
+ "$subpkgdir"/usr/lib || return 1
ln -s libbaccats-${pkgver}.so "$subpkgdir"/usr/lib/libbaccats.so
+ ln -s libbaccats-${1}-${pkgver}.so \
+ "$subpkgdir"/usr/lib/libbaccats-${pkgver}.so
#mv "$pkgdir"/usr/lib/libbaccats-${1}.so \
# "$subpkgdir"/usr/lib/libbaccats.so || return 1
mv "$pkgdir"/etc/bacula/scripts/*_${1}_* \