pkgsrc/mail/cyrus-imapd/pkg/INSTALL
skrll 5b79969881 Update to version 2.0.16
Changes to numerous to mention see the changes.html file.
2001-09-18 21:56:29 +00:00

61 lines
1.1 KiB
Text

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.4 2001/09/18 21:56:31 skrll Exp $
PKGNAME=$1
STAGE=$2
CAT="@CAT@"
CHMOD="@CHMOD@"
CP="@CP@"
SAMPLECONFDIR=${PKG_PREFIX}/share/examples/cyrus-imapd
CONFDIR=/etc
CONFFILES="imapd.conf"
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}
${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
Please also refer to:
${PKG_PREFIX}/share/doc/html/cyrus-imapd/install.html
to set up the necessary directories before starting the Cyrus IMAP server.
===========================================================================
EOF
;;
*)
echo "Unexpected argument: ${STAGE}"
exit 1
;;
esac
exit 0