diff options
author | root <root@rshg054.dnsready.net> | 2012-05-31 00:03:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-31 00:03:48 +0000 |
commit | f1ae949e08a764ac063703dc9bb7f0afd7c16e96 (patch) | |
tree | b542ace0cdaf945c5e495f31e3c87537017c614d /community/opendkim/PKGBUILD | |
parent | f676c2f568b9c75daa3e2b688978b877f950953d (diff) |
Thu May 31 00:03:48 UTC 2012
Diffstat (limited to 'community/opendkim/PKGBUILD')
-rw-r--r-- | community/opendkim/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/opendkim/PKGBUILD b/community/opendkim/PKGBUILD new file mode 100644 index 000000000..bc1001946 --- /dev/null +++ b/community/opendkim/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 71559 2012-05-29 09:12:52Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Thomas Jost <schnouki@schnouki.net> + +pkgname=opendkim +pkgver=2.5.2 +pkgrel=1 +pkgdesc="An open source implementation of the DKIM sender authentication system. Based on a fork of dkim-milter." +arch=(i686 x86_64) +url="http://www.opendkim.org/" +license=('BSD' 'custom:Sendmail') +depends=("db" "openssl") +makedepends=("libmilter") +options=(!libtool) +backup=(etc/conf.d/opendkim) +install=opendkim.install +source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz + opendkim.conf + opendkim.rc) +md5sums=('3c2a71372ee279b627e3f39c87a0d457' + '3e2bb1058ac0662f01e675aa6ac7ee8f' + '1176f086d36e79a834dba1bed0ded397') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --with-db + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + + # Sample configuration + mkdir -p "$pkgdir/etc/opendkim" + mv "$pkgdir/usr/share/doc/opendkim/opendkim.conf.sample" "$pkgdir/etc/opendkim/opendkim.conf.sample" + chmod 0700 "$pkgdir/etc/opendkim" + chmod 0600 "$pkgdir/etc/opendkim/opendkim.conf.sample" + + # Init script + install -Dm644 "$srcdir/opendkim.conf" "$pkgdir/etc/conf.d/opendkim" + install -Dm755 "$srcdir/opendkim.rc" "$pkgdir/etc/rc.d/opendkim" + + # Remove empty dirs + rmdir "$pkgdir/usr/share/man/man1" "$pkgdir/usr/share/man/man3" + + # License + mkdir -p "$pkgdir/usr/share/licenses/opendkim" + for f in LICENSE LICENSE.Sendmail; do + ln -s ../../doc/opendkim/$f "$pkgdir/usr/share/licenses/opendkim/$f" + done +} |