summaryrefslogtreecommitdiff
path: root/community/pdns/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/pdns/PKGBUILD')
-rw-r--r--community/pdns/PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/community/pdns/PKGBUILD b/community/pdns/PKGBUILD
new file mode 100644
index 000000000..dc886cf3c
--- /dev/null
+++ b/community/pdns/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 79208 2012-10-31 22:28:28Z tomegun $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=pdns
+pkgver=2.9.22.6
+pkgrel=1
+pkgdesc="A modern, advanced and high performance authoritative-only nameserver"
+arch=('i686' 'x86_64')
+url="http://www.powerdns.com"
+license=('GPL')
+depends=('gcc-libs' 'zlib' 'postgresql-libs' 'libmysqlclient' 'sqlite' 'libldap')
+makedepends=('boost')
+provides=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
+replaces=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
+conflicts=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
+install=pdns.install
+options=('!makeflags' '!libtool')
+backup=('etc/powerdns/pdns.conf')
+source=("http://downloads.powerdns.com/releases/${pkgname}-${pkgver}.tar.gz"
+ '2.9.18-default-mysql-options.patch'
+ 'pdns-2.9.22-gcc44.patch'
+ 'pdns.rc'
+ 'pdns.conf')
+md5sums=('ff97ba980b322adb61c3e9c9e9c4adef'
+ '90fb32e843326d14359c508cef855929'
+ '530642273005bdabae27792098834ea6'
+ '16e2d32e9781be7afa8f1700740bcdb0'
+ 'a390ab49c4fcde205629be33bddc2e6c')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}/2.9.18-default-mysql-options.patch"
+ patch -p1 -i "${srcdir}/pdns-2.9.22-gcc44.patch"
+ touch AUTHORS NEWS
+ libtoolize --force --copy
+ aclocal
+ autoconf
+ automake --add-missing
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/powerdns \
+ --libexecdir=/usr/lib \
+ --libdir=/usr/lib/powerdns \
+ --mandir=/usr/share/man \
+ --with-modules="" \
+ --with-dynmodules="ldap pipe gmysql gpgsql gsqlite3 geo" \
+ --disable-recursor \
+ --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -m755 -d "${pkgdir}/etc/rc.d"
+ rm "${pkgdir}/etc/powerdns/pdns.conf-dist"
+ install -m644 "${srcdir}/pdns.conf" "${pkgdir}/etc/powerdns/"
+ install -m755 "${srcdir}/pdns.rc" "${pkgdir}/etc/rc.d/pdns"
+}