Import of cvsweb revision 1.103(zeller)-1.30(knu).

The cvsweb WWW CGI script allows remote users to browse a CVS
repository tree via the web.  It can display the revision history
of a file, as well as diffs between revisions, and download the
whole file.
This commit is contained in:
naddy 2000-10-01 19:18:53 +00:00
parent 2a81ee3d26
commit e3327b4a0a
9 changed files with 275 additions and 0 deletions

33
devel/cvsweb/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
# $FreeBSD: ports/devel/cvsweb/Makefile,v 1.28 2000/09/23 20:48:45 knu Exp $
DISTNAME= cvsweb-1.103.1.30
CATEGORIES= devel www
NEED_VERSION= 1.337
HOMEPAGE= http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/knu/
NO_BUILD= Yes
WRKDIST= ${WRKDIR}/cvsweb
PREFIX= /var/www
SYSCONFDIR= ${PREFIX}/conf
do-configure:
perl -i -pe 's@%%SYSCONFDIR%%@${SYSCONFDIR}@g' ${WRKSRC}/cvsweb.cgi
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/cgi-bin/cvsweb
${INSTALL_DATA_DIR} ${SYSCONFDIR}
${INSTALL_DATA} ${WRKSRC}/cvsweb.conf ${SYSCONFDIR}/cvsweb.conf-dist
.include <bsd.port.mk>

3
devel/cvsweb/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (cvsweb-1.103.1.30.tar.gz) = be062bd39f9bb1c7d5d6691832c6e330
RMD160 (cvsweb-1.103.1.30.tar.gz) = 093fcd6ad59e13cfbe8f42ecd9f5fb55133314a2
SHA1 (cvsweb-1.103.1.30.tar.gz) = cb0e25d00f82385877976cac886355fc29869943

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-cvsweb_cgi,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
--- cvsweb.cgi.orig Sat Sep 30 22:10:01 2000
+++ cvsweb.cgi Sun Oct 1 20:37:59 2000
@@ -1,4 +1,4 @@
-#!/usr/bin/perl5 -ws
+#!/usr/bin/perl -ws
#
# cvsweb - a CGI interface to CVS trees.
#
@@ -128,7 +128,7 @@ use Cwd;
# Locations to search for user configuration, in order:
for (
$ENV{CVSWEB_CONFIG},
- '/usr/local/etc/cvsweb.conf',
+ '%%SYSCONFDIR%%/cvsweb.conf',
getcwd() . '/cvsweb.conf'
) {
$config = $_ if defined($_) && -r $_;

View File

@ -0,0 +1,84 @@
$OpenBSD: patch-cvsweb_conf,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
--- cvsweb.conf.orig Fri Sep 22 13:13:18 2000
+++ cvsweb.conf Mon Sep 25 23:09:37 2000
@@ -26,12 +26,12 @@
# 'symbolic_name' 'path_to_the_actual_repository'
%CVSROOT = (
'local' => '/home/cvs',
- 'freebsd' => '/home/ncvs',
+ 'openbsd' => '/home/ncvs',
);
%CVSROOTdescr = (
'local' => 'Local Repository',
- 'freebsd' => 'FreeBSD',
+ 'openbsd' => 'OpenBSD',
);
# This tree is enabled by default when
@@ -42,28 +42,32 @@ $cvstreedefault = 'local';
# PR categoties
##############
@prcategories = qw(
- advocacy
- alpha
- bin
- conf
- docs
- gnu
- i386
- kern
- misc
+ system
+ user
+ library
+ documentation
ports
+ kernel
sparc
+ i386
+ m68k
+ mips
+ ppc
+ arm
+ alpha
+ ns32k
+ vax
);
##############
# query-pr.cgi
##############
-$prcgi = "http://www.FreeBSD.org/cgi/query-pr.cgi?pr=%s";
+$prcgi = "http://cvs.openbsd.org/cgi-bin/wwwgnats.pl/full?pr=%s";
##############
# man.cgi
##############
-$mancgi = "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html";
+$mancgi = "http://www.openbsd.org/cgi-bin/man.cgi?apropos=0&sektion=%s&query=%s&manpath=OpenBSD+Current&format=html";
##############
# Defaults for UserSettings
@@ -194,9 +198,9 @@ EOT
# icons/ directory; they have a width/height of 16/16
# format: TEXT ICON-URL width height
%ICONS = (
- back => [ ("[BACK]", "/icons/cvsweb/back.gif", 20, 22) ],
- dir => [ ("[DIR]", "/icons/cvsweb/dir.gif", 20, 22) ],
- file => [ ("[TXT]", "/icons/cvsweb/text.gif", 20, 22) ],
+ back => [ ("[BACK]", "/icons/back.gif", 20, 22) ],
+ dir => [ ("[DIR]", "/icons/dir.gif", 20, 22) ],
+ file => [ ("[TXT]", "/icons/text.gif", 20, 22) ],
);
# the length to which the last logentry should
@@ -309,7 +313,7 @@ $inputTextSize = 12;
# cvsweb to guess the correct mime-type on
# checkout; you can use the mime.types from
# apache here:
-$mime_types = '/usr/local/etc/apache/mime.types';
+$mime_types = '/var/www/conf/mime.types';
# quick mime-type lookup; maps file-suffices to
# mime-types for displaying checkouts in the browser.

1
devel/cvsweb/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
WWW CGI script to browse CVS repository trees

View File

@ -0,0 +1,51 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
#
# De-installation setup of cvsweb
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/var/www}
CONFIG_FILE=${SYSCONFDIR}/cvsweb.conf
# Function: tell the user what they need to do to delete the port completely
#
do_notice()
{
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| rm -f ${CONFIG_FILE}"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
DEINSTALL)
if [ -f ${CONFIG_FILE} ]; then
do_notice "$1"
fi
;;
*)
echo "usage: $0 distname DEINSTALL" >&2
exit 1
;;
esac
exit 0

