blob: da23ae6cbc2679db6f0deeb9fab1d5ad020df36f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 108591 2014-03-29 12:01:04Z thestinger $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Henrik Nymann Jensen <h@henriknj.dk>
pkgname=pdnsd
pkgver=1.2.9.a
_pkgver=${pkgver/.a/a}
pkgrel=7
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 -R 184:184 "$pkgdir/var/cache/pdnsd"
}
|