diff options
Diffstat (limited to 'security/sudo/INSTALL')
-rwxr-xr-x | security/sudo/INSTALL | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/security/sudo/INSTALL b/security/sudo/INSTALL new file mode 100755 index 00000000000..111d09d7d0d --- /dev/null +++ b/security/sudo/INSTALL @@ -0,0 +1,57 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:17:58 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHOWN="@CHOWN@" +CHMOD="@CHMOD@" +CP="@CP@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/sudo +CONFDIR=/etc +CONFFILES="sudoers" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + echo "Installing configuration files:" + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file} + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHOWN} 0:0 ${FILE} + ${CHMOD} 0440 ${FILE} + fi + done + ${CAT} << EOF +=========================================================================== +Some files you might need to customize include the following: + +EOF + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + echo " ${FILE}" + done + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |