diff options
Diffstat (limited to 'community/nsd')
-rw-r--r-- | community/nsd/PKGBUILD | 6 | ||||
-rw-r--r-- | community/nsd/install | 9 | ||||
-rw-r--r-- | community/nsd/service | 2 |
3 files changed, 9 insertions, 8 deletions
diff --git a/community/nsd/PKGBUILD b/community/nsd/PKGBUILD index bc40dcfb8..f12229e29 100644 --- a/community/nsd/PKGBUILD +++ b/community/nsd/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 100223 2013-11-02 00:00:56Z bisson $ +# $Id: PKGBUILD 103387 2014-01-05 10:34:05Z 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=2 +pkgrel=3 pkgdesc='Authoritative only, high performance and simple DNS server' url='http://www.nlnetlabs.nl/nsd/' license=('BSD') @@ -17,7 +17,7 @@ source=("http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${pkgver}.tar.g 'service') sha1sums=('b3ebd669be8e830f62062d12be55242ca41da369' '7ad2b8da961a893095eede8963cf8026b13186a1' - '491bf9c6e63644f7d6c81d3b16138f0d87706aa0') + '3dbe300d834a32c9a339a6c76c58f5c240239e9b') install=install diff --git a/community/nsd/install b/community/nsd/install index 6e56e9ba1..5f693dba0 100644 --- a/community/nsd/install +++ b/community/nsd/install @@ -1,12 +1,13 @@ +post_upgrade() { + usr/bin/systemd-tmpfiles --create nsd.conf || true +} + post_install() { getent group nsd &>/dev/null || groupadd -r nsd >/dev/null getent passwd nsd &>/dev/null || useradd -r -g nsd -d /dev/null -s /bin/false -c nsd nsd >/dev/null chown nsd:nsd /var/db/nsd chmod 700 /var/db/nsd -} - -post_upgrade() { - usr/bin/systemd-tmpfiles --create nsd.conf || true + post_upgrade } post_remove() { diff --git a/community/nsd/service b/community/nsd/service index b6125a686..9f0231227 100644 --- a/community/nsd/service +++ b/community/nsd/service @@ -4,7 +4,7 @@ After=network.target [Service] PIDFile=/run/nsd/nsd.pid -ExecStart=/usr/bin/nsd -c /etc/nsd/nsd.conf +ExecStart=/usr/bin/nsd -d -c /etc/nsd/nsd.conf ExecReload=/bin/kill -HUP $MAINPID ExecStop=/bin/kill -TERM $MAINPID |