diff options
Diffstat (limited to 'main/bacula/APKBUILD')
-rw-r--r-- | main/bacula/APKBUILD | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD index 964bad6ee1..321de9dbf2 100644 --- a/main/bacula/APKBUILD +++ b/main/bacula/APKBUILD @@ -11,8 +11,10 @@ depends="" 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" +install="$pkgname.pre-install $pkgname.post-upgrade" subpackages="$pkgname-doc $pkgname-mysql $pkgname-pgsql $pkgname-sqlite" +pkgusers="bacula" +pkggroups="bacula" source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz bacula-dir-init bacula-dir-conf @@ -23,6 +25,9 @@ source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgn bacula-5.0.2-config.patch bacula-5.0.2-openssl.patch bacula-5.0.3-sqlite-priv.patch + bacula-5.2.3-as-needed.patch + bacula-5.2.3-ldflags.patch + bacula-5.2.3-lib-search-path.patch bacula-config.patch configure.in.patch bacula-5.0.3-Makefile.patch @@ -62,7 +67,7 @@ build() { --with-mysql \ --with-sqlite3 \ --with-scriptdir=/etc/bacula/scripts \ - --with-working-dir=/var/bacula \ + --with-working-dir=/var/lib/bacula \ --with-dir-user=bacula \ --with-dir-group=bacula \ --with-sd-user=bacula \ @@ -96,6 +101,11 @@ package() { # Use shell script for catalog backup instead of perl sed -i -e 's/make_catalog_backup.pl/make_catalog_backup/' \ "$pkgdir"/etc/bacula/bacula-dir.conf + for dir in /var/lib/bacula /etc/bacula/scripts/make_catalog_backup* \ + /etc/bacula/scripts/mtx-changer* + do + 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 @@ -124,7 +134,13 @@ 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 \ + grant_postgresql_privileges + do + chown postgres "$subpkgdir"/etc/bacula/scripts/$file + done } sqlite() { @@ -144,6 +160,9 @@ afe2f9a4d79d7d96eb9372d003d10f86 bacula-sd-conf 71f7f9c041eff045b2e97d141316c059 bacula-5.0.2-config.patch 4e310e84c7aba5b8d043758e0fa0088f bacula-5.0.2-openssl.patch 9def0e68e3eb2f5f8b4c34108a248efd bacula-5.0.3-sqlite-priv.patch +5fb1ef3f9fae381b64aa3226351f91a5 bacula-5.2.3-as-needed.patch +5ff321fee690e6a3b48ae41f9860558c bacula-5.2.3-ldflags.patch +fe1fe1df51c3e57343e2e7794447a763 bacula-5.2.3-lib-search-path.patch 5d3c1bf25d50996e0c0c344dc2444014 bacula-config.patch ebc9c2bbc9be95c920723a3f142d8e19 configure.in.patch 0ec20df57bb632ed729cfaf5d0a3ee33 bacula-5.0.3-Makefile.patch |