aboutsummaryrefslogtreecommitdiff
path: root/dns/nsd/files/pkg-install.in
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-02-11 19:37:10 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-02-11 19:37:10 +0000
commit6e165bf79996101d6b540e61de092e48465c4bdc (patch)
tree509583bb895cd48615bad4f9a4911afa94105046 /dns/nsd/files/pkg-install.in
parent230e9ed1a143b55c0412352de095a091728ccfe1 (diff)
downloadports-6e165bf79996101d6b540e61de092e48465c4bdc.tar.gz
ports-6e165bf79996101d6b540e61de092e48465c4bdc.zip
Notes
Diffstat (limited to 'dns/nsd/files/pkg-install.in')
-rw-r--r--dns/nsd/files/pkg-install.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/dns/nsd/files/pkg-install.in b/dns/nsd/files/pkg-install.in
new file mode 100644
index 000000000000..624f4bb59b7c
--- /dev/null
+++ b/dns/nsd/files/pkg-install.in
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $FreeBSD$
+
+PATH="/bin:/sbin:/usr/bin:/usr/sbin"
+
+NSDUSER=%%NSDUSER%%
+NSDGROUP=%%NSDGROUP%%
+NSDDBDIR=%%NSDDBDIR%%
+NSDRUNDIR=%%NSDRUNDIR%%
+
+CHOWN="chown"
+INSTALL_DIR="install -d -o ${NSDUSER} -g ${NSDGROUP} -m 0755"
+
+if [ "$2" = "POST-INSTALL" ]; then
+ ${INSTALL_DIR} ${NSDDBDIR} ${NSDRUNDIR}
+ ${CHOWN} -R ${NSDUSER}:${NSDGROUP} ${NSDDBDIR} ${NSDRUNDIR}
+fi
+
+exit 0