summaryrefslogtreecommitdiffstats
path: root/main/nsd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-16 13:51:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-16 13:56:07 +0000
commit1f7cb8f7085ab7cc37a08b37dc402667ba8c6a3f (patch)
treea5eb5fb9007fd1314f6e29350736c7c73b482cbb /main/nsd
parent0d4c88881f22054e885ae7682468c71d42cc7e53 (diff)
downloadaports-1f7cb8f7085ab7cc37a08b37dc402667ba8c6a3f.tar.bz2
aports-1f7cb8f7085ab7cc37a08b37dc402667ba8c6a3f.tar.xz
main/nsd: create nsd user on upgrade
ref #2839
Diffstat (limited to 'main/nsd')
-rw-r--r--main/nsd/0010-stop-unlink-pid-error.patch26
-rw-r--r--main/nsd/APKBUILD6
l---------main/nsd/nsd.pre-upgrade1
3 files changed, 4 insertions, 29 deletions
diff --git a/main/nsd/0010-stop-unlink-pid-error.patch b/main/nsd/0010-stop-unlink-pid-error.patch
deleted file mode 100644
index 24175df33..000000000
--- a/main/nsd/0010-stop-unlink-pid-error.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-This patch prevents nsd from attempting to unlink the pidfile on nsd
-shutdown. The reason for this is because we get a permission denied
-error in nsd.log when it attempts to do so.
-
-I think this is needed because of how normal OpenRC init scripts are
-designed and handled.
-
-See the included /etc/init.d/nsd (nsd.initd) for my conversion of the
-nsdc script that's normally distributed with nsd. The included nsdc
-script is a wrapper for the converted OpenRC init script, designed to
-maintain compatibility.
-
-Matt Smith <msmith@alpinelinux.org>
-
-
---- a/server.c
-+++ b/server.c
-@@ -1167,7 +1167,7 @@
- close(fd);
-
- /* Unlink it if possible... */
-- unlinkpid(nsd->pidfile);
-+ //unlinkpid(nsd->pidfile);
-
- if(reload_listener.fd > 0) {
- sig_atomic_t cmd = NSD_QUIT;
diff --git a/main/nsd/APKBUILD b/main/nsd/APKBUILD
index a13b728c2..2f1e7a442 100644
--- a/main/nsd/APKBUILD
+++ b/main/nsd/APKBUILD
@@ -1,9 +1,9 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer: Matt Smith <mcs@darkregion.net>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org
pkgname=nsd
pkgver=4.0.3
-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"
@@ -11,7 +11,7 @@ license="BSD"
depends=
depends_dev=
makedepends="$depends_dev openssl-dev libevent-dev"
-install="$pkgname.pre-install $pkgname.post-deinstall"
+install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-deinstall"
subpackages="$pkgname-doc $pkgname-dbg"
pkgusers="nsd"
pkggroups="nsd"
diff --git a/main/nsd/nsd.pre-upgrade b/main/nsd/nsd.pre-upgrade
new file mode 120000
index 000000000..303c03720
--- /dev/null
+++ b/main/nsd/nsd.pre-upgrade
@@ -0,0 +1 @@
+nsd.pre-install \ No newline at end of file