1999-07-26 20:06:45 +02:00
|
|
|
# New ports collection makefile for: cvsweb
|
|
|
|
# Date created: 27 Jun 1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: SADA Kenji <sada@FreeBSD.org>
|
1999-07-26 20:06:45 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1999-07-26 20:06:45 +02:00
|
|
|
#
|
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= cvsweb
|
2002-07-23 17:09:59 +02:00
|
|
|
PORTVERSION= 2.0.5
|
1999-07-26 20:17:00 +02:00
|
|
|
CATEGORIES= devel www
|
2001-01-14 09:40:40 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
2002-07-06 20:43:48 +02:00
|
|
|
http://people.FreeBSD.org/~scop/cvsweb/
|
|
|
|
MASTER_SITE_SUBDIR= scop
|
1999-07-26 20:06:45 +02:00
|
|
|
|
2002-06-18 11:12:45 +02:00
|
|
|
MAINTAINER= freebsd-cvsweb@FreeBSD.org
|
1999-07-26 20:06:45 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2000-08-01 14:53:41 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
|
2000-03-23 06:00:34 +01:00
|
|
|
# Specify where your repository belongs.
|
|
|
|
# (You can reconfigure it after installation anyway)
|
|
|
|
.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
|
2000-07-19 01:47:01 +02:00
|
|
|
CVSROOT= /home/cvs
|
1999-07-26 20:06:45 +02:00
|
|
|
.endif
|
|
|
|
|
2000-03-23 06:00:34 +01:00
|
|
|
# Specify the title of your cvsweb site.
|
|
|
|
TITLE?= My CVS Repository
|
|
|
|
|
2000-03-23 13:02:34 +01:00
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
2000-10-20 23:31:02 +02:00
|
|
|
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
|
2000-03-23 06:00:34 +01:00
|
|
|
CGIDIR?= share/apache/cgi-bin
|
2000-03-23 13:02:34 +01:00
|
|
|
ICONSDIR?= share/apache/icons
|
2000-10-20 23:31:02 +02:00
|
|
|
.else
|
|
|
|
CGIDIR?= www/cgi-bin
|
|
|
|
ICONSDIR?= www/icons
|
|
|
|
.endif
|
2000-03-23 06:00:34 +01:00
|
|
|
|
2001-01-02 00:51:22 +01:00
|
|
|
CONFFILES= cvsweb.conf \
|
|
|
|
cvsweb.conf-freebsd \
|
|
|
|
cvsweb.conf-openbsd \
|
|
|
|
cvsweb.conf-netbsd \
|
|
|
|
cvsweb.conf-ruby
|
|
|
|
|
2000-03-23 13:02:34 +01:00
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
|
2001-01-02 00:51:22 +01:00
|
|
|
post-patch:
|
|
|
|
${PERL} -i -pe "\
|
2001-05-19 23:00:43 +02:00
|
|
|
s'!!PERL!!'${PERL}'g; \
|
|
|
|
s'!!PREFIX!!'${PREFIX}'g;" \
|
2001-01-02 00:51:22 +01:00
|
|
|
${WRKSRC}/cvsweb.cgi
|
|
|
|
${PERL} -i -pe "\
|
2001-05-19 23:00:43 +02:00
|
|
|
s'!!PREFIX!!'${PREFIX}'g; \
|
|
|
|
s'!!CVSROOT!!'${CVSROOT}'g; \
|
|
|
|
s'!!TITLE!!'${TITLE}'g;" \
|
2001-01-02 00:51:22 +01:00
|
|
|
${WRKSRC}/cvsweb.conf
|
1999-07-26 20:06:45 +02:00
|
|
|
|
|
|
|
do-install:
|
2000-03-23 06:00:34 +01:00
|
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/
|
2001-01-02 00:51:22 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/cvsweb
|
|
|
|
.for f in ${CONFFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/cvsweb/${f}.dist
|
|
|
|
.endfor
|
2000-03-23 13:02:34 +01:00
|
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb
|
|
|
|
cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${PREFIX}/${ICONSDIR}/cvsweb/
|
2000-03-23 06:00:34 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cvsweb
|
2002-04-11 01:05:00 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog INSTALL README README.FreeBSD TODO TODO.FreeBSD ${PREFIX}/share/doc/cvsweb/
|
1999-07-26 20:17:00 +02:00
|
|
|
.endif
|
2000-03-23 06:00:34 +01:00
|
|
|
|
|
|
|
post-install:
|
2000-06-05 08:59:26 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
2002-01-29 11:16:28 +01:00
|
|
|
${ECHO_CMD} "@unexec rmdir -p %D/${CGIDIR} %D/${ICONSDIR} 2>/dev/null || true" >> ${TMPPLIST}
|
2000-06-05 08:59:26 +02:00
|
|
|
.endif
|
2000-03-23 06:00:34 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-07-26 20:06:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|