viewvc added

This commit is contained in:
Micha Glave
2006-10-05 06:37:48 +00:00
parent b1bc5cf722
commit 383f3ed1b9
7 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
MD5 2e14b2aeadd4e9ddd6b3876ffd184e61 viewvc-1.0.1.tar.gz 378269
RMD160 202adfe6c86784c5cc55ffcaf690c85563a7f280 viewvc-1.0.1.tar.gz 378269
SHA256 7ea8765d47ecef77da48613226a63558eb97132ef2ed1b0ad2260b83f8e56cbd viewvc-1.0.1.tar.gz 378269

View File

@@ -0,0 +1,3 @@
MD5 47569c8ab2ac67831340e460e685c3a9 viewvc-1.0.2.tar.gz 406307
RMD160 fce27c91c5d329c1a41d675825b65b58c00ae8e9 viewvc-1.0.2.tar.gz 406307
SHA256 7ba9c308cedba382188415fa27af6a6a0b91e99fa672dc94c44ee2761ae054cb viewvc-1.0.2.tar.gz 406307

View File

@@ -0,0 +1,22 @@
If you are using Apache, consider adding something like this to your
apache.conf:
ScriptAlias /viewcvs ${VHOST_CGIBINDIR}/${PN}/viewcvs.cgi
ScriptAlias /cvsquery ${VHOST_CGIBINDIR}/${PN}/cvsquery.cgi
Before using viewcvs, be sure to configure it properly.
Edit ${VHOST_ROOT}/${PN}/viewcvs.conf and ${VHOST_ROOT}/${PN}/cvsgraph.conf to
suit your needs.
If you're using mod_python, remember to add '-D PYTHON' in
/etc/conf.d/apache. The needed settings for viewcvs have been included in
${VHOST_ROOT}/htdocs/.htaccess.
If you're wanting to use the query engine, you'll need to first create a
database. Next, run the following command to populate the database with tables
you'll need.
# mysql -u root -p <database name> < /usr/share/webapps/${PN}/${PV}/sqlscripts/mysql/${PV}_create.sql
After this, please read the upstream documentation on how to setup the query
engine. This can be located at /usr/share/docs/${P}/INSTALL.gz.

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# $Id: reconfig,v 1.6 2005/10/03 14:06:18 ramereth Exp $
if [ $1 = "install" ] ; then
find ${VHOST_CGIBINDIR}/viewvc ${VHOST_ROOT}/viewvc ${VHOST_ROOT}/viewvc/bin -type f \
| xargs sed -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${VHOST_ROOT}/viewvc/lib\"|g
s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${VHOST_ROOT}/viewvc/viewvc.conf\",g" -i
elif [ $1 = "upgrade" ] ; then
find ${VHOST_CGIBINDIR}/viewvc ${VHOST_ROOT}/viewvc ${VHOST_ROOT}/viewvc/bin -type f \
| xargs sed -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${VHOST_ROOT}/viewvc/lib\"|g
s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${VHOST_ROOT}/viewvc/viewvc.conf\",g" -i
elif [ $1 = "clean" ] ; then
echo $1
fi