- use "SED" instead "REINPLACE_CMD -i"
- provide better config for apache24 - bump PORTREVISION
This commit is contained in:
parent
bce020ca7b
commit
f559f21d92
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405734
2 changed files with 20 additions and 12 deletions
|
@ -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}|'
|
||||
|
||||
|
|
|
@ -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/"
|
||||
<Directory "%%PREFIX%%/viewvc/bin/cgi">
|
||||
AddHandler cgi-script .cgi
|
||||
Options NONE +ExecCGI
|
||||
DirectoryIndex viewvc.cgi
|
||||
Require all granted
|
||||
</Directory>
|
||||
Example config lines for Apache 2.4
|
||||
===================================
|
||||
<IfModule wsgi_module>
|
||||
WSGIRestrictSignal Off
|
||||
</IfModule>
|
||||
|
||||
<IfModule !wsgi_module>
|
||||
ScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/cgi/viewvc.cgi"
|
||||
</IfModule>
|
||||
|
||||
<IfModule wsgi_module>
|
||||
WSGIScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/wsgi/viewvc.wsgi"
|
||||
</IfModule>
|
||||
|
||||
<Location /viewvc>
|
||||
Options NONE +ExecCGI
|
||||
</Location>
|
||||
|
||||
Example config lines for lighttpd
|
||||
=================================
|
||||
|
|
Loading…
Reference in a new issue