- Change the MOINSCRIPT to wikiserver.py when defined

MOINTYPE=STANDALONE, the old wiki.py is deprecated.
- Change the hint when making instances, add configuration
  for static contents.

PR:		125210
Submitted by:	Zhen REN <bg1tpt@gmail.com> (maintainer)
This commit is contained in:
Martin Wilke 2008-07-07 14:04:12 +00:00
parent 0a64548c94
commit 52058bdb16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216462
2 changed files with 12 additions and 2 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= moinmoin
PORTVERSION= 1.7.0
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://static.moinmo.in/files/
DISTNAME= moin-${PORTVERSION}
@ -31,7 +32,7 @@ MOINTYPE?= CGI
PKGDEINSTALL= ${PKGINSTALL}
.if ${MOINTYPE} == "STANDALONE"
MOINSCRIPT= ${MOINDIR}/server/moin.py
MOINSCRIPT= ${MOINDIR}/server/wikiserver.py
.elif ${MOINTYPE} == "FCGI"
MOINSCRIPT= ${MOINDIR}/server/moin.fcg
.elif ${MOINTYPE} == "MOD_PYTHON"

View File

@ -17,6 +17,11 @@ case "x$2" in
echo "add something like that to your Apache configuration."
echo ""
echo ",-----"
echo " Alias /moin_static170/ \"$sharedir/htdocs/\""
echo " <Directory \"$sharedir/htdocs/\">"
echo " Order deny,allow"
echo " Allow from all"
echo " </Directory>"
echo " Alias /mywiki $destdir"
echo " <Location \"/mywiki\">"
echo " SetHandler python-program"
@ -37,7 +42,11 @@ case "x$2" in
echo ""
echo ",-----"
echo " Alias /wiki/ \"$sharedir/htdocs/\""
echo " Alias /moin_static170/ \"$sharedir/htdocs/\""
echo " <Directory \"$sharedir/htdocs/\">"
echo " Order deny,allow"
echo " Allow from all"
echo " </Directory>"
echo " ScriptAlias /mywiki \"$destdir/moin.cgi\""
echo " <Directory \"$sharedir/htdocs/\">"
echo " Allow from all"