aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgrey/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/postgrey/APKBUILD')
-rw-r--r--main/postgrey/APKBUILD48
1 files changed, 27 insertions, 21 deletions
diff --git a/main/postgrey/APKBUILD b/main/postgrey/APKBUILD
index b7ce04f1c3..83afce3c6f 100644
--- a/main/postgrey/APKBUILD
+++ b/main/postgrey/APKBUILD
@@ -1,30 +1,36 @@
-# Maintainer: Leonardo Arena <rnalrg@gmail.com>
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=postgrey
pkgver=1.32
-pkgrel=0
-pkgdesc="Postfix Greylisting Policy Server"
+pkgrel=2
+pkgdesc="Postfix policy server implementing greylisting"
url="http://postgrey.schweikert.ch/"
-license="GPL-2"
-depends="perl-net-server perl-io-multiplex perl-db postfix"
+license="GPL"
+depends="perl perl-db perl-net-dns perl-net-server perl-io-multiplex
+ perl-net-rblclient perl-parse-syslog"
+pkgusers="postgrey"
+pkggroups="postgrey"
makedepends=""
-install="$pkgname.pre-install"
-subpackages="$pkgname-doc"
-source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz"
+install=postgrey.pre-install
+subpackages=""
+source="http://postgrey.schweikert.ch/pub/$pkgname-$pkgver.tar.gz
+ postgrey.confd
+ postgrey.initd"
build() {
cd "$srcdir"/$pkgname-$pkgver
- mkdir -p -m0770 $pkgdir/var/spool/postfix/postgrey
- chown postgrey.postgrey $pkgdir/var/spool/postfix/postgrey
- install -m755 -D postgrey $pkgdir/usr/sbin/postgrey
- install -m755 -D policy-test $pkgdir/usr/bin/policy-test
- install -m755 -D contrib/postgreyreport $pkgdir/usr/bin/postgreyreport
- install -m644 -D postgrey_whitelist_recipients $pkgdir/etc/postfix/postgrey_whitelist_recipients
- install -m644 -D postgrey_whitelist_clients $pkgdir/etc/postfix/postgrey_whitelist_clients
- install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
- install -m644 -D Changes $pkgdir/usr/share/doc/$pkgname/Changes
- install -m644 -D COPYING $pkgdir/usr/share/doc/$pkgname/COPYING
- install -m755 -D ../../postgrey.init $pkgdir/etc/init.d/postgrey
- install -m644 -D ../../postgrey.conf $pkgdir/etc/conf.d/postgrey
+
+ install -m755 -D $pkgname "$pkgdir"/usr/sbin/$pkgname
+ mkdir -p "$pkgdir"/var/spool/postfix/$pkgname
+ chown postgrey:postgrey "$pkgdir"/var/spool/postfix/$pkgname
+ chmod 770 "$pkgdir"/var/spool/postfix/$pkgname
+ install -m755 -D contrib/postgreyreport "$pkgdir"/usr/bin/postgreyreport
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D postgrey_whitelist_clients "$pkgdir"/etc/postfix/postgrey_whitelist_clients
+ install -m644 -D postgrey_whitelist_recipients "$pkgdir"/etc/postfix/postgrey_whitelist_recipients
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
-md5sums="524a4e165bf997996f3bccade394712f postgrey-1.32.tar.gz"
+md5sums="524a4e165bf997996f3bccade394712f postgrey-1.32.tar.gz
+caaad5770ab07fb5af3bbd522a05b84f postgrey.confd
+d0611b244202c77ad7ad79862721a738 postgrey.initd"