1999-07-26 18:06:45 +00:00
|
|
|
# New ports collection makefile for: cvsweb
|
|
|
|
# Date created: 27 Jun 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
1999-07-26 18:06:45 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1999-07-26 18:06:45 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= cvsweb
|
|
|
|
PORTVERSION= 1.80
|
1999-07-26 18:17:00 +00:00
|
|
|
CATEGORIES= devel www
|
2000-03-23 12:02:34 +00:00
|
|
|
MASTER_SITES= http://stud.fh-heilbronn.de/~zeller/download/
|
1999-07-26 18:06:45 +00:00
|
|
|
|
2000-03-23 05:00:34 +00:00
|
|
|
MAINTAINER= knu@idaemons.org
|
1999-07-26 18:06:45 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2000-03-23 05:00:34 +00:00
|
|
|
# Specify where your repository belongs.
|
|
|
|
# (You can reconfigure it after installation anyway)
|
|
|
|
.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
|
|
|
|
CVSROOT= /home/ncvs
|
1999-07-26 18:06:45 +00:00
|
|
|
.endif
|
|
|
|
|
2000-03-23 05:00:34 +00:00
|
|
|
# Specify the title of your cvsweb site.
|
|
|
|
TITLE?= My CVS Repository
|
|
|
|
|
2000-03-23 12:02:34 +00:00
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
2000-03-23 05:00:34 +00:00
|
|
|
CGIDIR?= share/apache/cgi-bin
|
2000-03-23 12:02:34 +00:00
|
|
|
ICONSDIR?= share/apache/icons
|
2000-03-23 05:00:34 +00:00
|
|
|
|
2000-03-23 12:02:34 +00:00
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/cvsweb
|
2000-03-23 05:00:34 +00:00
|
|
|
|
1999-07-26 18:06:45 +00:00
|
|
|
do-configure:
|
2000-03-23 12:02:34 +00:00
|
|
|
cd ${WRKSRC} && ${PERL} -i -pe "\
|
|
|
|
s;!!PREFIX!!;${PREFIX};g; \
|
|
|
|
s;!!CVSROOT!!;${CVSROOT};g; \
|
|
|
|
s;!!TITLE!!;${TITLE};g; \
|
|
|
|
" cvsweb.cgi cvsweb.conf
|
1999-07-26 18:06:45 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-03-23 05:00:34 +00:00
|
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/
|
2000-03-23 12:02:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/cvsweb.conf ${PREFIX}/etc/cvsweb.conf.sample
|
|
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb
|
|
|
|
cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${PREFIX}/${ICONSDIR}/cvsweb/
|
2000-03-23 05:00:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cvsweb
|
2000-03-23 12:02:34 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} INSTALL README TODO ${PREFIX}/share/doc/cvsweb/
|
1999-07-26 18:17:00 +00:00
|
|
|
.endif
|
2000-03-23 05:00:34 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-07-26 18:06:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|