# Contributor: Leonardo Arena # Maintainer: pkgname=dkimproxy pkgver=1.4.1 pkgrel=2 pkgdesc="SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module" url="http://dkimproxy.sourceforge.net/" arch="noarch" license="GPL" depends="perl-mail-dkim perl-net-server perl-error" depends_dev= makedepends="$depends_dev" install= subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz dkimproxy.in.initd dkimproxy.out.initd " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" eval local $(perl -V:vendorlib) perllibdir="$vendorlib" ./configure --prefix=/usr \ --sysconfdir=/etc/dkimproxy \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --bindir=/usr/bin make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install #FIXME mkdir -p "$pkgdir"/usr/sbin mv "$pkgdir"/usr/bin/$pkgname.* "$pkgdir"/usr/sbin/ install -D -m755 "$srcdir"/$pkgname.in.initd \ "$pkgdir"/etc/init.d/$pkgname.in install -D -m755 "$srcdir"/$pkgname.out.initd \ "$pkgdir"/etc/init.d/$pkgname.out } md5sums="3ecaa38a8c865a5b7682f7f261354218 dkimproxy-1.4.1.tar.gz fe974cf486e0aee1eddd65a5a36fdb83 dkimproxy.in.initd f7e1fbcf11ebf04d0127a8e97a85fa67 dkimproxy.out.initd"