From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/pdns/PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 community/pdns/PKGBUILD (limited to 'community/pdns/PKGBUILD') diff --git a/community/pdns/PKGBUILD b/community/pdns/PKGBUILD new file mode 100644 index 000000000..ffec56609 --- /dev/null +++ b/community/pdns/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 94038 2013-07-13 12:35:15Z svenstaro $ +# Maintainer: Alexander Rødseth +# Contributor: Jan de Groot +# Contributor: Kevin Mihelich + +pkgname=pdns +pkgver=3.3 +pkgrel=2 +pkgdesc='Modern, advanced and high performance authoritative-only nameserver' +arch=('x86_64' 'i686') +url='http://www.powerdns.com/' +license=('GPL') +depends=('boost-libs' 'gcc-libs' 'postgresql-libs' 'libmariadbclient' 'sqlite' 'libldap' 'lua51') +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="$pkgname.install" +options=('!makeflags' '!libtool') +backup=('etc/powerdns/pdns.conf') +source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.gz" + 'pdns.service' + 'pdns.conf') +sha256sums=('93417bb418ccd1eaf85fc98aa9f687ed175de388fa2624a1978b7cd40dc2b0b6' + 'b2358a5951ac944feee15ac03d42ffe9c2a72fa6f57746f77ef8997d54a82040' + 'a1afcccb0d2fb6a6f7a5960de95f8d38ce1ac75ac5e3dcecf09e49f0de10166e') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + touch AUTHORS NEWS +} + +build() { + cd "$srcdir/$pkgname-$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() { + cd "$srcdir/$pkgname-$pkgver" + + make 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: -- cgit v1.2.3-54-g00ecf