# $Id: PKGBUILD 108298 2014-03-26 11:09:31Z thestinger $ # Maintainer: Sergej Pupykin # Contributor: Daniel Micay # Contributor: Henrik Nymann Jensen pkgname=pdnsd pkgver=1.2.9.a _pkgver=${pkgver/.a/a} pkgrel=6 pkgdesc="Proxy DNS server with permanent caching" arch=(i686 x86_64) url="http://members.home.nl/p.a.rombouts/pdnsd/" license=('GPL') depends=('glibc') backup=(etc/pdnsd.conf) install=${pkgname}.install source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$_pkgver-par.tar.gz service) md5sums=('2f3e705d59a0f9308ad9504b24400769' '4f86bdbd8495b53341070d5720491996') build() { cd "$srcdir/$pkgname-$_pkgver" ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --enable-ipv6 make } package() { cd "$srcdir/$pkgname-$_pkgver" make DESTDIR="$pkgdir" install install -Dm0644 ../service "$pkgdir/usr/lib/systemd/system/pdnsd.service" # Rename the configuration file, so users get pacnew files. mv "$pkgdir/etc/pdnsd.conf.sample" "$pkgdir/etc/pdnsd.conf" sed -i 's/"nobody"/"pdnsd"/' "$pkgdir/etc/pdnsd.conf" chown 184:184 "$pkgdir/var/cache/pdnsd" }