diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-11 19:37:10 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-11 19:37:10 +0000 |
commit | 6e165bf79996101d6b540e61de092e48465c4bdc (patch) | |
tree | 509583bb895cd48615bad4f9a4911afa94105046 /dns/nsd/files/pkg-install.in | |
parent | 230e9ed1a143b55c0412352de095a091728ccfe1 (diff) | |
download | ports-6e165bf79996101d6b540e61de092e48465c4bdc.tar.gz ports-6e165bf79996101d6b540e61de092e48465c4bdc.zip |
Notes
Diffstat (limited to 'dns/nsd/files/pkg-install.in')
-rw-r--r-- | dns/nsd/files/pkg-install.in | 19 |
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 |