summaryrefslogtreecommitdiff
path: root/www/cvsweb
diff options
context:
space:
mode:
authorkim <kim>2001-04-23 20:05:44 +0000
committerkim <kim>2001-04-23 20:05:44 +0000
commit6b96cfe8baf7a5622b2cef4b7a4e244432929981 (patch)
treefd823ef58b26386b3bc9f157008de84547e6c623 /www/cvsweb
parent71124a7b20ddda0083c8d07bff1d37a4b72f1043 (diff)
downloadpkgsrc-6b96cfe8baf7a5622b2cef4b7a4e244432929981.tar.gz
cvsweb is a web interface for browsing cvs repositories
Diffstat (limited to 'www/cvsweb')
-rw-r--r--www/cvsweb/Makefile53
-rw-r--r--www/cvsweb/distinfo4
-rw-r--r--www/cvsweb/pkg/DEINSTALL66
-rw-r--r--www/cvsweb/pkg/DESCR8
-rw-r--r--www/cvsweb/pkg/INSTALL57
-rw-r--r--www/cvsweb/pkg/PLIST4
6 files changed, 192 insertions, 0 deletions
diff --git a/www/cvsweb/Makefile b/www/cvsweb/Makefile
new file mode 100644
index 00000000000..23d9f299d0c
--- /dev/null
+++ b/www/cvsweb/Makefile
@@ -0,0 +1,53 @@
+#
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/23 20:05:44 kim Exp $
+#
+
+DISTNAME= cvsweb-1.93
+CATEGORIES= net
+MASTER_SITES= http://stud.fh-heilbronn.de/~zeller/download/
+
+MAINTAINER= kim@tac.nyc.ny.us
+HOMEPAGE= http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/
+COMMENT= Web interface for browsing a CVS repository
+
+DEPENDS+= apache{,6}-[0-9]*:../../www/apache
+
+USE_PERL5= # defined
+
+WRKSRC= ${WRKDIR}/cvsweb
+NO_CONFIGURE= # defined
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+.include "../../mk/bsd.prefs.mk"
+
+APACHE_SYSCONFDIR?= ${LOCALBASE}/etc/httpd
+
+do-build:
+ ${MV} ${WRKSRC}/cvsweb.cgi ${WRKSRC}/cvsweb.cgi.bak
+ ${SED} -e 's,/usr/bin/perl,${PERL5},' \
+ -e 's,/usr/local/web/apache/conf/,${APACHE_SYSCONFDIR},' \
+ ${WRKSRC}/cvsweb.cgi.bak > ${WRKSRC}/cvsweb.cgi
+
+pre-install:
+ ${SED} -e "s|@CAT@|${CAT}|g" \
+ -e "s|@CP@|${CP}|g" \
+ -e "s|@RM@|${RM}|g" \
+ -e "s|@APACHE_SYSCONFDIR@|${APACHE_SYSCONFDIR}|g" \
+ ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
+ ${SED} -e "s|@CAT@|${CAT}|g" \
+ -e "s|@CHMOD@|${CHMOD}|g" \
+ -e "s|@CP@|${CP}|g" \
+ -e "s|@APACHE_SYSCONFDIR@|${APACHE_SYSCONFDIR}|g" \
+ ${PKGDIR}/INSTALL > ${INSTALL_FILE}
+
+do-install:
+ ${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/cgi-bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/libexec/cgi-bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cvsweb
+ ${INSTALL_DATA} ${WRKSRC}/cvsweb.conf \
+ ${PREFIX}/share/examples/cvsweb/cvsweb.conf.default
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/cvsweb/distinfo b/www/cvsweb/distinfo
new file mode 100644
index 00000000000..8845844f433
--- /dev/null
+++ b/www/cvsweb/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/04/23 20:05:44 kim Exp $
+
+SHA1 (cvsweb-1.93.tar.gz) = 89e53ca7585cd626973ee2935e62598f566f2d22
+Size (cvsweb-1.93.tar.gz) = 35906 bytes
diff --git a/www/cvsweb/pkg/DEINSTALL b/www/cvsweb/pkg/DEINSTALL
new file mode 100644
index 00000000000..0b57cf215c8
--- /dev/null
+++ b/www/cvsweb/pkg/DEINSTALL
@@ -0,0 +1,66 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2001/04/23 20:05:44 kim Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+CAT="@CAT@"
+CP="@CP@"
+RM="@RM@"
+
+SERVERROOT="@APACHE_SYSCONFDIR@"
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/cvsweb
+CONFDIR=${SERVERROOT}
+CONFFILES="cvsweb.conf"
+
+case ${STAGE} in
+DEINSTALL)
+ # Remove configuration files if they don't differ from the default
+ # config file.
+ #
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ SAMPLEFILE=${SAMPLECONFDIR}/${file}.default
+ if diff -q ${FILE} ${SAMPLEFILE} >/dev/null
+ then
+ ${RM} -f ${FILE}
+ fi
+ done
+ ;;
+
+POST-DEINSTALL)
+ modified_files=''
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ if [ -f ${FILE} ]
+ then
+ modified_files="${modified_files} ${FILE}"
+ fi
+ done
+
+ if [ -n "${modified_files}" ]
+ then
+ ${CAT} << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want to remove:
+
+EOF
+ for file in ${modified_files}
+ do
+ echo " ${file}"
+ done
+ ${CAT} << EOF
+===========================================================================
+EOF
+ fi
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/www/cvsweb/pkg/DESCR b/www/cvsweb/pkg/DESCR
new file mode 100644
index 00000000000..d29ec58eda4
--- /dev/null
+++ b/www/cvsweb/pkg/DESCR
@@ -0,0 +1,8 @@
+Features of this improved cvsweb:
+- You can browse the file hierarchy by picking directories (e.g., src/).
+- If you pick a file, you will see the revision history for that file.
+- Selecting a revision number will download that revision of the file.
+- There is a link at each revision to display (colored) diffs between
+ that revision and the previous one or to annotate a revision.
+- A form at the bottom of the page that allows you to display diffs
+ between arbitrary revisions.
diff --git a/www/cvsweb/pkg/INSTALL b/www/cvsweb/pkg/INSTALL
new file mode 100644
index 00000000000..ffa55e72e18
--- /dev/null
+++ b/www/cvsweb/pkg/INSTALL
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2001/04/23 20:05:44 kim Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+CAT="@CAT@"
+CHMOD="@CHMOD@"
+CP="@CP@"
+
+SERVERROOT="@APACHE_SYSCONFDIR@"
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/cvsweb
+CONFDIR=${SERVERROOT}
+CONFFILES="cvsweb.conf"
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+
+POST-INSTALL)
+ echo "Installing configuration files:"
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ SAMPLEFILE=${SAMPLECONFDIR}/${file}.default
+ if [ -f ${FILE} ]
+ then
+ echo " ${FILE} already exists"
+ else
+ echo " ${FILE}"
+ ${CP} -p ${SAMPLEFILE} ${FILE}
+ ${CHMOD} 644 ${FILE}
+ fi
+ done
+ ${CAT} << EOF
+
+===========================================================================
+Some files you might need to customize include the following:
+
+EOF
+ for file in ${CONFFILES}
+ do
+ FILE=${CONFDIR}/${file}
+ echo " ${FILE}"
+ done
+ ${CAT} << EOF
+===========================================================================
+EOF
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/www/cvsweb/pkg/PLIST b/www/cvsweb/pkg/PLIST
new file mode 100644
index 00000000000..1a0d7f83c0c
--- /dev/null
+++ b/www/cvsweb/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/23 20:05:44 kim Exp $
+libexec/cgi-bin/cvsweb.cgi
+share/examples/cvsweb/cvsweb.conf.default
+@dirrm share/examples/cvsweb