mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
3fd0fe8fb7
2000-10-21 00:46 knu * cvsweb.cgi: Always give options to click on a non-colored diff _and_ a colored diff. Requested by: SO many people :> 2000-10-20 22:59 knu * TODO.knu: Hyperlinking was properly fixed. 2000-10-20 21:28 knu * TODO.knu, cvsweb.cgi: Fix htmllify so that <A href="...">...</A> won't nest. :) Do not show additional "(colored)" diff links when long colored diff is the default. Reduce the use of `.' operator that is known to be expensive. Fix indent, clean up. 2000-10-11 06:14 knu * cvsweb.cgi: Introduce a new function: htmlquote(). Clean up hyperlink tags. - Use &link() instead of <a href="...">...</a>. - Do urlencode() or htmlquote() as appropriate. 2000-10-11 03:48 knu * cvsweb.cgi: - Recognize "links" as another text mode browser. - Fix the revision links in the annotation view of a file. Submitted by: Christian Weisgerber <naddy@mips.inka.de>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# New ports collection makefile for: cvsweb
|
|
# Date created: 27 Jun 1999
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cvsweb
|
|
PORTVERSION= ${REV_ZELLER}.${REV_KNU}
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= knu
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_PERL5= yes
|
|
|
|
# This version of cvsweb is Zeller's version + knu's enhancements.
|
|
REV_ZELLER= 1.103
|
|
REV_KNU= 1.37
|
|
|
|
# Specify where your repository belongs.
|
|
# (You can reconfigure it after installation anyway)
|
|
.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
|
|
CVSROOT= /home/cvs
|
|
.endif
|
|
|
|
# Specify the title of your cvsweb site.
|
|
TITLE?= My CVS Repository
|
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
|
CGIDIR?= share/apache/cgi-bin
|
|
ICONSDIR?= share/apache/icons
|
|
|
|
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
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/cvsweb.conf ${PREFIX}/etc/cvsweb.conf.sample
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb
|
|
cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${PREFIX}/${ICONSDIR}/cvsweb/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/cvsweb
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog INSTALL README README.knu TODO ${PREFIX}/share/doc/cvsweb/
|
|
.endif
|
|
|
|
post-install:
|
|
.if defined(PACKAGE_BUILDING)
|
|
${ECHO} "@unexec rmdir -p %D/${CGIDIR} %D/${ICONSDIR} 2>/dev/null || true" >> ${TMPPLIST}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|