diff options
Diffstat (limited to 'mail/imp/INSTALL')
-rw-r--r-- | mail/imp/INSTALL | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/mail/imp/INSTALL b/mail/imp/INSTALL new file mode 100644 index 00000000000..59d56707c9c --- /dev/null +++ b/mail/imp/INSTALL @@ -0,0 +1,79 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:00:17 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" + +APACHE_SYSCONFDIR="@APACHE_SYSCONFDIR@" +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/imp +CONFDIR=${APACHE_SYSCONFDIR} +IMPDIR=${PKG_PREFIX}/@IMPDIR@ + +CONFFILES=" ${IMPDIR}/config/defaults.php3 \ + ${IMPDIR}/config/ldap.php3 \ + ${IMPDIR}/config/servers.php3" +NONCONFFILES=" ${IMPDIR}/config/MOTD.html \ + ${IMPDIR}/config/header.txt \ + ${IMPDIR}/config/html.php3 \ + ${IMPDIR}/config/imp_module_config.php3 \ + ${IMPDIR}/config/lang.php3 \ + ${IMPDIR}/config/mailbox.php3 \ + ${IMPDIR}/config/menu.txt \ + ${IMPDIR}/config/mime.php3 \ + ${IMPDIR}/config/prefs.php3 \ + ${IMPDIR}/config/trailer.txt" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + echo "Installing configuration files:" + FILE=${CONFDIR}/imp.conf + SAMPLEFILE=${SAMPLECONFDIR}/imp.conf + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 644 ${FILE} + fi + for FILE in ${CONFFILES} ${NONCONFFILES} + do + SAMPLEFILE=${FILE}.dist + 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 + echo " ${FILE}" + done + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |