openbsd-ports/devel/cvsweb/Makefile
naddy 2265ae5f60 Update to FreeBSD cvsweb 2.0.3.
SECURITY:
* Fix cross-site scripting vulnerabilities.

Also:
* Add new configuration variables: $allow_log_extra, $allow_dir_extra,
and $allow_source_extra.
* Unbreak mod_perl support.
* Miscellaneous bug fixes.
2002-05-22 18:53:15 +00:00

49 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2002/05/22 18:53:15 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-2.0.3
CATEGORIES= devel www
NEED_VERSION= 1.515
HOMEPAGE= http://cvsweb.freebsd.org/projects/cvsweb/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=knu/} \
http://www.iDaemons.org/distfiles/
NO_BUILD= Yes
NO_REGRESS= Yes
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>