1 # Contributor: GnunuX <gnunux chez laposte point net>
5 pkgdesc="Gld is a standalone greylisting server for Postfix it listen on a TCP port and use MySQL for storing data."
6 url="http://www.gasmi.net/gld.html"
8 depends=('postfix' 'mysql')
10 source=(http://www.gasmi.net/down/$pkgname-$pkgver.tgz gld)
11 md5sums=('d24931630504e8586b9eb4cc3cc9d726' '8193f25ced9e5b0b4187338996cdf33e')
14 cd $startdir/src/$pkgname-$pkgver/
16 sed -i 's@/etc/gld.conf@/etc/gld/gld.conf@g' gld.h
18 mkdir -p $startdir/pkg/usr/bin/
19 install -m755 gld $startdir/pkg/usr/bin/
20 mkdir -p $startdir/pkg/etc/gld
21 mkdir -p $startdir/pkg/etc/rc.d
22 sed -i 's@nobody@postfix@g' gld.conf
23 install -m600 gld.conf $startdir/pkg/etc/gld
24 install -m644 tables.mysql $startdir/pkg/etc/gld
25 install -m644 table-whitelist.sql $startdir/pkg/etc/gld
26 install -m755 ../gld $startdir/pkg/etc/rc.d/