41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
#
|
|
# $NetBSD: Makefile,v 1.7 2001/11/28 14:00:47 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= cvsweb-1.112
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://stud.fh-heilbronn.de/~zeller/download/
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
HOMEPAGE= http://stud.fh-heilbronn.de/~zeller/cgi/cvsweb.cgi/
|
|
COMMENT= Web interface for browsing a CVS repository
|
|
|
|
DEPENDS+= apache{,6}-[0-9]*:../../www/apache
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
WRKSRC= ${WRKDIR}/cvsweb
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONF_FILES= ${EGDIR}/cvsweb.conf.default ${PKG_SYSCONFDIR}/cvsweb.conf
|
|
|
|
do-build:
|
|
${MV} ${WRKSRC}/cvsweb.cgi ${WRKSRC}/cvsweb.cgi.bak
|
|
${SED} -e 's,/usr/bin/perl,${PERL5},' \
|
|
-e 's,/usr/local/web/apache/conf/,${PKG_SYSCONFDIR}/,' \
|
|
${WRKSRC}/cvsweb.cgi.bak > ${WRKSRC}/cvsweb.cgi
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/cgi-bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/libexec/cgi-bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cvsweb
|
|
${INSTALL_DATA} ${WRKSRC}/cvsweb.conf \
|
|
${PREFIX}/share/examples/cvsweb/cvsweb.conf.default
|
|
|
|
post-install:
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
|
|
|
.include "../../lang/perl5/buildlink.mk"
|
|
.include "../../mk/bsd.pkg.install.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|