6 pkgdesc="Is a proxy DNS server with permanent caching"
7 url="http://www.phys.uu.nl/~rombouts/pdnsd/"
9 license=('GPL3' 'custom:BSD')
14 backup=('etc/pdnsd.conf')
16 sha1sums=('515b03638593e25adab7401351aa80eb1e061fcb')
17 sha256sums=('40049321f79403b1358b854da3d36e408077243af09f2ca7a1e25e847ad11fd4')
19 _gitroot="git://gitorious.org/pdnsd/pdnsd.git"
24 msg "Connecting to GIT server...."
26 if [[ -d $_gitname ]] ; then
27 cd "$_gitname" && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot" "$_gitname"
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 export CFLAGS="${CFLAGS} -fPIE"
41 export LDFLAGS="-pie ${LDFLAGS} -Wl,-z,now"
44 ./configure --prefix=/usr --sysconfdir=/etc
49 cd "$srcdir/$_gitname-build"
51 make DESTDIR="$pkgdir" install
52 install -D -m644 COPYING.BSD "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.BSD"
53 install -D -m555 "$srcdir/pdnsdrc" "${pkgdir}/etc/rc.d/pdnsd"
56 # vim: ft=sh syn=sh et