5f95e7c147
* Chdir to TMPDIR so it works even when the cgi-bin directory is unreadable. * Let the module/path box appear and work properly when there is only one repository. * perltidy -i=8 -t -pt=2 -bt=2 -sbt=2 -ci=4 -noll -sfs -nasc -ce * MFZ 1.111, but introduce @ForbiddenFiles instead of @DissallowRead to forbid user to cvs checkout/diff/annotate specified files. * MFZ 1.112: A couple of trivial fixes.
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.16 2001/08/01 19:59:25 naddy Exp $
|
|
# $FreeBSD: ports/devel/cvsweb/Makefile,v 1.28 2000/09/23 20:48:45 knu Exp $
|
|
|
|
COMMENT= "WWW CGI script to browse CVS repository trees"
|
|
|
|
DISTNAME= cvsweb-1.112.1.82
|
|
CATEGORIES= devel www
|
|
NEED_VERSION= 1.402
|
|
HOMEPAGE= http://www.idaemons.org/~knu/cvsweb/
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://www.iDaemons.org/distfiles/ \
|
|
ftp://ftp.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
|
|
ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
|
|
ftp://ftp.se.FreeBSD.org/pub/FreeBSD/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ports/local-distfiles/knu
|
|
|
|
NO_BUILD= Yes
|
|
WRKDIST= ${WRKDIR}/cvsweb
|
|
|
|
PREFIX= /var/www
|
|
SYSCONFDIR= ${PREFIX}/conf
|
|
|
|
CONFFILES= cvsweb.conf cvsweb.conf-freebsd cvsweb.conf-netbsd \
|
|
cvsweb.conf-openbsd cvsweb.conf-ruby
|
|
ICONS= back.gif dir.gif text.gif \
|
|
miniback.gif minidir.gif minitext.gif
|
|
|
|
do-configure:
|
|
@perl -i -pe 's@%%SYSCONFDIR%%@${SYSCONFDIR}@g' ${WRKSRC}/cvsweb.cgi
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/cgi-bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/cgi-bin/cvsweb
|
|
${INSTALL_DATA_DIR} ${SYSCONFDIR}/cvsweb
|
|
.for file in ${CONFFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${SYSCONFDIR}/cvsweb/${file}.dist
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${PREFIX}/icons/cvsweb
|
|
.for file in ${ICONS}
|
|
${INSTALL_DATA} ${WRKSRC}/icons/${file} ${PREFIX}/icons/cvsweb/${file}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|