openbsd-ports/devel/cvsweb/Makefile
naddy 264af6cd73 More perl 5.16 fixes:
* Add further modules to README so that "annotate" will work.
* Fix a deprecation warning.
ok tobias@, sthen@
2013-04-07 20:07:24 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.46 2013/04/07 20:07:24 naddy Exp $
COMMENT= WWW CGI script to browse CVS repository trees
DISTNAME= cvsweb-2.0.6
REVISION = 13
CATEGORIES= devel www
HOMEPAGE= http://www.freebsd.org/projects/cvsweb.html
# BSD
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=scop/} \
http://people.FreeBSD.org/~scop/cvsweb/
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
PREFIX= /var/www
CONFDIR= ${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
SUBST_VARS= CONFDIR
do-configure:
@perl -i -pe 's@%%CONFDIR%%@${CONFDIR}@g' ${WRKSRC}/cvsweb.cgi
do-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/cgi-bin/cvsweb
${INSTALL_DATA_DIR} ${CONFDIR}/cvsweb
.for file in ${CONFFILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${CONFDIR}/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>