1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="An open source implementation of the DKIM sender authentication system. Based on a fork of dkim-milter."
7 url="http://www.opendkim.org/"
8 license=('BSD, Sendmail')
9 depends=("db" "openssl")
10 makedepends=("libmilter")
12 backup=(etc/conf.d/opendkim)
13 install=opendkim.install
14 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz
17 md5sums=('b8f41cf6ec0975d4df4930bd2473118f'
18 '3e2bb1058ac0662f01e675aa6ac7ee8f'
19 '093f5c098a45cc68753f97e45a5b374c')
20 sha256sums=('c3ef73c5aa2bf8a6626b822cea08b72c954376ae892d596346973d11003c0906'
21 'a3b5ecf4f4fe4a79392a75f7c4b6cc93a51ef8503215bb0f64d795f8754d4b68'
22 '2cb7e359899dcd5c3f5e2e34f917835b77ee0ee4716d301f00996d69272f71a7')
25 cd "$srcdir/$pkgname-$pkgver"
27 ./configure --prefix=/usr --with-db
32 cd "$srcdir/$pkgname-$pkgver"
34 make DESTDIR="$pkgdir/" install
36 # Sample configuration
37 mkdir -p "$pkgdir/etc/opendkim"
38 mv "$pkgdir/usr/share/doc/opendkim/opendkim.conf.sample" "$pkgdir/etc/opendkim/opendkim.conf.sample"
39 chmod 0700 "$pkgdir/etc/opendkim"
40 chmod 0600 "$pkgdir/etc/opendkim/opendkim.conf.sample"
43 install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim"
44 install -Dm755 "$srcdir/opendkim.rc" "$pkgdir/etc/rc.d/opendkim"
47 rmdir "$pkgdir/usr/share/man/man1" "$pkgdir/usr/share/man/man3"
50 mkdir -p "$pkgdir/usr/share/licenses/opendkim"
51 for f in LICENSE LICENSE.Sendmail; do
52 ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f"
56 # vim:set ts=2 sw=2 et: