#! /bin/sh # # $NetBSD: INSTALL,v 1.1 2001/11/01 02:16:51 zuntum Exp $ PKGNAME=$1 STAGE=$2 CAT="@CAT@" CHMOD="@CHMOD@" CP="@CP@" APACHE_SYSCONFDIR="@APACHE_SYSCONFDIR@" SAMPLECONFDIR=${PKG_PREFIX}/share/examples/horde CONFDIR=${APACHE_SYSCONFDIR} HORDEDIR=${PKG_PREFIX}/@HORDEDIR@ PHPLIBDIR=${PKG_PREFIX}/@PHPLIBDIR@ CONFFILES=" ${PHPLIBDIR}/local.inc \ ${PHPLIBDIR}/prepend.php3 \ ${HORDEDIR}/config/horde.php3" NONCONFFILES=" ${HORDEDIR}/config/MOTD.html \ ${HORDEDIR}/config/header.txt \ ${HORDEDIR}/config/html.php3 \ ${HORDEDIR}/config/lang.php3 \ ${HORDEDIR}/config/menu.txt \ ${HORDEDIR}/config/mime.php3" case ${STAGE} in PRE-INSTALL) ;; POST-INSTALL) echo "Installing configuration files:" FILE=${CONFDIR}/horde.conf SAMPLEFILE=${SAMPLECONFDIR}/horde.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