summaryrefslogtreecommitdiff
path: root/net/nsd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/nsd/Makefile')
-rw-r--r--net/nsd/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/nsd/Makefile b/net/nsd/Makefile
index 16623432035..d9205f7627a 100644
--- a/net/nsd/Makefile
+++ b/net/nsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2015/02/05 07:06:04 pettai Exp $
+# $NetBSD: Makefile,v 1.74 2015/03/09 11:34:26 pettai Exp $
DISTNAME= nsd-4.1.1
CATEGORIES= net
@@ -9,7 +9,8 @@ HOMEPAGE= http://www.nlnetlabs.nl/nsd/index.html
COMMENT= Authoritative-only DNS server
LICENSE= modified-bsd
-BUILD_DEFS+= VARBASE
+BUILD_DEFS+= VARBASE NSD_USER NSD_GROUP
+FILES_SUBST+= NSD_USER=${NSD_USER} NSD_GROUP=${NSD_GROUP}
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
@@ -40,7 +41,7 @@ CONFIGURE_ARGS+=--enable-ratelimit
CONFIGURE_ARGS+=--disable-ratelimit
.endif
-CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd.pid
+CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd/nsd.pid
CONFIGURE_ARGS+=--with-user=${NSD_USER}
CONFIGURE_ARGS+=--with-dbfile=${VARBASE}/nsd/nsd.db
CONFIGURE_ARGS+=--with-xfrdfile=${VARBASE}/nsd/nsd-xfrd.state
@@ -57,6 +58,8 @@ PKG_USERS= ${NSD_USER}:${NSD_GROUP}
CONF_FILES+= share/examples/nsd/nsd.conf ${PKG_SYSCONFDIR}/nsd.conf
+OWN_DIRS_PERMS+= ${VARBASE}/nsd ${NSD_USER} ${NSD_GROUP} 755
+
INSTALLATION_DIRS= share/examples/nsd
INSTALLATION_DIRS+= ${VARBASE}/nsd