diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-10-31 22:52:58 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-10-31 22:52:58 +0000 |
commit | d038a73ebd432fae3ce355b84443038f88cb7199 (patch) | |
tree | b3c17888184b1b17ed1b1fa28f1697197bb0b4f6 /net/vtun/INSTALL | |
parent | 70bae73d77e50256a2ee847bd9be11b761bcea01 (diff) | |
download | pkgsrc-d038a73ebd432fae3ce355b84443038f88cb7199.tar.gz |
Move pkg/ files into package's toplevel directory
Diffstat (limited to 'net/vtun/INSTALL')
-rw-r--r-- | net/vtun/INSTALL | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/net/vtun/INSTALL b/net/vtun/INSTALL new file mode 100644 index 00000000000..d284f357eff --- /dev/null +++ b/net/vtun/INSTALL @@ -0,0 +1,62 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/10/31 22:59:45 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" +MKDIR="@MKDIR@" + +CONFDIR="@VTUN_SYSCONFDIR@" +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/vtun +CONFFILES="vtund.conf" +LOCKDIR=/var/lock/vtund +LOGDIR=/var/log/vtund + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${LOCKDIR} + ${MKDIR} ${LOGDIR} + + echo "Installing configuration files:" + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file}.example + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${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 |