1999-07-26 14:06:45 -04:00
|
|
|
# New ports collection makefile for: cvsweb
|
|
|
|
# Date created: 27 Jun 1999
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
1999-07-26 14:06:45 -04:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-07-26 14:06:45 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 17:30:15 -04:00
|
|
|
PORTNAME= cvsweb
|
|
|
|
PORTVERSION= 1.80
|
1999-07-26 14:17:00 -04:00
|
|
|
CATEGORIES= devel www
|
2000-03-23 07:02:34 -05:00
|
|
|
MASTER_SITES= http://stud.fh-heilbronn.de/~zeller/download/
|
1999-07-26 14:06:45 -04:00
|
|
|
|
2000-04-24 11:51:20 -04:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
1999-07-26 14:06:45 -04:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2000-03-23 00:00:34 -05: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 14:06:45 -04:00
|
|
|
.endif
|
|
|
|
|
2000-03-23 00:00:34 -05:00
|
|
|
# Specify the title of your cvsweb site.
|
|
|
|
TITLE?= My CVS Repository
|
|
|
|
|
2000-03-23 07:02:34 -05:00
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
2000-03-23 00:00:34 -05:00
|
|
|
CGIDIR?= share/apache/cgi-bin
|
2000-03-23 07:02:34 -05:00
|
|
|
ICONSDIR?= share/apache/icons
|
2000-03-23 00:00:34 -05:00
|
|
|
|
2000-03-23 07:02:34 -05:00
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/cvsweb
|
2000-03-23 00:00:34 -05:00
|
|
|
|
1999-07-26 14:06:45 -04:00
|
|
|
do-configure:
|
2000-03-23 07:02:34 -05: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 14:06:45 -04:00
|
|
|
|
|
|
|
do-install:
|
2000-03-23 00:00:34 -05:00
|
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/
|
2000-03-23 07:02:34 -05: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 00:00:34 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cvsweb
|
2000-03-23 07:02:34 -05:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} INSTALL README TODO ${PREFIX}/share/doc/cvsweb/
|
1999-07-26 14:17:00 -04:00
|
|
|
.endif
|
2000-03-23 00:00:34 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-07-26 14:06:45 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|