updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dkim-milter / PKGBUILD
blobce56c171cdac88382417dfe193ab9ceea5033045
1 # Contributor: Yejun Yang ( yejunx AT gmail DOT com )
3 pkgname='dkim-milter'
4 pkgver=2.8.3
5 pkgrel=1
6 pkgdesc="dkim-milter consists of two parts: A milter-based application (dkim-filter) which plugs in to Sendmail to provide DomainKeys Identified Mail service, and a library (libdkim) which can be used to build DKIM-compliant applications or MTAs."
7 arch=('i686' 'x86_64')
8 url="http://dkim-milter.sourceforge.net/"
9 license=('SENDMAIL')
10 depends=('libmilter' 'postfix>=2.5' 'openssl')
11 backup=('etc/conf.d/dkim-filter.conf'
12         'etc/dkim/dkim.conf')
13 install=dkim-milter.install
14 source=("http://downloads.sourceforge.net/project/dkim-milter/DKIM%20Milter/$pkgver/$pkgname-$pkgver.tar.gz"
15         'dkim'
16         'dkim-filter.conf'
17         'dkim.conf')
19 md5sums=('d2043c269f1720cc095a9b4f163cf3df'
20          '98d691d2ee0a354b3e43b0b93b6a7881'
21          'b52ba8b25a4dcb06615109c5216ac3eb'
22          '0ded824bbb96d2e7745571cdace63d4b')
24 build() {
25   cd $srcdir/$pkgname-$pkgver
26   mkdir -p $pkgdir/usr/sbin $pkgdir/usr/bin $pkgdir/usr/man/man5 $pkgdir/usr/man/man8 $pkgdir/etc/dkim
27   make || return 1
28   make DESTDIR=$pkgdir install || return 1
29   mkdir -p $pkgdir/etc/rc.d $pkgdir/etc/conf.d
30   install -m755 $srcdir/dkim $pkgdir/etc/rc.d
31   install -m644 $srcdir/dkim-filter.conf $pkgdir/etc/conf.d
32   install -m644 $srcdir/dkim.conf $pkgdir/etc/dkim
33   mkdir -p $pkgdir/usr/share/licenses/$pkgname
34   install -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname