pkgsrc/www/geeklog/INSTALL
taca ac8071c50c - Fix bad handling of some cofiguration files noted by ghen@ behalf of
pkgsrc release engineering team.
- Keep current directory with DEINSTALL and INSTALL script.
- remove extra processing with POST-DEINSTALL action from DEINSTALL script.
- Suggest use of additional graphic package.
- Add APACHE_GROUP to BUILD_DEFS.
- install ${GEEKLOG_EXAMPLESDIR}/createdb.php with INSTALL_SCRIPT.

Bump PKGREVISION.
2006-07-23 13:21:09 +00:00

30 lines
698 B
Text

# $NetBSD: INSTALL,v 1.2 2006/07/23 13:21:09 taca Exp $
APACHE_GROUP="@APACHE_GROUP@"
GEEKLOG_PUBDIR="@GEEKLOG_PUBDIR@"
GEEKLOG_TMPL_SUB="@GEEKLOG_TMPL_SUB@"
GEEKLOG_TMPL_DIR="@GEEKLOG_TMPL_DIR@"
case ${STAGE} in
POST-INSTALL)
(cd ${GEEKLOG_TMPL_DIR}
${FIND} ${GEEKLOG_TMPL_SUB} -type d -print | \
while read d; do
dir="${GEEKLOG_PUBDIR}/$d"
if ${TEST} ! -d ${dir}; then
${MKDIR} ${dir}
${CHGRP} ${APACHE_GROUP} ${dir}
${CHMOD} 0775 ${dir}
fi
done
${FIND} ${GEEKLOG_TMPL_SUB} -type f -print | \
while read f; do
file="${GEEKLOG_PUBDIR}/$f"
if ${TEST} ! -f ${file}; then
${CP} -p ${f} ${file}
${CHGRP} ${APACHE_GROUP} ${file}
fi
done
)
;;
esac