1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/devel/cvsweb3/Makefile
Akinori MUSHA 173508aba5 Update to knu-cvsweb 1.104.1.52.
2000-12-30 08:56  knu

	* cvsweb.cgi: Oops, I forgot "cvs export" always need a -r/-D.
	Specify -rHEAD when no tag/branch is defaulted.

2000-12-30 08:35  knu

	* cvsweb.cgi, cvsweb.conf: Add $preformat_in_markup variable and
	turn it off by default.  This option should be turned off when you
	have files in the repository that are in a multibyte encoding which
	uses HTML special characters ([<>&"]) as part of a multi-byte
	character. (such as iso-2022-jp, ShiftJIS, etc.)  Otherwise those
	files will get screwed up in markup.

	Fix for those systems which tar(1)'s are not GNU tar(1).

	- Add @@tar_options variable and make the --ignore-failed-read flag
	optional.

	- Use cvs export instead of cvs checkout, so the --exclude 'CVS'
	flag isn't needed.

	Noticed by:	Christian Weisgerber <naddy@mips.inka.de>

	Fix for those systems which cvs(1)'s don't support -R option.
	(Actually, only FreeBSD's and OpenBSD's cvs(1) support it)

	- Add @@cvs_options and make the -R flag optional.

2000-12-29 22:29  knu

	* cvsweb.cgi: Add charset to all text/* output, including diffs.

	Submitted by:	Alexey Zelkin <phantom@cris.net>
2000-12-29 23:59:35 +00:00

72 lines
1.8 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.104
REV_KNU= 1.52
# 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}.
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
CGIDIR?= share/apache/cgi-bin
ICONSDIR?= share/apache/icons
.else
CGIDIR?= www/cgi-bin
ICONSDIR?= www/icons
.endif
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 TODO.knu ${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>