diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-11 08:30:19 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-11 08:31:38 +0000 |
commit | bd02f881f2cd3d8b1ef786ba3e7482deafb58793 (patch) | |
tree | e5a4a3156041b7c85c36d424c15fd8dd625409e9 /main/bacula/APKBUILD | |
parent | 9fd8829c5749a60c34abbd36f01ecd27177fa751 (diff) | |
download | aports-bd02f881f2cd3d8b1ef786ba3e7482deafb58793.tar.bz2 aports-bd02f881f2cd3d8b1ef786ba3e7482deafb58793.tar.xz |
main/bacula: various improvements and small bug fixes
- use /run dir
- fix conf file permissions
- Inits:
points bacula-sd to right conf file
use openrc to set daemon user
soft depends on firewall added
cosmetic fixes
Diffstat (limited to 'main/bacula/APKBUILD')
-rw-r--r-- | main/bacula/APKBUILD | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD index eefb198042..c0c56dadd1 100644 --- a/main/bacula/APKBUILD +++ b/main/bacula/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=bacula pkgver=9.0.5 -pkgrel=2 +pkgrel=3 pkgdesc="Enterprise ready, network based backup program" url="http://www.bacula.org" arch="all" @@ -46,8 +46,8 @@ build() { --mandir=/usr/share/man \ --docdir=/usr/share/doc \ --infodir=/usr/share/info \ - --with-pid-dir=/var/run/$pkgname \ - --with-subsys-dir=/var/lock/subsys \ + --with-pid-dir=/run/$pkgname \ + --with-subsys-dir=/run/lock/subsys \ --with-logdir=/var/log/$pkgname \ --enable-largefile \ --enable-smartalloc \ @@ -61,8 +61,8 @@ build() { --with-dir-user=$pkgname \ --with-dir-group=$pkgname \ --with-archivedir=$_bworkdir/archive \ - --with-sd-user=$pkgname \ - --with-sd-group=$pkgname \ + --with-sd-user=$pkgusers \ + --with-sd-group=$pkggroup \ --with-fd-user=root \ --with-fd-group=root \ --with-sbin-perm=0755 @@ -96,9 +96,10 @@ package() { sed -i 's/make_catalog_backup.pl/make_catalog_backup/' \ "$pkgdir"/etc/$pkgname/$pkgname-dir.conf - local dir - for dir in $_bworkdir /etc/$pkgname/scripts/make_catalog_backup* \ - /etc/$pkgname/scripts/mtx-changer* + local dir; for dir in $_bworkdir \ + /etc/$pkgname/scripts/make_catalog_backup* \ + /etc/$pkgname/scripts/mtx-changer* \ + /etc/$pkgname/*.conf do chown $pkgusers.$pkggroups "$pkgdir"$dir done @@ -170,7 +171,7 @@ client() { } sha512sums="97a23c701808666833e773106f5618bcce1af90fff299da88e58b23ed04fc7e6bfdf4c231f3724d2186fad7985f5f9d7f6b629d59cea489b2d4d4ce6f041ca63 bacula-9.0.5.tar.gz -d54a83e8ac498201a8fe7b81631b915be1f1d9f8ad30530c0a7314569ef8f91c990b63e30fda63ae9ebb79f10104e6b827ad4eae274e84cbd3d5751b1cf493af bacula-dir.initd -c37a1000c99984510993d77733117e0e65c25011ca98272c9d8b5db5a976c42a3b6f57c240c708bc5657a7d5aae1b51f5d7db6a9b9cfe7b4d1ce682726dc5faf bacula-sd.initd -c4f7adecc164b93c119338feebc0367c07d3060099cd87b474e7325fa5840d0e36666d78f5e2b89e322a1cd2fbbefc8e1f4455ad87d7237e41d1a201457d5448 bacula-fd.initd +e3ea78c7b920ab33c94c715f9375cf8dc52fd963a526827941c3d6de619c999e00f01ac102d3260e4de457de50af146ab014862174b14524862c92e00908f765 bacula-dir.initd +60f174799ad15b0f5ea94bc578d3a58681e45b8306c059c4d7e78bc3c7edfcff95f8a551495d0af5a94dc645e96d1aa36d4c378f0dfd871e38b0c9b64b82da26 bacula-sd.initd +3887a65972f6a82b2b7b93521e534b8347a5ed9da36c9645eb2bf5eb683b6e0e3ee0613b048b7d2ec725e890ec0513afb2197adfd2bf5d91108dce3b23662c07 bacula-fd.initd 2d3757236aacca421261a8866ff04b5b0151538e1462559bd1240119b1bece1d456acbba9fee86dbc6aaec7af2a52eb2c0b7490c5f371b7deb478731c74342ff bacula-7.4.0-path-mounted.patch" |