aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/amavisd-new/APKBUILD')
-rw-r--r--main/amavisd-new/APKBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/main/amavisd-new/APKBUILD b/main/amavisd-new/APKBUILD
index da0829f9f5..30e151089a 100644
--- a/main/amavisd-new/APKBUILD
+++ b/main/amavisd-new/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=amavisd-new
pkgver=2.11.0
-pkgrel=1
+pkgrel=2
pkgdesc="High-performance interface between mailer (MTA) and content checkers"
url="http://www.ijs.si/software/amavisd"
arch="noarch"
@@ -15,8 +15,13 @@ depends="sed file perl perl-archive-zip perl-carp perl-convert-tnef
"
makedepends=""
install="$pkgname.pre-install"
+options="!check"
subpackages=""
-source="http://www.ijs.si/software/amavisd/$pkgname-$pkgver.tar.xz"
+source="
+ http://www.ijs.si/software/amavisd/$pkgname-$pkgver.tar.xz
+ amavisd.initd
+ amavisd.confd
+ "
pkgusers="amavis"
pkggroups="amavis"
@@ -50,14 +55,16 @@ package() {
-e "s:^.*\$daemon_user = 'vscan';\(.*\)$:\$daemon_user = 'amavis';\1:" \
-e "s:^.*\$daemon_group = 'vscan';\(.*\)$:\$daemon_group = 'amavis';\1:" < amavisd.conf > amavisd.conf.alpine
install -m 640 -o root -D amavisd.conf.alpine ${pkgdir}${CONFIG}
- install -m 755 -D ../../amavisd.init $pkgdir/etc/init.d/amavisd
)
+ install -Dm755 "$srcdir"/amavisd.initd "$pkgdir"/etc/init.d/amavisd
+ install -Dm644 "$srcdir"/amavisd.confd "$pkgdir"/etc/conf.d/amavisd
+
chown -R amavis:amavis "$pkgdir"/var/amavis
chmod -R 750 "$pkgdir"/var/amavis
chown root:amavis "$pkgdir"/etc/amavisd.conf
}
-md5sums="4642d63c5d3f0daafbcacb9bb553e6f3 amavisd-new-2.11.0.tar.xz"
-sha256sums="b41de4f0796cb344120c9792c82fc25177cbf9f51aaa5f91536cdf34aea89906 amavisd-new-2.11.0.tar.xz"
-sha512sums="a33292c976abf54db9475392069658c926e7a6f11a4970bbe353b34b3343388bc83b40eda4729f8efa735a3a6e23fd1ed83487f6f7ccf1e9f0903220e6d26957 amavisd-new-2.11.0.tar.xz"
+sha512sums="a33292c976abf54db9475392069658c926e7a6f11a4970bbe353b34b3343388bc83b40eda4729f8efa735a3a6e23fd1ed83487f6f7ccf1e9f0903220e6d26957 amavisd-new-2.11.0.tar.xz
+6a9dd16a6b52f3d1fbd16887f29ccceddc58e88a02e681f23c1fe54b7e24feea5089d52813f4f3e87d9242daf79d2b2ea1e7c451d83d7de943403e71dc61c4e5 amavisd.initd
+a5ce3583c34197f335372728cf92da23bae2cd7a9ae48daff6eaadbf66fbd5be6bb8b480b0fce1ea2b3a662b0a54d1d2f1f277d2f9a06d9630b57fa5d7ac2635 amavisd.confd"