1 # Greylisting daemon from Debian project. Requires 'start-stop-daemon'.
2 # Contributor: Vladimir Koshelenko <koshelenko@rndavia.ru>
3 # Maintainer: Denis Yantarev <denis dot yantarev at gmail dot com>
8 pkgdesc="Simple greylisting system for mail transport agents"
9 url="http://packages.debian.org/unstable/mail/greylistd"
10 depends=('python2' 'start-stop-daemon')
11 source=(http://ftp.debian.org/debian/pool/main/g/greylistd/${pkgname}_${pkgver}.tar.gz
14 md5sums=('ea71dba950d67d183616258cd51d2d2c'
15 '55eaf1e1a5ada6138a3399214a39ee03'
16 'ab18bee48291d2c3cd6844f559ef7617')
17 backup=(etc/greylistd/config)
18 install=greylistd.install
19 arch=('x86_64' 'i686')
23 cd $srcdir || return 1
24 patch -p0 <python2.patch || return 1
30 mkdir -p $pkgdir/etc/greylistd || return 1
31 install -D -m644 $srcdir/$pkgname/config/config $pkgdir/etc/greylistd || return 1
32 install -D -m644 $srcdir/$pkgname/config/whitelist-hosts $pkgdir/etc/greylistd || return 1
33 install -D -m644 $srcdir/$pkgname/doc/examples/exim4-acl-example.txt $pkgdir/etc/greylistd || return 1
35 mkdir -p $pkgdir/pkg/etc/rc.d || return 1
36 install -D -m755 $srcdir/greylistd.sh $pkgdir/etc/rc.d/greylistd || return 1
38 mkdir -p $pkgdir/usr/man/man1 || return 1
39 install -D -m644 $srcdir/$pkgname/doc/man1/greylist.1 $pkgdir/usr/man/man1/ || return 1
40 gzip $pkgdir/usr/man/man1/greylist.1
42 mkdir -p $pkgdir/usr/man/man8 || return 1
43 install -D -m644 $srcdir/$pkgname/doc/man8/greylistd.8 $pkgdir/usr/man/man8/ || return 1
44 gzip $pkgdir/usr/man/man8/greylistd.8
46 mkdir -p $pkgdir/usr/bin || return 1
47 install -D -m755 $srcdir/$pkgname/program/greylist $pkgdir/usr/bin/ || return 1
49 mkdir -p $pkgdir/usr/sbin || return 1
50 install -D -m755 $srcdir/$pkgname/program/greylistd $pkgdir/usr/sbin/ || return 1