summaryrefslogtreecommitdiff
path: root/community/pdns-recursor/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-09 01:24:21 -0800
committerroot <root@rshg054.dnsready.net>2012-11-09 01:24:21 -0800
commitc865fc041a0945e396f139a86315f6a25b1d4dec (patch)
tree95e232fb3fc00a803572f8e58af5b08d55ca070f /community/pdns-recursor/PKGBUILD
parente5f99abe2484d8fdfd1b2d57ba2233e027e9b64c (diff)
Fri Nov 9 01:24:21 PST 2012
Diffstat (limited to 'community/pdns-recursor/PKGBUILD')
-rw-r--r--community/pdns-recursor/PKGBUILD43
1 files changed, 26 insertions, 17 deletions
diff --git a/community/pdns-recursor/PKGBUILD b/community/pdns-recursor/PKGBUILD
index 14b67ce63..4953c40fe 100644
--- a/community/pdns-recursor/PKGBUILD
+++ b/community/pdns-recursor/PKGBUILD
@@ -1,31 +1,40 @@
-# $Id: PKGBUILD 79210 2012-10-31 22:50:00Z tomegun $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
+# $Id: PKGBUILD 79612 2012-11-08 22:16:52Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=pdns-recursor
pkgver=3.3
-pkgrel=2
-pkgdesc="PowerDNS recursor"
-url="http://www.powerdns.com"
+pkgrel=3
+pkgdesc='PowerDNS recursor'
+url='http://www.powerdns.com'
license=('GPL')
-arch=('i686' 'x86_64')
+arch=('x86_64' 'i686')
depends=('gcc-libs' 'lua')
makedepends=('boost')
backup=('etc/powerdns/recursor.conf')
-source=("http://downloads.powerdns.com/releases/${pkgname}-${pkgver}.tar.bz2"
- 'pdns-recursor.rc')
-md5sums=('87daeeebb6f7af9e07814ff6c43300dd'
- '5b3aa3c8ed2edf55821af16cfb7ef252')
+source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2"
+ 'pdns-recursor.rc'
+ 'pdns-recursor.service')
+sha256sums=('7b62d97f2bb02bb0ba366dabb5e504338b949a572b9062ec2198012fc3b525bc'
+ '7ff45a2da128e82da409f123f8346cc085b57337d6d44a9fd76d17024898b1ca'
+ 'c5849127cb42b578ff4c38ee6ad39e109bb749ce8b0147ac3619af90803b6875')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "$srcdir/$pkgname-$pkgver"
+
LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- install -d -m755 "${pkgdir}/etc/rc.d"
- mv "${pkgdir}/etc/powerdns/recursor.conf-dist" "${pkgdir}/etc/powerdns/recursor.conf"
- install -m755 "${srcdir}/pdns-recursor.rc" "${pkgdir}/etc/rc.d/pdns-recursor"
- rm -rf "${pkgdir}/etc/init.d"
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -d -m755 "$pkgdir/etc/rc.d"
+ mv "$pkgdir/etc/powerdns/recursor.conf-dist" "$pkgdir/etc/powerdns/recursor.conf"
+ install -m755 "$srcdir/pdns-recursor.rc" "$pkgdir/etc/rc.d/pdns-recursor"
+ 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: