freebsd-ports/devel/cvsweb/Makefile
Akinori MUSHA 22c13d6e03 Turn off perl's -T flag for the moment, for CVSweb 2.0.6's code does
not pass Perl 5.8's stricter taint checks.  The flag will be turned on
again when the port is updated to the next release.

PR:		ports/62650, ports/62743
Submitted by:	naddy, Palle Girgensohn <girgen@pingpong.net>
2004-02-24 14:18:50 +00:00

81 lines
2.0 KiB
Makefile

# New ports collection makefile for: cvsweb
# Date created: 27 Jun 1999
# Whom: SADA Kenji <sada@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cvsweb
PORTVERSION= 2.0.6
PORTREVISION= 1
CATEGORIES= devel www
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.FreeBSD.org/~scop/cvsweb/
MASTER_SITE_SUBDIR= scop
MAINTAINER= freebsd-cvsweb@FreeBSD.org
COMMENT= WWW CGI script to browse CVS repository trees
NO_BUILD= yes
USE_PERL5= yes
# 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
CONFFILES= cvsweb.conf \
cvsweb.conf-freebsd \
cvsweb.conf-openbsd \
cvsweb.conf-netbsd \
cvsweb.conf-ruby
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
post-patch:
${PERL} -i -pe "\
s'!!PERL!!'${PERL}'g; \
s'!!PREFIX!!'${PREFIX}'g;" \
${WRKSRC}/cvsweb.cgi
${PERL} -i -pe "\
s'!!PREFIX!!'${PREFIX}'g; \
s'!!CVSROOT!!'${CVSROOT}'g; \
s'!!TITLE!!'${TITLE}'g;" \
${WRKSRC}/cvsweb.conf
do-install:
${MKDIR} ${PREFIX}/${CGIDIR}
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/
${MKDIR} ${PREFIX}/etc/cvsweb
.for f in ${CONFFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/cvsweb/${f}.dist
.endfor
${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.FreeBSD TODO TODO.FreeBSD ${PREFIX}/share/doc/cvsweb/
.endif
post-install:
.if defined(PACKAGE_BUILDING)
${ECHO_CMD} "@unexec rmdir -p %D/${CGIDIR} %D/${ICONSDIR} 2>/dev/null || true" >> ${TMPPLIST}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>