pkgsrc/print/LPRng-core/INSTALL
jlam 2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00

49 lines
962 B
Text

#! /bin/sh
#
# $NetBSD: INSTALL,v 1.2 2003/08/30 20:23:01 jlam Exp $
PKGNAME=$1
STAGE=$2
CAT="@CAT@"
CHMOD="@CHMOD@"
CP="@CP@"
SAMPLECONFDIR=${PKG_PREFIX}/share/examples/LPRng
CONFDIR=/etc
CONFFILES="lpd.conf lpd.perms"
NONCONFFILES="printcap"
case ${STAGE} in
POST-INSTALL)
echo "Installing configuration files:"
for file in ${CONFFILES} ${NONCONFFILES}
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} ${NONCONFFILES}
do
FILE=${CONFDIR}/${file}
echo " ${FILE}"
done
${CAT} << EOF
===========================================================================
EOF
;;
esac
exit 0