1 # Contributor: Yejun Yang ( yejunx AT gmail DOT com )
6 pkgdesc="domainkeys signer/verifier"
8 url="http://dk-milter.sourceforge.net/"
10 depends=('libmilter' 'postfix>=2.5' 'openssl')
11 optdepends=('tcsh: gentxt.csh support')
12 backup=('etc/conf.d/dk-filter.conf')
13 install=dk-milter.install
14 source=("http://superb-east.dl.sourceforge.net/sourceforge/dk-milter/$pkgname-$pkgver.tar.gz"
17 md5sums=('bfb196cce24a94ded06eebd60dfb1eb8'
18 'f4173ee7a4ee3e0c662d13167e6b2e75'
19 '64da2cde9e06aca2e62398052da5fc0b')
22 cd $srcdir/$pkgname-$pkgver
23 mkdir -p $pkgdir/usr/sbin $pkgdir/usr/bin $pkgdir/usr/man/man8 $pkgdir/etc/dk-milter
25 make DESTDIR=$pkgdir install || return 1
26 mv $pkgdir/usr/bin/dk-filter $pkgdir/usr/sbin/dk-filter
27 mkdir -p $pkgdir/etc/rc.d $pkgdir/etc/conf.d
28 install -m755 $srcdir/dk-filter $pkgdir/etc/rc.d
29 install -m644 $srcdir/dk-filter.conf $pkgdir/etc/conf.d
30 sed -i 's/512/1024/' dk-filter/gentxt.csh
31 install -m755 dk-filter/gentxt.csh $pkgdir/usr/bin
32 mkdir -p $pkgdir/usr/share/licenses/$pkgname
33 install -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname