From owner-freebsd-ports Sun Jun 27 7:10: 6 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BFD3314D97 for ; Sun, 27 Jun 1999 07:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA98837; Sun, 27 Jun 1999 07:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from rr.iij4u.or.jp (h159.p060.iij4u.or.jp [210.130.60.159]) by hub.freebsd.org (Postfix) with SMTP id 2C8A914EC8 for ; Sun, 27 Jun 1999 07:01:14 -0700 (PDT) (envelope-from sada@rr.iij4u.or.jp) Received: (qmail 419 invoked by uid 1000); 27 Jun 1999 23:01:06 +0900 Message-Id: <19990627140106.418.sada@rr.iij4u.or.jp> Date: 27 Jun 1999 23:01:06 +0900 From: sada@FreeBSD.ORG Reply-To: sada@FreeBSD.ORG To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/12412: new port: net/cvsweb Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12412 >Category: ports >Synopsis: new port: net/cvsweb >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 27 07:10:02 PDT 1999 >Closed-Date: >Last-Modified: >Originator: SADA Kenji >Release: FreeBSD 3.2-STABLE i386 >Organization: Nagoya.Aichi.Japan >Environment: FreeBSD 3.2-STABLE i386 >Description: cvsweb is a WWW CGI script that allows remote access to a CVS tree. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cvsweb # cvsweb/Makefile # cvsweb/files # cvsweb/files/md5 # cvsweb/patches # cvsweb/patches/patch-aa # cvsweb/pkg # cvsweb/pkg/COMMENT # cvsweb/pkg/DESCR # cvsweb/pkg/PLIST # cvsweb/pkg/REQ # echo c - cvsweb mkdir -p cvsweb > /dev/null 2>&1 echo x - cvsweb/Makefile sed 's/^X//' >cvsweb/Makefile << 'END-of-cvsweb/Makefile' X# New ports collection makefile for: cvsweb X# Version required: 1.0 X# Date created: 27 Jun 1999 X# Whom: SADA Kenji X# X# $Id$ X# X XDISTNAME= cvsweb-1.0 XCATEGORIES= net www XMASTER_SITES= http://www.freebsd.org/~fenner/cvsweb/ X XMAINTAINER= sada@FreeBSD.ORG X XNO_BUILD= yes X X# could be overridden. XCVSROOT?= '/home/ncvs' XCVSWEB_CVSROOT?= ${CVSROOT} XCVSWEB_TITLE?= 'My CVS Tree' X Xdo-configure: X @${SED} -e "s;@@CVSROOT@@;${CVSWEB_CVSROOT};g" \ X -e "s;@@TITLE@@;${CVSWEB_TITLE};g" \ X ${WRKSRC}/cvsweb > ${WRKDIR}/cvsweb X Xdo-install: X @if PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL; then \ X ${MKDIR} ${PREFIX}/www/cgi-bin; \ X ${INSTALL_SCRIPT} ${WRKDIR}/cvsweb ${PREFIX}/www/cgi-bin/; \ X else \ X exit 1; \ X fi X X.include END-of-cvsweb/Makefile echo c - cvsweb/files mkdir -p cvsweb/files > /dev/null 2>&1 echo x - cvsweb/files/md5 sed 's/^X//' >cvsweb/files/md5 << 'END-of-cvsweb/files/md5' XMD5 (cvsweb-1.0.tar.gz) = 43302bfa9ae88d0ed7f60bfb2bb53de2 END-of-cvsweb/files/md5 echo c - cvsweb/patches mkdir -p cvsweb/patches > /dev/null 2>&1 echo x - cvsweb/patches/patch-aa sed 's/^X//' >cvsweb/patches/patch-aa << 'END-of-cvsweb/patches/patch-aa' X--- cvsweb.orig Sun Jun 27 13:12:31 1999 X+++ cvsweb Sun Jun 27 13:19:14 1999 X@@ -44,14 +44,14 @@ X # X # Configuration section: X # Set $cvsroot to the root of the CVS tree X-$cvsroot = '/home/ncvs'; X+$cvsroot = '@@CVSROOT@@'; X # Set $rcsbinaries to the location of the RCS binaries, if they're X # not in the web server's $PATH X #$rcsbinaries = '/import/gnu-2.0/sparc-sun-sunos4.1/bin'; X # The HTML title will be $title: /pathname X-$title = "My CVS Tree"; X+$title = "@@TITLE@@"; X # The HTML to go inside the

tag X-$h1 = 'My CVS Tree'; X+$h1 = $title; X # $intro is the HTML that is displayed along with the X # top-level tree X $intro = " X@@ -67,7 +67,7 @@ X display diffs between arbitrary revisions. X

X Please send any suggestions, comments, etc. to X-Bill Fenner <fenner@freebsd.org> X+Bill Fenner <fenner\@freebsd.org> X "; X # X # $shortinstr is the HTML displayed at the top of non-top-level X@@ -79,11 +79,11 @@ X "; X # X # $backicon is the icon to be used for the previous directory, if any X-#$backicon = "/icons/back.gif"; X+$backicon = "/icons/back.gif"; X # $diricon is the icon to be used for a directory, if any X-#$diricon = "/icons/dir.gif"; X+$diricon = "/icons/dir.gif"; X # $texticon is the icon to be used for a text file, if any X-#$texticon = "/icons/text.gif"; X+$texticon = "/icons/text.gif"; X # X # $tailhtml is the html for the bottom of the page X $tailhtml =" END-of-cvsweb/patches/patch-aa echo c - cvsweb/pkg mkdir -p cvsweb/pkg > /dev/null 2>&1 echo x - cvsweb/pkg/COMMENT sed 's/^X//' >cvsweb/pkg/COMMENT << 'END-of-cvsweb/pkg/COMMENT' Xa WWW CGI script that allows remote access to a CVS tree. END-of-cvsweb/pkg/COMMENT echo x - cvsweb/pkg/DESCR sed 's/^X//' >cvsweb/pkg/DESCR << 'END-of-cvsweb/pkg/DESCR' Xcvsweb is a WWW CGI script that allows remote access to a CVS tree. It Xallows browsing of the full tree; no access controls are implemented. XIt can display the revision history of a file, as well as diffs between Xrevisions and downloading the whole file. X XThe configuration should be easy; edit the variable definitions at the Xtop, above the line that says "End configuration section". Then install Xit in your web server's cgi-bin directory and you should be all set. X XSeveral people have approaced me about modifying cvsweb for their own Xneeds. I would ask that if you make a useful modification, that you send Xit back to me for inclusion in the next release. X XAUTHOR: Bill Fenner XWWW: http://www.freebsd.org/~fenner/cvsweb/ X X- from README END-of-cvsweb/pkg/DESCR echo x - cvsweb/pkg/PLIST sed 's/^X//' >cvsweb/pkg/PLIST << 'END-of-cvsweb/pkg/PLIST' Xwww/cgi-bin/cvsweb END-of-cvsweb/pkg/PLIST echo x - cvsweb/pkg/REQ sed 's/^X//' >cvsweb/pkg/REQ << 'END-of-cvsweb/pkg/REQ' X#!/bin/sh Xif [ x$2 = xINSTALL -a ! -d ${PKG_PREFIX}/www ]; then X echo "*************************************" X echo "* Install a httpd program at first. *" X echo "*************************************" X exit 1 Xfi Xexit 0 END-of-cvsweb/pkg/REQ exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message