#Maintainer: George Vlahavas # # You need to have a postfix user and a postfix group already setup in # your system to build this. Read the documentation in the postfix # package, you should have it installed anyway. pkgname=postgrey pkgver=1.32 pkgrel=1gv arch=noarch source=("http://postgrey.schweikert.ch/pub/postgrey-$pkgver.tar.gz" "rc.postgrey" "postgrey.txt") docs=("readme*" "install" "copying" "changes" "authors" "news" "todo") url=http://postgrey.schweikert.ch/ options=('noautodotnew') dotnew=('etc/postfix/postgrey_whitelist_clients' 'etc/postfix/postgrey_whitelist_recipients') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "postgrey (Postfix Greylisting Policy Server)" "Postgrey is a Postfix policy server implementing greylisting. When a" "request for delivery of a mail is received by Postfix via SMTP, the" "triplet CLIENT_IP / SENDER / RECIPIENT is built. If it is the first" "time that this triplet is seen, or if the triplet was first seen, less" "than 5 minutes ago, then the mail gets rejected with a temporary" "error. Hopefully spammers or viruses will not try again later, as it" "is however required per RFC." "" "You need to have postfix installed and configured to install this." ) build() { cd $startdir/src/$pkgname-$pkgver install -d -m 755 $startdir/pkg/etc/postfix install -m 644 postgrey_whitelist_clients $startdir/pkg/etc/postfix/ install -m 644 postgrey_whitelist_recipients $startdir/pkg/etc/postfix/ install -d -m 755 $startdir/pkg/usr/sbin install -m 755 postgrey $startdir/pkg/usr/sbin/ install -d -m 755 $startdir/pkg/etc/rc.d install -m 755 $startdir/src/rc.postgrey $startdir/pkg/etc/rc.d/ install -d -m 755 $startdir/pkg/etc/rc.d/desc.d install -m 644 $startdir/src/postgrey.txt $startdir/pkg/etc/rc.d/desc.d/ install -o postfix -g postfix -d -m 700 $startdir/pkg/var/spool/postfix/postgrey }