Web Interface for CVS server

In the previous post We have discussed how to setup a cvs server in ten steps ( cvs server setup ) , now its time for a GUI to browse your repo’s .  I have found a very nice gui opensource tool view vc ( www.viewvc.org ) and the Installation and configuration are documented as follows : –

1) Download the viewvc and install it using the viewvc-install script .

# wget http://viewvc.tigris.org/files/documents/3330/49264/viewvc-1.1.18.tar.gz

# tar -zxf viewvc-1.1.18.tar.gz

# cd viewvc-1.1.18

# yum install rcs  ( To fix dependency issues )

# ./viewvc-install

2) Edit the viewvc conf and set the cvs root

# vi /usr/local/viewvc-1.1.18/viewvc.conf

>>> cvs_roots = cvsroot: /home/cvsroot

>>> allowed_views = annotate, diff, markup, roots, co

3) How to replace the default logo with your own company logo

# cd /usr/local/viewvc-1.1.18/templates/docroot/images/

# mv your-logo.png  viewvc-logo.png

4 ) Apache configuration

# vi /etc/httpd/conf/httpd.conf

ServerName adminlogs.info:80

DocumentRoot “/usr/local/viewvc-1.1.18”

<Directory “/usr/local/viewvc-1.1.18”>
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory >

ScriptAlias /cvsweb /usr/local/viewvc-1.1.18/bin/cgi/viewvc.cgi
ScriptAlias /query  /usr/local/viewvc-1.1.18/bin/cgi/query.cgi

5)  Apache conf entry to enable ldap authentication for cvs web GUI.

<Location “/cvsweb”>
AuthType Basic
AuthName “CVS Authentication”
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://yourldapserver.com:389/dc=ldapdomain,dc=com?uid
Require valid-user
</Location>

6) Restart Apache

7) Access the GUI using http://adminlogs.info/cvsweb