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-recursor/PKGBUILD | 40 +++++++++++++++++++++++++++ community/pdns-recursor/pdns-recursor.service | 10 +++++++ 2 files changed, 50 insertions(+) create mode 100644 community/pdns-recursor/PKGBUILD create mode 100644 community/pdns-recursor/pdns-recursor.service (limited to 'community/pdns-recursor') diff --git a/community/pdns-recursor/PKGBUILD b/community/pdns-recursor/PKGBUILD new file mode 100644 index 000000000..40bc9c897 --- /dev/null +++ b/community/pdns-recursor/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 93880 2013-07-11 16:32:02Z arodseth $ +# Maintainer: Alexander Rødseth +# Contributor: Jan de Groot +# Contributor: Jan Steffens + +pkgname=pdns-recursor +pkgver=3.5.2 +pkgrel=1 +pkgdesc='PowerDNS recursor' +url='https://www.powerdns.com/' +license=('GPL') +arch=('x86_64' 'i686') +depends=('gcc-libs' 'lua51') +makedepends=('boost') +backup=('etc/powerdns/recursor.conf') +source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2" + 'pdns-recursor.service') +sha256sums=('ffe3158ee5b3f62e927198fd44e839a01d3241a41a4e61afdca6709113c276bd' + '51688d9576736fdf210048098fa96c8710bfbd6a63eb4d69d20bac57b299b5f9') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make -j1 LUA=1 \ + LUA_CPPFLAGS_CONFIG="$(pkg-config --cflags lua5.1)" \ + LUA_LIBS_CONFIG="$(pkg-config --libs lua5.1)" +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make SBINDIR="/usr/bin" DESTDIR="$pkgdir" install + mv "$pkgdir/etc/powerdns/recursor.conf-dist" \ + "$pkgdir/etc/powerdns/recursor.conf" + rm -r "$pkgdir/etc/init.d" + install -Dm644 "$srcdir/pdns-recursor.service" \ + "$pkgdir/usr/lib/systemd/system/pdns-recursor.service" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/pdns-recursor/pdns-recursor.service b/community/pdns-recursor/pdns-recursor.service new file mode 100644 index 000000000..e8d23ccd0 --- /dev/null +++ b/community/pdns-recursor/pdns-recursor.service @@ -0,0 +1,10 @@ +[Unit] +Description=PowerDNS recursing nameserver +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/pdns_recursor --daemon + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf