updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / pdnsd-git / PKGBUILD
blob47be9de038aedd95a1b875d122ae6c81f4c6497f
1
3 pkgname=pdnsd-git
4 pkgver=20111031
5 pkgrel=1
6 pkgdesc="Is a proxy DNS server with permanent caching"
7 url="http://www.phys.uu.nl/~rombouts/pdnsd/"
8 arch=('i686' 'x86_64')
9 license=('GPL3' 'custom:BSD')
10 depends=('glibc')
11 makedepends=('git')
12 conflicts=('pdnsd')
13 provides=('pdnsd')
14 backup=('etc/pdnsd.conf')
15 source=('pdnsdrc')
16 sha1sums=('515b03638593e25adab7401351aa80eb1e061fcb')
17 sha256sums=('40049321f79403b1358b854da3d36e408077243af09f2ca7a1e25e847ad11fd4')
19 _gitroot="git://gitorious.org/pdnsd/pdnsd.git"
20 _gitname="pdnsd"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [[ -d $_gitname ]] ; then
27     cd "$_gitname" && git pull origin
28     msg "The local files are updated."
29   else
30     git clone "$_gitroot" "$_gitname"
31   fi
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"
43   autoreconf -fi
44   ./configure --prefix=/usr --sysconfdir=/etc
45   make
48 package() {
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