Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2001 22:40:42 +0100 (CET)
From:      mkamm@gmx.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/25533: new port: cvsweb-converters-0.1
Message-ID:  <200103042140.f24Legd27101@homebox.kammerhofer.org>

next in thread | raw e-mail | index | archive | help

>Number:         25533
>Category:       ports
>Synopsis:       new port: cvsweb-converters-0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 04 13:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
TU Graz
>Environment:
>Description:

This port provides three Perl scripts:
  + commitlog2cvsweb: converts FreeBSD commitlog files to HTML
  + cvsrdiff2cvsweb:  converts output of "cvs rdiff -s" to HTML
  + cvsuplog2cvsweb:  converts log output of "cvsup" to HTML

They basically transform their input almost unchanged to HTML, adding
only hyperlinks to a cvsweb.cgi script for each changed file.

>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:
#
#	.
#	./pkg-message
#	./pkg-descr
#	./pkg-comment
#	./distinfo
#	./files
#	./files/patch-aa
#	./pkg-plist
#	./Makefile
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-message
sed 's/^X//' >./pkg-message << 'END-of-./pkg-message'
X******************************************************************
XIf this is a first installation (not an upgrade) do this:
X
X	cd ${PREFIX}/etc
X	cp commitlog2cvsweb.conf.sample commitlog2cvsweb.conf
X
Xand edit commitlog2cvsweb.conf. Change $cvsweb to your nearest
Xcvsweb mirror. Check http://www.FreeBSD.org/support.html#cvs for
Xcvsweb mirror sites.
X
XDocumentation is included inside the scripts in POD format.
XUse "perldoc <script>" to read the documentation for <script>.
X******************************************************************
END-of-./pkg-message
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XNote: If you don't know what cvs, cvsup and cvsweb.cgi are then this
Xtext is most likely not interesting for you. This is primarily
Xintended for people tracking the development of FreeBSD and other open
Xsource projects with a public CVS repository.
X
XThis package provides three Perl scripts:
X  + commitlog2cvsweb: converts FreeBSD commitlog files to HTML
X  + cvsrdiff2cvsweb:  converts output of "cvs rdiff -s" to HTML
X  + cvsuplog2cvsweb:  converts log output of "cvsup" to HTML
X
XThey basically transform their input almost unchanged to HTML, adding
Xonly hyperlinks to a cvsweb.cgi script for each changed file. In order
Xto use them you need
X  1. access to a CVS repository of interest to you (either by
X     local/remote cvs or by cvsup)
X  2. WWW access to the repository with a cvsweb CGI.
XTo use commitlog2cvsweb you have to mirror the src-base part of the
XFreeBSD CVS repository. This is currently (2001) about 17 megabytes.
X
XOther than saving you some typing (of URLs) these scripts won't do much
Xfor you. You probably don't need this unless you frequently use cvsweb
Xor you got used to browse FreeBSD commit logs.
X--
XMartin Kammerhofer <mkamm@gmx.net>
END-of-./pkg-descr
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XCreate hyperlinks to cvsweb from cvs[up] output or FreeBSD commitlogs
END-of-./pkg-comment
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (cvsweb-converters-0.1.tar.gz) = ca234e394c61fead3d84d835a6e46214
END-of-./distinfo
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-aa
sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa'
X--- commitlog2cvsweb.pl~	Sun Mar  4 14:26:59 2001
X+++ commitlog2cvsweb.pl	Sun Mar  4 17:26:00 2001
X@@ -1,4 +1,4 @@
X-#! /usr/bin/perl -wT
X+#! !!PERL!! -wT
X # Copyright © 2001 Martin Kammerhofer <mkamm@gmx.net>
X # All rights reserved.
X #
X--- cvsrdiff2cvsweb.pl~	Sun Mar  4 14:27:19 2001
X+++ cvsrdiff2cvsweb.pl	Sun Mar  4 17:26:00 2001
X@@ -1,4 +1,4 @@
X-#! /usr/bin/perl -wT
X+#! !!PERL!! -wT
X # Copyright © 2001 Martin Kammerhofer <mkamm@gmx.net>
X # All rights reserved.
X #
X--- cvsuplog2cvsweb.pl~	Sun Mar  4 14:27:33 2001
X+++ cvsuplog2cvsweb.pl	Sun Mar  4 17:26:00 2001
X@@ -1,4 +1,4 @@
X-#! /usr/bin/perl -wT
X+#! !!PERL!! -wT
X # Copyright © 2001 Martin Kammerhofer <mkamm@gmx.net>
X # All rights reserved.
X #
END-of-./files/patch-aa
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/commitlog2cvsweb
Xbin/cvsrdiff2cvsweb
Xbin/cvsuplog2cvsweb
Xetc/commitlog2cvsweb.conf.sample
END-of-./pkg-plist
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	cvsweb-converters
X# Date created:		4 Mar 2001
X# Whom:			Martin Kammerhofer <mkamm@gmx.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cvsweb-converters
XPORTVERSION=	0.1
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.sbox.TUGraz.at/home/d/dada/distfiles/
X
XMAINTAINER=	mkamm@gmx.net
X
XRUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
X
XNO_BUILD=	yes
XUSE_PERL5=	yes
X
Xpost-patch:
X	@${PERL} -i -wpe '			\
X	    s[ /usr/local ](${PREFIX})gx;	\
X	    s[ !!PERL!!   ](${PERL})gx;		\
X	' -- "${WRKSRC}"/*.pl
X
Xdo-install:
X	cd ${WRKSRC} &&							\
X	${MKDIR} -- "${PREFIX}/bin" "${PREFIX}/etc" &&			\
X	for f in *.pl; do						\
X	  ${INSTALL_SCRIPT} -- $$f "${PREFIX}/bin/`basename $$f .pl`";	\
X	done &&								\
X	${INSTALL_DATA} -- commitlog2cvsweb.conf.sample "${PREFIX}/etc"
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-./Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103042140.f24Legd27101>