14
devel/cvsweb/pkg/DESCR Normal file
View File

@ -0,0 +1,14 @@
The cvsweb WWW CGI script allows remote users to browse a CVS
repository tree via the web. It can display the revision history
of a file, as well as diffs between revisions, and download the
whole file.
The cvsweb script has been written by Bill Fenner <fenner@FreeBSD.org>
for the FreeBSD project, improved visually and functionally by Henner
Zeller <zeller@think.de>, Henrik Nordstrom <hno@hem.passagen.se>, and
Ken Coar <Ken.Coar@Golux.Com>, to be adopted by the NetBSD project.
Akinori MUSHA <knu@FreeBSD.org> is adding more enhancements and doing
some cleanups over Zeller's version.
WWW: ${HOMEPAGE}

68
devel/cvsweb/pkg/INSTALL Normal file
View File

@ -0,0 +1,68 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
#
# Pre/post-installation setup of cvsweb
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/var/www}
CONFIG_FILE=${SYSCONFDIR}/cvsweb.conf
SAMPLE_CONFIG_FILE=${CONFIG_FILE}-dist
# Function: tell the user what they need to do to use the port just installed
#
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, ${CONFIG_FILE},"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file ${SAMPLE_CONFIG_FILE}"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
# Function: install configuration files
#
do_install()
{
install -o root -g wheel ${SAMPLE_CONFIG_FILE} ${CONFIG_FILE}
echo
echo "+---------------"
echo "| The $1 configuration file, ${CONFIG_FILE},"
echo "| has been installed. Please view this file and change"
echo "| the configuration to meet your needs"
echo "+---------------"
echo
}
# Verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f ${CONFIG_FILE} ]; then
do_notice "$1"
else
do_install "$1"
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

3
devel/cvsweb/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/10/01 19:18:53 naddy Exp $
cgi-bin/cvsweb
conf/cvsweb.conf-dist