diff --git a/devel/viewvc/Makefile b/devel/viewvc/Makefile
index 821996841fa7..e6b48d8deb32 100644
--- a/devel/viewvc/Makefile
+++ b/devel/viewvc/Makefile
@@ -3,6 +3,7 @@
PORTNAME= viewvc
PORTVERSION= 1.1.24
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://www.viewvc.org/ \
LOCAL/ohauer
@@ -63,7 +64,7 @@ post-patch:
${WRKSRC}/bin/standalone.py
# to much files, use own shebangfix
${FIND} ${WRKSRC} -type f | ${GREP} -v -e 'png' -e 'images' \
- | ${XARGS} ${REINPLACE_CMD} -i '' \
+ | ${XARGS} ${SED} -i '' \
-e '1s|^\#![[:space:]]*/usr/bin/env python|\#!${PYTHON_CMD}|' \
-e '1s|^\#![[:space:]]*/usr/bin/python|\#!${PYTHON_CMD}|'
diff --git a/devel/viewvc/files/pkg-message.in b/devel/viewvc/files/pkg-message.in
index 41fab98afee4..ea4dc8da3006 100644
--- a/devel/viewvc/files/pkg-message.in
+++ b/devel/viewvc/files/pkg-message.in
@@ -8,10 +8,10 @@
To enable the standalone ViewVC server in rc.conf use
parameter viewvc_enable="YES".
- You can also adjust the user which runs the ViewVC standalone
+ You can also adjust the user which runs the ViewVC standalone
server with the parameter "viewvc_user".
- If you want to run the ViewVC standalone server with another
+ If you want to run the ViewVC standalone server with another
IP/PORT, use the parameter "viewvc_flags".
To see all available parameters, use the command
@@ -21,16 +21,23 @@
To use ViewVC with Apache or lighttpd as a CGI script,
see the following config examples.
- Example config lines for Apache
- ===============================
- Alias /viewvc "%%PREFIX%%/viewvc/bin/cgi/"
-
- AddHandler cgi-script .cgi
- Options NONE +ExecCGI
- DirectoryIndex viewvc.cgi
- Require all granted
-
+ Example config lines for Apache 2.4
+ ===================================
+
+ WSGIRestrictSignal Off
+
+
+ ScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/cgi/viewvc.cgi"
+
+
+
+ WSGIScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/wsgi/viewvc.wsgi"
+
+
+
+ Options NONE +ExecCGI
+
Example config lines for lighttpd
=================================