diff options
Diffstat (limited to 'community/powerdns/PKGBUILD')
-rw-r--r-- | community/powerdns/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/powerdns/PKGBUILD b/community/powerdns/PKGBUILD new file mode 100644 index 000000000..842decd4c --- /dev/null +++ b/community/powerdns/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 101429 2013-11-25 14:11:30Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Jan de Groot <jgc@archlinux.org> +# Contributor: Kevin Mihelich <kevin@archlinuxarm.org> + +pkgname=powerdns +pkgver=3.3.1 +pkgrel=1 +pkgdesc='Authoritative DNS server' +arch=('x86_64' 'i686' 'mips64el') +url='http://www.powerdns.com/' +license=('GPL') +depends=('boost-libs' 'gcc-libs' 'postgresql-libs' 'libmariadbclient' 'sqlite' 'libldap' 'lua') +makedepends=('boost') +provides=('pdns' 'pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql') +replaces=('pdns' 'pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql') +conflicts=('pdns' 'pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql') +options=('!makeflags') +backup=('etc/powerdns/pdns.conf') +source=("http://downloads.powerdns.com/releases/pdns-$pkgver.tar.gz" + 'pdns.service' + 'pdns.conf') +sha256sums=('feb566994725e049391e9b862c9437ca545f1bb970143d2387e474a6ff645bf3' + 'b2358a5951ac944feee15ac03d42ffe9c2a72fa6f57746f77ef8997d54a82040' + 'a1afcccb0d2fb6a6f7a5960de95f8d38ce1ac75ac5e3dcecf09e49f0de10166e') + +prepare() { + cd "pdns-$pkgver" + + touch AUTHORS NEWS +} + +build() { + cd "pdns-$pkgver" + + ./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-static \ + --sbindir=/usr/bin \ + --bindir=/usr/bin + make +} + +package() { + make -C "pdns-$pkgver" DESTDIR="$pkgdir" install + install -m644 "$srcdir/pdns.conf" "$pkgdir/etc/powerdns/" + install -Dm644 "$srcdir/pdns.service" \ + "$pkgdir/usr/lib/systemd/system/pdns.service" + rm -f "$pkgdir/etc/powerdns/pdns.conf-dist" +} + +# vim:set ts=2 sw=2 et: |