summaryrefslogtreecommitdiff
path: root/community/nsd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-11-03 01:06:08 -0700
committerroot <root@rshg054.dnsready.net>2013-11-03 01:06:08 -0700
commit1ce58386c5ee7086ac6848f35cade5d45bf86764 (patch)
treea02b709cc5107313c2a640ad192b4a4cb790df4f /community/nsd
parent02c5897cefdb4df89590f03c12870ad263240ebd (diff)
Sun Nov 3 01:05:44 PDT 2013
Diffstat (limited to 'community/nsd')
-rw-r--r--community/nsd/PKGBUILD13
-rw-r--r--community/nsd/install4
-rw-r--r--community/nsd/service2
-rw-r--r--community/nsd/tmpfiles.d1
4 files changed, 15 insertions, 5 deletions
diff --git a/community/nsd/PKGBUILD b/community/nsd/PKGBUILD
index c788d6441..bc40dcfb8 100644
--- a/community/nsd/PKGBUILD
+++ b/community/nsd/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 100048 2013-10-31 16:25:17Z bisson $
+# $Id: PKGBUILD 100223 2013-11-02 00:00:56Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=nsd
pkgver=4.0.0
-pkgrel=1
+pkgrel=2
pkgdesc='Authoritative only, high performance and simple DNS server'
url='http://www.nlnetlabs.nl/nsd/'
license=('BSD')
@@ -13,9 +13,11 @@ arch=('i686' 'x86_64')
depends=('openssl' 'libevent')
makedepends=('flex')
source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'tmpfiles.d'
'service')
sha1sums=('b3ebd669be8e830f62062d12be55242ca41da369'
- '9957762b810374c4eaa1461169f3c848b50466fe')
+ '7ad2b8da961a893095eede8963cf8026b13186a1'
+ '491bf9c6e63644f7d6c81d3b16138f0d87706aa0')
install=install
@@ -25,7 +27,7 @@ build() {
--prefix=/ \
--sbindir=/usr/bin \
--datarootdir=/usr/share \
- --with-pidfile=/run/nsd.pid \
+ --with-pidfile=/run/nsd/nsd.pid \
--enable-ratelimit
make
}
@@ -33,7 +35,10 @@ build() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
+ install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/nsd.conf
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/nsd.service
+ rmdir "${pkgdir}"/{tmp,run/{nsd,}}
+
rm doc/differences.pdf
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
install -m644 doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"
diff --git a/community/nsd/install b/community/nsd/install
index 5a5f41dd7..6e56e9ba1 100644
--- a/community/nsd/install
+++ b/community/nsd/install
@@ -5,6 +5,10 @@ post_install() {
chmod 700 /var/db/nsd
}
+post_upgrade() {
+ usr/bin/systemd-tmpfiles --create nsd.conf || true
+}
+
post_remove() {
getent passwd nsd &>/dev/null && userdel nsd >/dev/null
getent group nsd &>/dev/null && groupdel nsd >/dev/null
diff --git a/community/nsd/service b/community/nsd/service
index d5e2d14b4..b6125a686 100644
--- a/community/nsd/service
+++ b/community/nsd/service
@@ -3,7 +3,7 @@ Description=NSD Name Server Daemon
After=network.target
[Service]
-PIDFile=/run/nsd.pid
+PIDFile=/run/nsd/nsd.pid
ExecStart=/usr/bin/nsd -c /etc/nsd/nsd.conf
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
diff --git a/community/nsd/tmpfiles.d b/community/nsd/tmpfiles.d
new file mode 100644
index 000000000..3fd3273d0
--- /dev/null
+++ b/community/nsd/tmpfiles.d
@@ -0,0 +1 @@
+d /run/nsd 0755 nsd nsd