cvsweb - WWW interface for CVS repositories ChangeLog

HOWTO


# CVSweb 3.0.6
# ============
# CVSweb 3.0.6 was released on September 25, 2005  ViewVC may be a better
# replacement if you're looking for something current.

# Prerequisites:
# Perl >= 5.6.0
# A web server like Apache
# RCS' rlog and rcsdiff
# CVS
# CvsGraph >= 1.4.0 (optional)
# enscript >= 1.6.3 (optional)
# CVSHistory >= 2.0

cd
test -f installed/cvsweb-3.0.6.tar.gz && mv installed/cvsweb-3.0.6.tar.gz .
test ! -f cvsweb-3.0.6.tar.gz &&
wget ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/\
cvsweb-3.0.6.tar.gz

# Verify tarball w/ md5sum:
echo "0e1eec962b1db00e01b295fff84b6e89  cvsweb-3.0.6.tar.gz" | md5sum -c

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cvsweb-*" -exec rm -r {} \;
tar xzvf ~/cvsweb-3.0.6.tar.gz
cd cvsweb-3.0.6
test $UID = 0 && chown -R root:root .

# Become root to install it
su

perl -MCPAN -e shell
install Bundle::CPAN
install File::Temp
install IPC::Run
install MIME::Types
install String::Ediff
install URI
exit


# Run each blurb below (everything up to the 'done' line) for whichever
# directory exists
for apachedir in /usr/local/apache /usr/local/apache2; do

test ! -d "$apachedir" && continue

# If you don't already have one, copy the configuration file to
# /usr/local/apache/cvsweb.conf
test ! -f ${apachedir}/cgi-bin/cvsweb.conf &&
cp cvsweb.conf ${apachedir}/cgi-bin/
chown root:nobody ${apachedir}/cgi-bin/cvsweb.conf
chmod 750 ${apachedir}/cgi-bin/cvsweb.conf

# Copy the CGI script
test -f ${apachedir}/cgi-bin/cvsweb.cgi &&
( mv -f ${apachedir}/cgi-bin/cvsweb.cgi ${apachedir}/cgi-bin/cvsweb.cgi.old
   chown root:root ${apachedir}/cgi-bin/cvsweb.cgi.old
   chmod 600 ${apachedir}/cgi-bin/cvsweb.cgi.old )
cp cvsweb.cgi ${apachedir}/cgi-bin/
chown root:nobody ${apachedir}/cgi-bin/cvsweb.cgi
chmod 750 ${apachedir}/cgi-bin/cvsweb.cgi

# Copy the CSS file
test -f ${apachedir}/htdocs/cvsweb.css &&
( mv -f ${apachedir}/htdocs/cvsweb.css ${apachedir}/htdocs/cvsweb.css.old
   chown root:root ${apachedir}/htdocs/cvsweb.css.old
   chmod 600 ${apachedir}/htdocs/cvsweb.css.old )
cp css/cvsweb.css ${apachedir}/htdocs/
chown root:nobody ${apachedir}/htdocs/cvsweb.css
chmod 640 ${apachedir}/htdocs/cvsweb.css

done


# Edit /usr/local/apache*/cgi-bin/cvsweb.conf
# At least change the path of your repository,
# change $cssurl to '/cvsweb.css',
# change $mime_types to '/usr/local/apache/conf/mime.types',
# change $cvsgraph_config (if it's installed),
# uncomment $allow_enscript (if it's installed),
# etc.

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/cvsweb-*.tar.*
mv cvsweb-3.0.6.tar.gz installed/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2007-08-25 12:40pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]