diff options
author | knu <knu@FreeBSD.org> | 2001-01-02 07:51:22 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-01-02 07:51:22 +0800 |
commit | ecbc0666c57efa95060288f631df13dcf1aa33f4 (patch) | |
tree | 13cc8a4235b15dde89ec6f2fcb60c6ddee1683f5 /devel/cvsweb | |
parent | cc19916da9fd2b2476a08b9f9f6b638fe463982c (diff) | |
download | freebsd-ports-gnome-ecbc0666c57efa95060288f631df13dcf1aa33f4.tar.gz freebsd-ports-gnome-ecbc0666c57efa95060288f631df13dcf1aa33f4.tar.zst freebsd-ports-gnome-ecbc0666c57efa95060288f631df13dcf1aa33f4.zip |
Update to knu-cvsweb 1.104.1.54.
- Install cvsweb.conf* files under ${PREFIX}/etc/cvsweb/.
2001-01-02 08:15 knu
* cvsweb.cgi, cvsweb.conf, cvsweb.conf-freebsd, cvsweb.conf-netbsd,
cvsweb.conf-openbsd, cvsweb.conf-ruby: Add $prkeyword variable to
allow user to use (e.g.) `Bug' instead of `PR' as the bug report
identifier.
Add cvsweb.conf-{freebsd,openbsd,netbsd,ruby} files, and move
rather FreeBSD specific configuration values to
cvsweb.conf-freebsd.
Add a %funcline_regexp entry for Ruby. (*.rb)
2001-01-02 06:24 knu
* cvsweb.conf: Add `pending' to the list of PR categories.
2001-01-02 05:57 knu
* cvsweb.cgi: Reduce 'Use of uninitialized value' warnings.
Noticed by: Wolfram Schneider <wosch@schneider.org>
Diffstat (limited to 'devel/cvsweb')
-rw-r--r-- | devel/cvsweb/Makefile | 30 | ||||
-rw-r--r-- | devel/cvsweb/distinfo | 2 | ||||
-rw-r--r-- | devel/cvsweb/files/patch-cvsweb.cgi | 8 | ||||
-rw-r--r-- | devel/cvsweb/files/patch-cvsweb.conf | 23 | ||||
-rw-r--r-- | devel/cvsweb/pkg-comment | 2 | ||||
-rw-r--r-- | devel/cvsweb/pkg-message | 6 | ||||
-rw-r--r-- | devel/cvsweb/pkg-plist | 7 |
7 files changed, 63 insertions, 15 deletions
diff --git a/devel/cvsweb/Makefile b/devel/cvsweb/Makefile index 0fd0a118113a..2b933e186dbd 100644 --- a/devel/cvsweb/Makefile +++ b/devel/cvsweb/Makefile @@ -19,7 +19,7 @@ USE_PERL5= yes # This version of cvsweb is Zeller's version + knu's enhancements. REV_ZELLER= 1.104 -REV_KNU= 1.52 +REV_KNU= 1.54 # Specify where your repository belongs. # (You can reconfigure it after installation anyway) @@ -39,22 +39,34 @@ CGIDIR?= www/cgi-bin ICONSDIR?= www/icons .endif +CONFFILES= cvsweb.conf \ + cvsweb.conf-freebsd \ + cvsweb.conf-openbsd \ + cvsweb.conf-netbsd \ + cvsweb.conf-ruby + PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" WRKSRC= ${WRKDIR}/${PORTNAME} -do-configure: - cd ${WRKSRC} && ${PERL} -i -pe "\ - s;/usr/bin/perl5;${PERL};g; \ - s;/usr/local;${PREFIX};g; \ - s;/home/cvs;${CVSROOT};g; \ - s;'Local Repository';'${TITLE}';g; \ - " cvsweb.cgi cvsweb.conf +post-patch: + ${PERL} -i -pe "\ + s;!!PERL!!;${PERL};g; \ + s;!!PREFIX!!;${PREFIX};g;" \ + ${WRKSRC}/cvsweb.cgi + ${PERL} -i -pe "\ + s;!!PREFIX!!;${PREFIX};g; \ + s;!!CVSROOT!!;${CVSROOT};g; \ + s;!!TITLE!!;${TITLE};g;" \ + ${WRKSRC}/cvsweb.conf do-install: ${MKDIR} ${PREFIX}/${CGIDIR} ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/ - ${INSTALL_DATA} ${WRKSRC}/cvsweb.conf ${PREFIX}/etc/cvsweb.conf.sample + ${MKDIR} ${PREFIX}/etc/cvsweb +.for f in ${CONFFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/cvsweb/${f}.dist +.endfor ${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${PREFIX}/${ICONSDIR}/cvsweb/ .if !defined(NOPORTDOCS) diff --git a/devel/cvsweb/distinfo b/devel/cvsweb/distinfo index 3e20eb3223b9..6e4e655d3649 100644 --- a/devel/cvsweb/distinfo +++ b/devel/cvsweb/distinfo @@ -1 +1 @@ -MD5 (cvsweb-1.104.1.52.tar.gz) = 970ca8be46c72003bfa62788f8211ebb +MD5 (cvsweb-1.104.1.54.tar.gz) = 3a36c30e77161a7f63ccd6649f415120 diff --git a/devel/cvsweb/files/patch-cvsweb.cgi b/devel/cvsweb/files/patch-cvsweb.cgi new file mode 100644 index 000000000000..d498c7b4e126 --- /dev/null +++ b/devel/cvsweb/files/patch-cvsweb.cgi @@ -0,0 +1,8 @@ +--- cvsweb.cgi.orig Tue Jan 2 08:15:02 2001 ++++ cvsweb.cgi Tue Jan 2 08:33:52 2001 +@@ -1 +1 @@ +-#!/usr/bin/perl5 -ws ++#!!!PERL!! -ws +@@ -139 +139 @@ +- '/usr/local/etc/cvsweb.conf', ++ '!!PREFIX!!/etc/cvsweb/cvsweb.conf', diff --git a/devel/cvsweb/files/patch-cvsweb.conf b/devel/cvsweb/files/patch-cvsweb.conf new file mode 100644 index 000000000000..ea7c77bc254b --- /dev/null +++ b/devel/cvsweb/files/patch-cvsweb.conf @@ -0,0 +1,23 @@ +--- cvsweb.conf.orig Tue Jan 2 08:15:03 2001 ++++ cvsweb.conf Tue Jan 2 08:32:37 2001 +@@ -28 +28 @@ +- 'local' => '/home/cvs', ++ 'local' => '!!CVSROOT!!', +@@ -37 +37 @@ +- 'local' => 'Local Repository', ++ 'local' => '!!TITLE!!', +@@ -203 +203 @@ +-my $iconsdir = "/icons"; ++my $iconsdir = "/icons/cvsweb"; +@@ -323 +323 @@ +-$mime_types = '/usr/local/etc/apache/mime.types'; ++$mime_types = '!!PREFIX!!/etc/apache/mime.types'; +@@ -393 +393 @@ +-#$ENV{'PATH'} = '/usr/local/bin'; ++#$ENV{'PATH'} = '!!PREFIX!!/bin'; +@@ -447 +447 @@ +-@tar_options = qw(); ++@tar_options = qw(--ignore-failed-read); +@@ -452 +452 @@ +-@cvs_options = qw(-l); ++@cvs_options = qw(-R -l); diff --git a/devel/cvsweb/pkg-comment b/devel/cvsweb/pkg-comment index ce1447b54b72..63c4db196022 100644 --- a/devel/cvsweb/pkg-comment +++ b/devel/cvsweb/pkg-comment @@ -1 +1 @@ -WWW CGI script to browse CVS repository trees (Zeller's version + enhancements) +WWW CGI script to browse CVS repository trees diff --git a/devel/cvsweb/pkg-message b/devel/cvsweb/pkg-message index 6ceb286c8358..c9c5c1b10c92 100644 --- a/devel/cvsweb/pkg-message +++ b/devel/cvsweb/pkg-message @@ -1,14 +1,14 @@ ************************************************************ Quickstart: - cd ${PREFIX}/etc - cp cvsweb.conf.sample cvsweb.conf + cd ${PREFIX}/etc/cvsweb + cp cvsweb.conf.dist cvsweb.conf and you can browse your CVS repository via web if you set up your web server correctly. The URL to get to the cvsweb will be like `http://localhost/cgi-bin/cvsweb.cgi'. To configure its appearance and repository entries to -browse, try editing cvsweb.conf as you like. +browse, edit cvsweb.conf* as you like. For further information, please look into the directory `${PREFIX}/share/doc/cvsweb/'. diff --git a/devel/cvsweb/pkg-plist b/devel/cvsweb/pkg-plist index 2adf440f50fb..300c26ff8ec9 100644 --- a/devel/cvsweb/pkg-plist +++ b/devel/cvsweb/pkg-plist @@ -1,4 +1,9 @@ -etc/cvsweb.conf.sample +etc/cvsweb/cvsweb.conf.dist +etc/cvsweb/cvsweb.conf-freebsd.dist +etc/cvsweb/cvsweb.conf-openbsd.dist +etc/cvsweb/cvsweb.conf-netbsd.dist +etc/cvsweb/cvsweb.conf-ruby.dist +@dirrm etc/cvsweb share/doc/cvsweb/ChangeLog share/doc/cvsweb/INSTALL share/doc/cvsweb/README |