Author: <dl@leidi>
Description: * cvsweb.cgi: Path for configuration files is /etc/cvsweb. This was
changed from /etc to solve #110181 (see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110181). This is also
better for having different configs for different repositories.

* cvsweb.conf (@CVSrepositories): CVS-repositories are expected to be
in /var/lib/cvs.
($iconsdir, $cssurl): We install icons and stylesheets into
/usr/share/cvsweb and create Aliases (see README.Debian or the examples
directory).
($show_author): Dont't show author (securiry by obscurity).
($mime_types): Use mime.types from the mime-support package.
--- a/cvsweb.cgi
+++ b/cvsweb.cgi
@@ -214,7 +214,7 @@
 
 # == EDIT this ==
 # Locations to search for user configuration, in order:
-for (catfile($mydir, 'cvsweb.conf'), '/usr/local/etc/cvsweb/cvsweb.conf') {
+for (catfile($mydir, 'cvsweb.conf'), '/etc/cvsweb/cvsweb.conf') {
   if (-r $_) {
     $config = $_;
     last;
--- a/cvsweb.conf
+++ b/cvsweb.conf
@@ -57,7 +57,7 @@
 # 'symbolic_name' => ['Name to display',  '/path/to/cvsroot']
 #
 @CVSrepositories = (
-        'local'   => ['Local Repository', '/var/cvs'],
+        'local'   => ['Local Repository', '/var/lib/cvs'],
 #       'freebsd' => ['FreeBSD',          '/var/ncvs'],
 #       'openbsd' => ['OpenBSD',          '/var/ncvs'],
 #       'netbsd'  => ['NetBSD',           '/var/ncvs'],
@@ -226,7 +226,7 @@
 # check out the "mini" versions in the icons/ directory; they have a
 # width/height of 16/16.
 #
-my $iconsdir = '/icons';
+my $iconsdir = '/cvsweb/icons';
 
 # format:          TEXT       ICON-URL                  width height
 %ICONS = (
@@ -240,7 +240,7 @@
 
 # An URL where to find the CSS.
 #
-$cssurl = '/css/cvsweb.css';
+$cssurl = '/cvsweb/css/cvsweb.css';
 
 # The length to which the last log entry should be truncated when shown
 # in the directory view.
@@ -249,7 +249,7 @@
 
 # Show author of last change?
 #
-$show_author = 1;
+$show_author = 0; # Off for Debian for security by obscurity
 
 # Cell padding for directory table.
 #
@@ -368,7 +368,7 @@
 # The traditional mime.types file, eg. the one from Apache is fine.
 # See above where this gets used.
 #
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '/etc/mime.types';
 
 # Charset appended to the Content-Type HTTP header for text/* MIME types.
 # Note that the web server may default to some charset which may take effect
