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
|
2000-06-07 08:23:11 +00:00
|
|
|
PORTVERSION= 1.85
|
1999-07-26 18:17:00 +00:00
|
|
|
CATEGORIES= devel www
|
2000-06-07 17:24:38 +00:00
|
|
|
MASTER_SITES= ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/knu/
|
1999-07-26 18:06:45 +00:00
|
|
|
|
2000-04-24 15:51:20 +00:00
|
|
|
MAINTAINER= knu@FreeBSD.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}"
|
|
|
|
|
2000-06-07 08:23:11 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
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:
|
2000-06-05 06:59:26 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
${ECHO} "@unexec rmdir -p %D/${CGIDIR} %D/${ICONSDIR} 2>/dev/null || true" >> ${TMPPLIST}
|
|
|
|
.endif
|
2000-03-23 05:00:34 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-07-26 18:06:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|