freebsd-ports/www/foswiki/files/pkg-install.in
Sergey Skvortsov bb021ed644 - Update to 1.1.2
- Enable OPTINT by default
- Take maintainership

Changes:	http://foswiki.org/System/ReleaseNotes01x01#Release01x01Changes
PR:		ports/155060
Submitted by:	skv
2011-03-20 19:58:09 +00:00

50 lines
1.4 KiB
Bash

#!/bin/sh
#
# $FreeBSD$
#
WWWDIR=%%WWWDIR%%
FIND=%%FIND%%
CHMOD=%%CHMOD%%
CHOWN=%%CHOWN%%
TOUCH=%%TOUCH%%
WWWOWN=%%WWWOWN%%
WWWGRP=%%WWWGRP%%
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
cd ${WWWDIR}/
${FIND} . -type d -print -exec ${CHMOD} 755 {} \;
${FIND} data -name '*.txt' -type f -exec ${CHMOD} 644 {} \;
${FIND} data pub -name '*,v' -type f -exec ${CHMOD} 444 {} \;
${FIND} lib -type f -exec ${CHMOD} 444 {} \;
${FIND} locale -type f -exec ${CHMOD} 444 {} \;
${FIND} pub -type f -exec ${CHMOD} 644 {} \;
${FIND} bin -type f -exec ${CHMOD} 555 {} \;
${FIND} templates -type f -exec ${CHMOD} 444 {} \;
${FIND} tools -type f -exec ${CHMOD} 555 {} \;
${TOUCH} data/.htpasswd
${CHMOD} 644 data/.htpasswd
${CHMOD} 644 data/mime.types
${CHMOD} 644 bin/LocalLib.cfg.txt bin/.htaccess.txt
${CHMOD} 444 bin/setlib.cfg
${CHMOD} 644 lib/LocalSite.cfg
${CHMOD} 444 tools/extender.pl
${CHMOD} 444 working/tmp/README working/README \
working/registration_approvals/README \
working/work_areas/README
${CHMOD} 660 working/.htaccess
${CHMOD} 444 AUTHORS COPYING COPYRIGHT index.html \
INSTALL.html LICENSE pub-htaccess.txt readme.txt \
robots.txt root-htaccess.txt subdir-htaccess.txt \
foswiki_httpd_conf.txt ReleaseNotes01x01.html
${CHOWN} -R ${WWWOWN}:${WWWGRP} .
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0