--- cvsweb-3.0.6.orig/debian/patches/00list +++ cvsweb-3.0.6/debian/patches/00list @@ -0,0 +1,3 @@ +01_debianize_script_and_config +02_allow_cgiless_execution +90_extend_httpd_config_sample.dpatch --- cvsweb-3.0.6.orig/debian/patches/01_debianize_script_and_config.dpatch +++ cvsweb-3.0.6/debian/patches/01_debianize_script_and_config.dpatch @@ -0,0 +1,78 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_debianize_script_and_config.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: * cvsweb.cgi: Path for configuration files is /etc/cvsweb. This was +## DP: changed from /etc to solve #110181 (see +## DP: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110181). This is also +## DP: better for having different configs for different repositories. +## DP: +## DP: * cvsweb.conf (@CVSrepositories): CVS-repositories are expected to be +## DP: in /var/lib/cvs. +## DP: ($iconsdir, $cssurl): We install icons and stylesheets into +## DP: /usr/share/cvsweb and create Aliases (see README.Debian or the examples +## DP: directory). +## DP: ($show_author): Dont't show author (securiry by obscurity). +## DP: ($mime_types): Use mime.types from the mime-support package. + +@DPATCH@ +diff -urNad cvsweb-3.0.6~/cvsweb.cgi cvsweb-3.0.6/cvsweb.cgi +--- cvsweb-3.0.6~/cvsweb.cgi 2005-12-31 02:33:24.000000000 +0100 ++++ cvsweb-3.0.6/cvsweb.cgi 2005-12-31 03:04:50.000000000 +0100 +@@ -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; +diff -urNad cvsweb-3.0.6~/cvsweb.conf cvsweb-3.0.6/cvsweb.conf +--- cvsweb-3.0.6~/cvsweb.conf 2005-12-31 02:33:24.000000000 +0100 ++++ cvsweb-3.0.6/cvsweb.conf 2005-12-31 03:04:25.000000000 +0100 +@@ -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 --- cvsweb-3.0.6.orig/debian/patches/90_extend_httpd_config_sample.dpatch +++ cvsweb-3.0.6/debian/patches/90_extend_httpd_config_sample.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 90_extend_httpd_config_sample.dpatch by one of the package maintainers. +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add aliases in accordance to README.Debian. + +@DPATCH@ +diff -urNad cvsweb-3.0.6~/samples/cvsweb-httpd.conf cvsweb-3.0.6/samples/cvsweb-httpd.conf +--- cvsweb-3.0.6~/samples/cvsweb-httpd.conf 2005-12-31 02:33:24.000000000 +0100 ++++ cvsweb-3.0.6/samples/cvsweb-httpd.conf 2005-12-31 02:46:44.000000000 +0100 +@@ -11,6 +11,8 @@ + PerlSwitches -T + + ++Alias /cvsweb/ /usr/share/cvsweb/ ++ + + + # See also $charset in cvsweb.conf. --- cvsweb-3.0.6.orig/debian/patches/02_allow_cgiless_execution.dpatch +++ cvsweb-3.0.6/debian/patches/02_allow_cgiless_execution.dpatch @@ -0,0 +1,41 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_allow_cgiless_execution.dpatch by Martin Schulze +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: * cvsweb.cgi: Add support for CGI-less execution. See bug #247452 +## DP: at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=247452. + +@DPATCH@ +diff -urNad cvsweb-3.0.6~/cvsweb.cgi cvsweb-3.0.6/cvsweb.cgi +--- cvsweb-3.0.6~/cvsweb.cgi 2005-12-31 02:33:31.000000000 +0100 ++++ cvsweb-3.0.6/cvsweb.cgi 2005-12-31 02:35:29.000000000 +0100 +@@ -299,10 +299,10 @@ + $where = $pathinfo; + $doCheckout = $where =~ s|^/$CheckoutMagic/|/|o; + $where =~ s|^/||; +-$scriptname =~ s|^/*|/|; ++$scriptname =~ s|^/+|/|; + + # Let's workaround thttpd's stupidity.. +-if ($scriptname =~ m|/$|) { ++if ($ENV{'SERVER_SOFTWARE'} =~ m|thttpd| && $scriptname =~ m|/$|) { + $pathinfo .= '/'; + my $re = quotemeta $pathinfo; + $scriptname =~ s/$re$//; +@@ -312,7 +312,7 @@ + # $where : the path in the CVS repository (without leading /, or only /) + # $scriptwhere: the URI escaped $scriptname + '/' + $where + $scriptname = uri_escape_path($scriptname); +-$scriptwhere = join('/', $scriptname, uri_escape_path($where)); ++$scriptwhere = join('/', $scriptname, uri_escape_path($where)) if ($where); + $where = '/' if ($where eq ''); + + # In text-based browsers, it's very annoying to have two links per file; +@@ -379,6 +379,7 @@ + + my %query = (); + if (defined($ENV{QUERY_STRING})) { ++ $ENV{QUERY_STRING} = uri_unescape($ENV{QUERY_STRING}); + for my $p (split(/[;&]+/, $ENV{QUERY_STRING})) { + next unless $p; + $p =~ y/+/ /; --- cvsweb-3.0.6.orig/debian/cvsweb.manpages +++ cvsweb-3.0.6/debian/cvsweb.manpages @@ -0,0 +1 @@ +debian/cvsweb.1 --- cvsweb-3.0.6.orig/debian/cvsweb.docs +++ cvsweb-3.0.6/debian/cvsweb.docs @@ -0,0 +1,2 @@ +README +TODO --- cvsweb-3.0.6.orig/debian/control +++ cvsweb-3.0.6/debian/control @@ -0,0 +1,18 @@ +Source: cvsweb +Maintainer: Daniel Leidert (dale) +Section: devel +Priority: optional +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 +Homepage: http://www.freebsd.org/projects/cvsweb.html + +Package: cvsweb +Architecture: all +Depends: apache2 | httpd, cvs, rcs, libipc-run-perl, libmime-perl, liburi-perl +Suggests: cvsgraph, enscript +Description: CGI interface to your CVS repository + cvsweb is a WWW CGI script that provides remote access to your CVS + repository. It allows browsing of the full tree, with configurable + access controls. It will display the revision history of a file, as + well as produce diffs between revisions and allow downloading any + revision of the whole file. --- cvsweb-3.0.6.orig/debian/compat +++ cvsweb-3.0.6/debian/compat @@ -0,0 +1 @@ +5 --- cvsweb-3.0.6.orig/debian/cvsweb.install +++ cvsweb-3.0.6/debian/cvsweb.install @@ -0,0 +1,9 @@ +cvsweb.conf etc/cvsweb +css/cvsweb.css etc/cvsweb + +cvsweb.cgi usr/lib/cgi-bin + +icons/*.* usr/share/cvsweb/icons + +enscript/lang*.st usr/share/enscript/hl + --- cvsweb-3.0.6.orig/debian/changelog +++ cvsweb-3.0.6/debian/changelog @@ -0,0 +1,412 @@ +cvsweb (3:3.0.6-2) unstable; urgency=low + + * debian/changelog: Fixed lintian warnings possible-missing-colon-in-closes. + * debian/compat: Raised compat level to 5. + * debian/control: Homepage field transition. + (Build-Depends): Raised debhelper version dependency. + (Depends): Replaced apache with apache2. + * debian/cvsweb.1: Markup fixes. + * debian/cvsweb.dirs: Removed directories created via dh_install. + * debian/cvsweb.links: Removed symlink in /var/www accordingly to the + Webapps Policy Manual section 3.1. + * debian/cvsweb.preinst: Parsing of dpkg status file is considered harmful. + Replacing this with a dpkg-query call. Thanks to Guillem Jover for + bringing this up. + * debian/watch: Use a more general location. + + -- Daniel Leidert (dale) Wed, 26 Sep 2007 22:53:35 +0200 + +cvsweb (3:3.0.6-1) unstable; urgency=low + + * New upstream release 3.0.6 (closes: #338996). + + [ Daniel Leidert ] + * New maintainer (closes: #372622). + * debian/changelog: Changed to UTF-8 (solves lintian error). + * debian/control: Change to latest standards version 3.7.2. Fixed short + description. Removed dpkg-dev and debmake from build-dependencies in + accordance to http://lists.debian.org/debian-devel/2005/12/msg01428.html + (closes: #372992). Added dpatch and moved debhelper to build dependencies. + * debian/copyright: Updated copyright info. + * debian/rules: Completely rewritten. Makes use of various debhelper scripts + and dpatch etc. to ease build process and remove debmake and dpkg-dev + build dependencies. + * debian/cvsweb.docs: Added. See above. + * debian/cvsweb.manpages: Ditto. + * debian/cvsweb.install: Ditto. Further now install cvsweb.css and + cvsweb.conf into /etc/cvsweb (closes: #110181). + * debian/cvsweb.dirs: See above. + * debian/cvsweb.links: See above. Further links /var/www/cvsweb to + /usr/share/cvsweb (closes: #269950). + * debian/NEWS: Inform about configuration path changes. See above. + * debian/cvsweb.preinst: Ditto. + * debian/cvsweb.postinst: Ditto. + * debian/patches/01_debianize_script_and_config.dpatch: This is not new. + Only moved patch to dpatch and changed config-path to /etc/cvsweb (see + above). + * debian/patches/90_extend_httpd_config_sample.dpatch: Ditto. + * debian/patches/02_allow_cgiless_execution.dpatch: Add support for CGI-less + execution (closes: #247452). + + -- Daniel Leidert (dale) Sun, 11 Jun 2006 11:24:11 +0200 + +cvsweb (3:3.0.5-1) unstable; urgency=low + + * New upstream release. Closes: #288428, #281826. + * Correct the location of mime.types. Closes: #288430. + * Tried to UTF-8 encode the README, config file, and cgi script. + Closes: #288426. + * Verify we do suggest enscript and friends. Closes: #270624. + + -- James Bromberger Wed, 9 Feb 2005 00:37:05 +0000 + +cvsweb (3:3.0.4-1) unstable; urgency=low + + * New upstream release + + -- James Bromberger Wed, 22 Dec 2004 05:34:12 +0000 + +cvsweb (3:3.0.2-2) unstable; urgency=low + + * Fix urlencode to uri_escape_path, thanks to patch from Michael Sims. + Closes: #281555. + + -- James Bromberger Wed, 17 Nov 2004 01:23:06 +0000 + +cvsweb (3:3.0.2-1) unstable; urgency=low + + * New upstream release + * Updated 'Suggests' field: Closes: #270624. + * Added info about using /cvsweb/ as a path. Closes: #269950. + * Added info about blocking access to the Attic, because this + is not a location with files that can be checked out. Closes: #259450. + + -- James Bromberger Tue, 2 Nov 2004 20:05:53 +0000 + +cvsweb (3:3.0.1-2) unstable; urgency=low + + * Remove line "$ENV{QUERY_STRING} = uri_escape($ENV{QUERY_STRING});", + since the values are escaped lower down in the script. I'm not sure + how that snuck in there. Thanks to all on the cvsweb who analysed + this, and to Kevin Jamiesno and scop_AT_Freebsd.org. Closes: #250757. + + -- James Bromberger Mon, 21 Jun 2004 03:28:38 +0100 + +cvsweb (3:3.0.1-1) unstable; urgency=low + + * New upstream release (3.0.1). + * Include language files for enscript from the source. Closes: #247496. + * Add cgi-less exeution patch from Martin Shulze. Closes: #247452. + + -- James Bromberger Sun, 16 May 2004 22:47:19 +0100 + +cvsweb (3:3.0.0-1.1) unstable; urgency=low + + * Err, that last changelog should be '/var/lib/cvs', not + '/usr/lib/cvs'. It's correct in the config file, just a + messup here. Thanks to Ardo for pointing + this out. + + -- James Bromberger Sun, 29 Feb 2004 22:19:06 +0000 + +cvsweb (3:3.0.0-1) unstable; urgency=low + + * New upstream release. Thanks to Arthur Bergman for the nudge. + * Location of 'Local Repository' now corrected back to /usr/lib/cvs + (the default for the cvs package). + + -- James Bromberger Sun, 29 Feb 2004 19:19:18 +0000 + +cvsweb (3:2.9.2-1) unstable; urgency=low + + * New upstream release. + * Old bug: images are available from other hosts with this release; + please read the documentation in /usr/share/doc/cvsweb if you have + trouble. Closes: #139090 + * Old bug: logo is set to '' if not defined in this version. + Closes: #142347 + + -- James Bromberger Fri, 13 Feb 2004 00:41:52 +0000 + +cvsweb (3:2.9.1-1) unstable; urgency=low + + * New upstream release (beta) from FreeBSD fork. + * New maintainer. Closes: #155047 + * Fix grammer in man page. Closes: #172886 + + -- James Bromberger Mon, 5 Jan 2004 23:01:55 +0000 + +cvsweb (3:1.112-4) unstable; urgency=low + + * Orphaned this package, since I use viewcvs and probably won't find the + time to come up with the hoped for cvsweb -> viewcvs migration script. + * Whoever takes this package on should look into the branch at + http://www.FreeBSD.org/projects/cvsweb.html + + -- Joey Hess Wed, 31 Jul 2002 22:25:33 -0400 + +cvsweb (3:1.112-3) unstable; urgency=low + + * debhelper v4 + * Push viewcvs some more. Still no automatic conversion though. + + -- Joey Hess Thu, 13 Jun 2002 18:01:50 -0400 + +cvsweb (3:1.112-2) unstable; urgency=low + + * Patch from Gary Young to url-escape filenames + when downloading, eg, when there is a space in the filename. + Closes: #143394 + + -- Joey Hess Wed, 22 May 2002 13:24:33 -0400 + +cvsweb (3:1.112-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Fri, 28 Dec 2001 23:48:04 -0500 + +cvsweb (3:1.100-3) unstable; urgency=low + + * This package is very much on its way out. Even I, the maintainer, use + viewcvs. I've added a README.Debian about this, and hope to drop it + sometime, but have not really decided if this should happen before woody + is relased, or after. The populatiry contest results, unfortunatly, are + not helpful. + + -- Joey Hess Tue, 16 Oct 2001 23:00:10 -0400 + +cvsweb (3:1.100-2) unstable; urgency=low + + * Added real package dep (lintian) + * Debhelper v3. + + -- Joey Hess Sat, 10 Feb 2001 00:20:26 -0800 + +cvsweb (3:1.100-1) unstable; urgency=low + + * New upstream release, Closes: #72509 + + -- Joey Hess Thu, 28 Dec 2000 17:55:24 -0800 + +cvsweb (3:1.93-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Wed, 30 Aug 2000 13:09:15 -0700 + +cvsweb (3:1.86-3) unstable; urgency=low + + * Killed the -w. I had been leaving it on to find warnings and fix them, + but since it looks like this package will soon be replaced by viewcvs + anyway, no reason to bother. Closes: #69118 + + -- Joey Hess Tue, 22 Aug 2000 22:24:22 -0700 + +cvsweb (3:1.86-2) unstable; urgency=low + + * Modified cvsweb.conf to make the tag specify all colors, not + just some, as the html 4.0 spec reccommends. Of course, if you're like + me, you prefer to just comment that line out. Closes: #69732 + + -- Joey Hess Tue, 22 Aug 2000 21:57:08 -0700 + +cvsweb (3:1.86-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Mon, 10 Jul 2000 17:28:12 -0700 + +cvsweb (3:1.80-8) unstable; urgency=low + + * More extensive patch, should close all possible wacky filename issues. + + -- Joey Hess Thu, 6 Jul 2000 20:46:44 -0700 + +cvsweb (3:1.80-6) unstable; urgency=low + + * Applied patch to fix display of files with ' in them. + cvsweb still has trouble with such files, but at least they don't kill + the directory listing. Closes: #63431 + * FWIW, I expect Debian will soon be dropping support for cvsweb, and + moving to ViewCVS. Cvsweb is too buggy and badly written to continue + supporting, IMHO. + + -- Joey Hess Thu, 6 Jul 2000 16:20:38 -0700 + +cvsweb (3:1.80-5) unstable; urgency=low + + * Fixed some undefined value warnings if no logo was configured. + * Fixed downloading of top-level repository tarballs. Closes: #64251 + + -- Joey Hess Thu, 18 May 2000 15:36:05 -0700 + +cvsweb (3:1.80-4) unstable; urgency=low + + * Corrected priority to match override file. + + -- Joey Hess Mon, 1 May 2000 20:17:16 -0700 + +cvsweb (3:1.80-3) unstable; urgency=low + + * Added an experimental new feature: downloading of tarballs right out of + cvs. Disabled by default. + + -- Joey Hess Fri, 25 Feb 2000 05:40:50 -0800 + +cvsweb (3:1.80-2) unstable; urgency=low + + * Wrote a man page, though this is mostly pointless since it's a + cgi script. Closes: #58156 + + -- Joey Hess Tue, 15 Feb 2000 10:48:23 -0800 + +cvsweb (3:1.80-1) unstable; urgency=low + + * New upstream release. + + -- Joey Hess Tue, 8 Feb 2000 00:03:24 -0800 + +cvsweb (3:1.79-3) unstable; urgency=low + + * Build deps. + + -- Joey Hess Sat, 4 Dec 1999 00:49:14 -0800 + +cvsweb (3:1.79-2) unstable; urgency=low + + * Applied patch to make it work with files with spaces in them. Could not + apply the portion of the patch that adds .cl support, since mime is now + handled differently. Closes: #47722 + * Changed the addresss line to a neutral "generated by cvsweb", with a + link to the upstream source. Closes: #23920, #50766. + + -- Joey Hess Tue, 23 Nov 1999 15:11:55 -0800 + +cvsweb (3:1.79-1) unstable; urgency=low + + * New upstream source, new maintainer. + * Pristine source and a proper Debian revision number. Closes: #44189 + * To use pristine source, I cannot ship a jpeg in the package. I feel + plaster our logo all over cvsweb pages is unnecessary anyway, so no logo + is used by default. + * Removed modified README, gone back to the pristine one. + * Minor changes to control. + * Updated copyright file. Include upstream source location. + * /etc/cvsweb.conf _is_ a dpkg config file, dpkg never wipes out a users + config file, and thus I think bug #25007 was user error. (Closes: #25007) + * Don't ship cvsweb.conf with a CVSROOT set at all, as I think doing so + could be a security risk if /usr/local/cvsroot is a cvs repository but + not one you want made public. + * Although I disagree that cvsweb's previous NMU didn't already fix the + perl5 problem (it does depend on perl5), I applied the patch verbatim, + to use dh_perl. Closes: #50022, one way or another.. + * Cleaned up debian/rules to my specs. + * Include INSTALL in the .deb because it has some configuration info in it. + * This package already depends on rcs, Closes: #33906, #32544, #41154 + * This package already depends on perl5, Closes: #41709, #41399, #41472 + * cvsweb no longer uses @restrict, it's new hiding mechanism is based on + module names. This is inherently safe from playing with '//', '.', or + '..' in the input path. Closes: #42132 + * No bugs left! + + -- Joey Hess Fri, 19 Nov 1999 20:05:36 -0800 + +cvsweb (3:1.61.2) unstable; urgency=low + + * Merged NMU diff to my own copy of the source, commited to CVS. + * Edit the conffile, changed default sort to by date, and diff type to + `u', since it presents both that option and the fancy colored diff too + when it's set for `u' by default. + * Add `png' and `xpm' to mime types hash. (in conffile) + * Add comments describing how to set up the `cvslock' group. + * Switch to new open use logo. + + -- Karl M. Hegbloom Tue, 9 Nov 1999 15:37:48 -0800 + +cvsweb (3:1.61.1) unstable; urgency=low + + * New upstream version from H. Zeller + and H. Nordstrøm . + Please see the README for more complete information. + + -- Karl M. Hegbloom Sat, 12 Jun 1999 21:07:45 -0700 + +cvsweb (2:108) unstable; urgency=low + + * Minor cleanups. + + -- Karl M. Hegbloom Wed, 8 Apr 1998 07:20:14 -0700 + +cvsweb (2:107) frozen; urgency=low + + * Each subdirectory in the Up nav link is clickable now. + + * Applied patch to allow config of tag. + + * Upload to frozen. + + -- Karl M. Hegbloom Wed, 8 Apr 1998 04:48:39 -0700 + +cvsweb (2:106) unstable; urgency=low + + * Changed version numbering again, removing -n extension. + + * Now has 3 column table directory listings. + + * I'm either going to orphan this or port to Scheme. I hate perl's + hyper-syntactic bullshit. I'll let yous know. + + * Added some targets to debian/rules to facilitate work with + cvs-buildpackage. + + * Allow setting bgcolor and background in "cvsweb.conf". + + * Moved hard coded tags out of the script into the $h1 variable in + "cvsweb.conf" to give the site administrator more control over the + presentation of the CVS interface page. + + -- Karl M. Hegbloom Sun, 8 Mar 1998 13:07:42 -0800 + +cvsweb (1:105-1) unstable; urgency=low + + * Add height and width attributes to all icons to speed page loading. + + * Use new redrawn Mr. Blue-eye Debian logos, transparentized. + + * Also install apache icons for folks using `boa' (#17493) + + * Simplify the $gzip_output option in "cvsweb.conf" to either on or off + in the dpkg-inst default. (#18446) + + * Use full `gzip -9' compression for web output stream. + + * Changed version numbering to the Debian-only-package style, remem- + bering to use an epoch. This program comes from Bill Fenner at + FreeBSD, but my changes make the .diff larger than the original perl + script, since it would include the .gif files in UU-encoded form, as + well as my edits. The version id printout in the WWW output indicates + this is the SPI branch of `cvsweb'. I don't think Mr. Fenner will get + mad. :-) + + * Reorganized the source directory, with a subdirectory for icons and + logos. + + * Apply patch from Jim Pick to regexp-quote a filename + variable so that "gtk+" will have a literal \#+ character rather than + a long string of \#k at the end. (#18445) + + * Pulled the hard coded version number out of the script, replaced it + with @cvsweb_version@, renamed the script with a ".in" extension, put + a variable into "rules" that gets filled by a $(shell ...) statement + which uses `dpkg-parsechangelog' and `sed -n -e ...' to get the right + version number, and a rule to create `cvsweb' using a `sed' of + "cvsweb.in". + + * Place under `cvs-buildpackage', choosing to reimport and thus toss the + history rather than retag my original CVS import. + + * The "current directory" indicator is split on `/' and each subdirectory + is clickable for navigation now. + + -- Karl M. Hegbloom Sat, 7 Mar 1998 21:35:16 -0800 --- cvsweb-3.0.6.orig/debian/cvsweb.1 +++ cvsweb-3.0.6/debian/cvsweb.1 @@ -0,0 +1,16 @@ +.TH CVSWEB 1 +.SH NAME +cvsweb \- a CGI interface to your CVS repository +.SH SYNOPSIS +.B http://localhost/cgi-bin/cvsweb/ +.SH "DESCRIPTION" +cvsweb is a cgi script that offers convenient web access to your CVS +repository. As such, you are unlikely to find it useful to run it by hand, +and there are no command line options; instead visit the URL above\. +.SH FILES +.TP +.B /etc/cvsweb.conf +cvsweb config file\. You must set up the location of your repositories here +before the cgi script will work. +.SH AUTHOR +This manual page was written by \fBJoey Hess\fR <\&joeyh@debian\.org\&>\. --- cvsweb-3.0.6.orig/debian/cvsweb.dirs +++ cvsweb-3.0.6/debian/cvsweb.dirs @@ -0,0 +1 @@ +usr/share/cvsweb/css --- cvsweb-3.0.6.orig/debian/rules +++ cvsweb-3.0.6/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +PACKAGE=cvsweb + +build: patch-stamp build-stamp + +build-stamp: + dh_testdir + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp patch-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i NEWS + dh_installdocs -i + dh_installexamples -i + dh_install -i + # things, dh_install can't do: + mv debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb.cgi \ + debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb + chmod 755 debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb + dh_installman -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + # We have nothing to do by default. + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install + --- cvsweb-3.0.6.orig/debian/cvsweb.links +++ cvsweb-3.0.6/debian/cvsweb.links @@ -0,0 +1 @@ +etc/cvsweb/cvsweb.css usr/share/cvsweb/css/cvsweb.css --- cvsweb-3.0.6.orig/debian/watch +++ cvsweb-3.0.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/scop/cvsweb-([\d\.]+)\.tar\.gz --- cvsweb-3.0.6.orig/debian/NEWS +++ cvsweb-3.0.6/debian/NEWS @@ -0,0 +1,18 @@ +cvsweb (3:3.0.6-2) unstable; urgency=low + + * According to the WebApps Policy section 3.1, the /var/www/cvsweb symlink + has been removed from the package. Please re-add the symlink manually or + adjust your webservers configuration. For some hints read README.Debian. + + -- Daniel Leidert (dale) Wed, 26 Sep 2007 22:53:26 +0200 + +cvsweb (3:3.0.6-1) unstable; urgency=low + + * The configuration path, where to find cvsweb.conf, was changed from /etc to + /etc/cvsweb. It's better to have a this place to find the main and + per-module configuration files. The update process will detect any + cvsweb.conf* files in /etc and move them into the their new location + /etc/cvsweb. + + -- Daniel Leidert (dale) Sun, 11 Jun 2006 11:24:11 +0200 + --- cvsweb-3.0.6.orig/debian/cvsweb.examples +++ cvsweb-3.0.6/debian/cvsweb.examples @@ -0,0 +1 @@ +samples/cvsweb-httpd.conf --- cvsweb-3.0.6.orig/debian/copyright +++ cvsweb-3.0.6/debian/copyright @@ -0,0 +1,44 @@ +This package was created by Karl M. Hegbloom in +1998 for the Debian GNU/Linux distribution. It was maintained +by Joey Hess . It is now a package of the fork +from FreeBSD, packaged by James Bromberger . + +The upstream source of package can be downloaded from: + + http://www.freebsd.org/projects/cvsweb.html + http://people.freebsd.org/~scop/cvsweb/ + +Copyright: + + Copyright (c) 1996-1998 Bill Fenner + Copyright (c) 1998-1999 Henner Zeller + Copyright (c) 1999 Henrik Nordstrom + Copyright (c) 2000-2002 Akinori MUSHA + Copyright (c) 2002-2005 Ville Skyttä + +License: BSD license, with the removal of condition 3, the advertising clause. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +On Debian systems, the full BSD license is available as the +file /usr/share/common-licenses/BSD. + --- cvsweb-3.0.6.orig/debian/cvsweb.postinst +++ cvsweb-3.0.6/debian/cvsweb.postinst @@ -0,0 +1,58 @@ +#! /bin/sh +# postinst script for cvsweb +# +# see: dh_installdeb(1) + +set -e + +mv_conffile() { +# syntax: prep_mv_conffile $OLDCONFFILE $NEWCONFFILE +# +# Check to make sure the old conffile still exists on the disk. If the file +# still exists, we know that there were changes to it we want to preserve +# (see preinst script). We move the new conffile as unpacked by dpkg to a +# file the user can compare it with if they wish and move the old conffile +# into the new place. + + OLDCONFFILE="$1" + NEWCONFFILE="$2" + + if [ -e "$OLDCONFFILE" ]; then + echo "Preserving user changes to $NEWCONFFILE ..." + mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-dist + mv -f "$OLDCONFFILE" "$NEWCONFFILE" + fi +} + +mv_custom_conffile() { +# syntax: prep_mv_conffile $OLDCONFFILE $NEWCONFFILE +# +# Check to make sure the custom conffile exists on the disk. We move the old +# conffile into the new place. + + OLDCONFFILE="$1" + NEWCONFFILE="$2" + + if [ -e "$OLDCONFFILE" ]; then + echo "Preserving custom config file $NEWCONFFILE ..." + mv -f "$OLDCONFFILE" "$NEWCONFFILE" + fi +} + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +# check for cvsweb.conf* files and move them to /etc/cvsweb. +if [ "$1" = configure ]; then + if dpkg --compare-versions "$2" le "3:3.0.5-1"; then + mv_conffile "/etc/cvsweb.conf" "/etc/cvsweb/cvsweb.conf" + find /etc -maxdepth 1 -name "cvsweb.conf-*" -printf "%f\n" | while read conffile ; do + mv_custom_conffile "/etc/$conffile" "/etc/cvsweb/$conffile" + done + fi +fi + +exit 0 + --- cvsweb-3.0.6.orig/debian/cvsweb.preinst +++ cvsweb-3.0.6/debian/cvsweb.preinst @@ -0,0 +1,38 @@ +#! /bin/sh +# preinst script for cvsweb +# +# see: dh_installdeb(1) + +set -e + +prep_mv_conffile() { +# syntax: prep_mv_conffile $CONFFILE +# +# Check to make sure the conffile exists on the disk and whether the user has +# changed it or not + + CONFFILE="$1" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' cvsweb | grep $CONFFILE | awk '{print $2}'`" + if [ "$md5sum" = "$old_md5sum" ]; then + rm -f "$CONFFILE" + fi + fi +} + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +# check for cvsweb.conf* files and move them to /etc/cvsweb. +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if dpkg --compare-versions "$2" le "3:3.0.5-1"; then + prep_mv_conffile "/etc/cvsweb.conf" + fi +fi + +exit 0 + --- cvsweb-3.0.6.orig/debian/README.Debian +++ cvsweb-3.0.6/debian/README.Debian @@ -0,0 +1,30 @@ +cvsweb for Debian +----------------- + +CVSWeb lives again! Development has recommenced upstream. + +To get the icons and stylesheets working, you probably want to add the +following line to your web server's configuration file (for Apache): + + Alias /cvsweb/ /usr/share/cvsweb/ + +or + + Alias /cvsweb/css/ /usr/share/cvsweb/css/ + Alias /cvsweb/icons/ /usr/share/cvsweb/icons/ + +The latter case may should be used, if you want to make the path '/cvsweb' +automatically redirect to the script: + + Redirect /cvsweb http://your_server.domain/cgi-bin/cvsweb + +To (really) block access to the Attic, use the following lines: + + + Deny from all + + +(mostly written by James Bromberger) + + -- Daniel Leidert (dale) Sun, 11 Jun 2006 11:24:11 +0200 +