summaryrefslogtreecommitdiff
path: root/community/powerdns-recursor
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
commit462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch)
tree11d4d3f054aae9ffd869adc634054f64a16d83b8 /community/powerdns-recursor
parent748e32a3a886569b58a27003e85b76be5746153d (diff)
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'community/powerdns-recursor')
-rw-r--r--community/powerdns-recursor/PKGBUILD41
-rw-r--r--community/powerdns-recursor/pdns-recursor.service10
2 files changed, 51 insertions, 0 deletions
diff --git a/community/powerdns-recursor/PKGBUILD b/community/powerdns-recursor/PKGBUILD
new file mode 100644
index 000000000..d8ee40a25
--- /dev/null
+++ b/community/powerdns-recursor/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 100035 2013-10-31 11:20:48Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: Jan Steffens <heftig@archlinux.org>
+
+pkgname=powerdns-recursor
+pkgver=3.5.3
+pkgrel=2
+pkgdesc='Resolving DNS server'
+url='https://www.powerdns.com/'
+license=('GPL')
+arch=('x86_64' 'i686')
+depends=('gcc-libs' 'lua51')
+makedepends=('boost')
+replaces=('pdns-recursor')
+provides=('pdns-recursor')
+conflicts=('pdns-recursor')
+backup=('etc/powerdns/recursor.conf')
+source=("http://downloads.powerdns.com/releases/pdns-recursor-$pkgver.tar.bz2"
+ 'pdns-recursor.service')
+sha256sums=('192c0b47a1cfcdccaa88d70fd33766a4c381f4223f966416f15e169df5d58eaa'
+ 'd4f545e85dffa86bf23c89ff0f352c74ec3524dfc53871f129656299222e4fba')
+
+build() {
+ make -C "pdns-recursor-$pkgver" -j1 LUA=1 \
+ LUA_CPPFLAGS_CONFIG="$(pkg-config --cflags lua5.1)" \
+ LUA_LIBS_CONFIG="$(pkg-config --libs lua5.1)"
+}
+
+package() {
+ cd "pdns-recursor-$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/powerdns-recursor/pdns-recursor.service b/community/powerdns-recursor/pdns-recursor.service
new file mode 100644
index 000000000..0859889a6
--- /dev/null
+++ b/community/powerdns-recursor/pdns-recursor.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=PowerDNS resolving DNS server
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/pdns_recursor --daemon
+
+[Install]
+WantedBy=multi-user.target