6d2698e886
pkgsrc changes: overhaul this package. * Add LICENSE. * Clean up bmake's macros, such as addition of PRINT_PLIST_AWK. Geeklog changes: too many chagnes to write here. * New user-friendly installation. * New Configuration GUI. * New Webservice GUI. * And more. Please refer http://www.geeklog.net/docs/english/changes.html for more information. Fixed some security problems about SQL injection vulnerability.
34 lines
845 B
Text
34 lines
845 B
Text
# $NetBSD: INSTALL,v 1.4 2009/05/26 14:19:29 taca Exp $
|
|
|
|
APACHE_GROUP="@APACHE_GROUP@"
|
|
GEEKLOG_PUBDIR="${PREFIX}/@GEEKLOG_PUB@"
|
|
GEEKLOG_ADMIN_DIR="${PREFIX}/@GL_ADMIN@"
|
|
GEEKLOG_TMPL_DIR="${PREFIX}/@GL_TMPL@"
|
|
GEEKLOG_TMPL_SUB="@GL_TMPL_SUB@"
|
|
PAX="@PAX@"
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
(cd ${GEEKLOG_ADMIN_DIR}; ${PAX} -rw . ${GEEKLOG_PUBDIR}/admin)
|
|
(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}
|
|
${CHMOD} 0660 ${file}
|
|
fi
|
|
done
|
|
)
|
|
;;
|
|
esac
|