diff options
Diffstat (limited to 'main/amavisd-new/APKBUILD')
-rw-r--r-- | main/amavisd-new/APKBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/main/amavisd-new/APKBUILD b/main/amavisd-new/APKBUILD index 59a5781381..9a89b1ac69 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.8.1 -pkgrel=0 +pkgrel=1 pkgdesc="High-performance interface between mailer (MTA) and content checkers" url="http://www.ijs.si/software/amavisd" arch="noarch" @@ -11,11 +11,17 @@ depends="sed file perl perl-archive-zip perl-convert-tnef perl-convert-uulib perl-mime-tools perl-mail-tools perl-net-server perl-io-stringy perl-unix-syslog perl-db perl-mail-dkim" makedepends="" -install="$pkgname.post-install $pkgname.pre-install" +install="$pkgname.pre-install" subpackages="" source="http://www.ijs.si/software/amavisd/$pkgname-$pkgver.tar.gz" +pkgusers="amavis" +pkggroups="amavis" build() { + return 0 +} + +package() { cd "$srcdir/$pkgname-$pkgver" ( HOME=/var/amavis @@ -42,6 +48,10 @@ build() { install -m 640 -o root -D amavisd.conf.alpine ${pkgdir}${CONFIG} install -m 755 -D ../../amavisd.init $pkgdir/etc/init.d/amavisd ) + + chown -R amavis:amavis "$pkgdir"/var/amavis + chmod -R 750 "$pkgdir"/var/amavis + chown root:amavis "$pkgdir"/etc/amavisd.conf } md5sums="f6f9abd1aac05521bdcb3754d09f5314 amavisd-new-2.8.1.tar.gz" |