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-07-29 13:24:11 +00:00
|
|
|
PORTVERSION= ${REV_ZELLER}.${REV_KNU}
|
1999-07-26 18:17:00 +00:00
|
|
|
CATEGORIES= devel www
|
2000-07-29 13:24:11 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2000-06-29 02:31:42 +00:00
|
|
|
MASTER_SITE_SUBDIR= 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-08-01 12:53:41 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
|
2000-07-29 13:24:11 +00:00
|
|
|
# This version of cvsweb is Zeller's version + knu's enhancements.
|
2000-08-25 09:39:12 +00:00
|
|
|
REV_ZELLER= 1.94
|
2000-09-04 16:06:40 +00:00
|
|
|
REV_KNU= 1.19
|
2000-07-29 13:24:11 +00:00
|
|
|
|
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)
|
2000-07-18 23:47:01 +00:00
|
|
|
CVSROOT= /home/cvs
|
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 "\
|
2000-08-01 12:53:41 +00:00
|
|
|
s;/usr/bin/perl5;${PERL};g; \
|
2000-07-29 13:24:11 +00:00
|
|
|
s;/usr/local;${PREFIX};g; \
|
|
|
|
s;/home/cvs;${CVSROOT};g; \
|
|
|
|
s;'Local Repository';'${TITLE}';g; \
|
2000-03-23 12:02:34 +00:00
|
|
|
" 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-09-03 19:21:55 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog INSTALL README README.knu 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>
|