aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/nsd/APKBUILD6
-rw-r--r--main/nsd/nsd.pre-install4
2 files changed, 6 insertions, 4 deletions
diff --git a/main/nsd/APKBUILD b/main/nsd/APKBUILD
index e7cc42cbdb..edf8f10309 100644
--- a/main/nsd/APKBUILD
+++ b/main/nsd/APKBUILD
@@ -1,8 +1,9 @@
# Contributor: Matt Smith <mcs@darkregion.net>
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=nsd
pkgver=4.0.0
-pkgrel=0
+pkgrel=1
pkgdesc="NSD is an authoritative only, high performance, simple and open source name server."
url="http://www.nlnetlabs.nl/projects/nsd/"
arch="all"
@@ -51,7 +52,8 @@ package() {
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/nsd || return 1
- chown nsd "$pkgdir"/var/db/nsd || return 1
+ chown nsd.nsd "$pkgdir"/var/db/nsd || return 1
+ chown nsd.nsd "$pkgdir"/var/run/nsd || return 1
}
doc() {
diff --git a/main/nsd/nsd.pre-install b/main/nsd/nsd.pre-install
index b95b0065de..57e4ad1398 100644
--- a/main/nsd/nsd.pre-install
+++ b/main/nsd/nsd.pre-install
@@ -1,4 +1,4 @@
#!/bin/sh
-
-adduser -S -H -h /var/db/nsd -s /sbin/nologin nsd 2>/dev/null
+addgroup nsd 2>/dev/null
+adduser -G nsd -S -H -h /var/db/nsd -s /sbin/nologin nsd 2>/dev/null
exit 0