diff options
Diffstat (limited to 'www/thttpd/INSTALL')
-rw-r--r-- | www/thttpd/INSTALL | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/www/thttpd/INSTALL b/www/thttpd/INSTALL new file mode 100644 index 00000000000..26bd2bbe4ef --- /dev/null +++ b/www/thttpd/INSTALL @@ -0,0 +1,56 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 02:18:57 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" + +SAMPLECONFDIR=${PKG_PREFIX}/share/examples +CONFDIR=/etc +CONFFILES="thttpd.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 +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |