pkgsrc/net/vtun/INSTALL

46 lines
938 B
Text
Raw Normal View History

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.4 2003/08/30 20:23:00 jlam Exp $
CONFDIR="@PKG_SYSCONFDIR@"
SAMPLECONFDIR=${PKG_PREFIX}/share/examples/vtun
CONFFILES="vtund.conf"
LOCKDIR=/var/lock/vtund
LOGDIR=/var/log/vtund
case ${STAGE} in
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
;;
esac