#!/bin/sh LTWIKIDIR=www/twiki TWIKIDIR=${PKG_PREFIX}/${LTWIKIDIR} HOSTNAME=`hostname` WWWUSER=www WWWGROUP=www case $2 in PRE-INSTALL) ;; POST-INSTALL) # create the empty dirs if necessary (the port creates them # but pkg_add does not) if [ ! -d "${TWIKIDIR}/pub/Main" ]; then mkdir ${TWIKIDIR}/pub/Main fi if [ ! -d "${TWIKIDIR}/pub/Sandbox" ]; then mkdir ${TWIKIDIR}/pub/Sandbox fi if [ ! -d "${TWIKIDIR}/pub/Trash" ]; then mkdir ${TWIKIDIR}/pub/Trash fi # hmmm, if we modify this here, the file fails md5sum when deinstalling # but if we do this in Makefile, then we have a hardcoded PREFIX. What to # do? perl -pi -e "s#/home/httpd/twiki#${TWIKIDIR}#g" ${TWIKIDIR}/lib/TWiki.cfg.sample perl -pi -e "s#your.domain.com#`hostname`#" ${TWIKIDIR}/lib/TWiki.cfg.sample perl -pi -e "s#/bin/egrep#/usr/bin/egrep#" ${TWIKIDIR}/lib/TWiki.cfg.sample perl -pi -e "s#/bin/fgrep#/usr/bin/fgrep#" ${TWIKIDIR}/lib/TWiki.cfg.sample perl -pi -e "s/nobody:/${WWWUSER}:/g" ${TWIKIDIR}/data/*/*,v chown ${WWWUSER}:${WWWGROUP} `find ${TWIKIDIR}/data -type f` chown ${WWWUSER}:${WWWGROUP} `find ${TWIKIDIR}/data -type d` chown ${WWWUSER}:${WWWGROUP} `find ${TWIKIDIR}/pub -type f` chown ${WWWUSER}:${WWWGROUP} `find ${TWIKIDIR}/pub -type d` chmod 755 ${TWIKIDIR}/bin/* chmod 664 `find ${TWIKIDIR}/data -type f` chmod 775 `find ${TWIKIDIR}/data -type d` chmod 775 `find ${TWIKIDIR}/pub -type d` # let the user know what's going on cat << __EOF__ ***************************************************************** TWiki has been installed in ${TWIKIDIR}, with a sample configuration file in ${TWIKIDIR}/lib/TWiki.cfg.sample You need to copy this file to ${TWIKIDIR}/lib/TWiki.cfg and possibly edit it before your installation will be complete. In most cases, you can simply type: cp ${TWIKIDIR}/lib/TWiki.cfg.sample ${TWIKIDIR}/lib/TWiki.cfg Then you should be able to visit http://${HOSTNAME}/twiki/ You need to setup your webserver correctly for TWiki to work An example for apache is below: ScriptAlias /twiki/bin/ "${PKG_PREFIX}/www/twiki/bin/" Alias /twiki/ "${PKG_PREFIX}/www/twiki/" Options +ExecCGI SetHandler cgi-script Allow from all SetEnv USER "${WWWUSER}" Options FollowSymLinks +Includes AllowOverride None Allow from all Note that this default configuration defines a completely open TWiki - any visitor may make changes. Please consult the documentation for other configuration options if this is not the desired mode of operation. Please visit http://TWiki.org/feedback.html and leave feedback on your experiences with TWiki. Good Luck! ***************************************************************** __EOF__ ;; *) echo "Unexpected Argument $2!!!" exit 1 ;; esac exit 0 l/electron4/files/y18n-3.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/openmsx
Commit message (Expand)AuthorAgeFilesLines
* - Update graphics/sdl_ttf to version 2.0.10mva2010-08-111-0/+1
* Update to 0.8.0johans2010-06-103-14/+90
* - Add glew to the list of supported USE_GL variablesgahr2010-04-281-1/+1
* - update to 1.4.1dinoex2010-03-281-1/+1
* Update my mail address to @FreeBSD.orgjohans2010-02-241-1/+1
* - update to jpeg-8dinoex2010-02-051-1/+1
* - Update devel/sdl12 to version 1.2.14.mva2010-01-301-1/+1
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-2/+1
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1
* Really remove obsoleted patch file this timejohans2009-07-031-11/+0
* - Update to 0.7.2johans2009-07-033-26/+67
* Don't add a symlink in /usr/local/bin when installing with custom prefixjohans2009-06-071-0/+4
* Require modern gcc to compile on FreeBSD-6/amd64johans2009-01-131-1/+7
* Add patch to compile on amd64 (forgotten in previous commit)johans2009-01-121-0/+11
* - Update to 0.7.0johans2009-01-113-14/+68
* - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-061-12/+1
* - Remove USE_GCC where it can be satisfied with base compiler on followingpav2008-07-251-1/+0
* - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-0/+1
* - Pass $TCL_LIBDIR so that it finds TCL even with nonstandard LOCALBASEjohans2008-02-051-0/+1
* - Update to 0.6.3johans2007-12-273-6/+38
* Mark broken on FreeBSD 5.x/amd64 (internal gcc error)johans2007-06-121-0/+4
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* - Update to 0.6.2johans2007-04-294-28/+70
* - Fix build on FreeBSD 4.xjohans2006-10-081-2/+9
* - Update to 0.6.1johans2006-09-213-4/+26
* - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directorystas2006-09-201-0/+11
* Remove non-existent USE_CONFIGURE knob.erwin2006-06-131-1/+0