d7f69e47ce
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal <jmmv at menta.net>.
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
#
|
|
# $NetBSD: Makefile,v 1.16 2003/01/28 22:04:28 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= cvsweb-2.0.6
|
|
CATEGORIES= www
|
|
MASTER_SITES= ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/scop/
|
|
|
|
MAINTAINER= lukem@netbsd.org
|
|
HOMEPAGE= http://www.freebsd.org/projects/cvsweb.html
|
|
COMMENT= Web interface for browsing a CVS repository
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_PKGINSTALL= YES
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
|
|
CVSWEB_CONF_FILES= cvsweb.conf \
|
|
cvsweb.conf-freebsd \
|
|
cvsweb.conf-netbsd \
|
|
cvsweb.conf-openbsd \
|
|
cvsweb.conf-ruby
|
|
|
|
CVSWEB_ICONS= back.gif dir.gif \
|
|
miniback.gif minidir.gif minitext.gif text.gif
|
|
|
|
CVSWEB_DOCS= ChangeLog INSTALL README README.FreeBSD \
|
|
TODO TODO.FreeBSD
|
|
|
|
CONF_FILES= ${EGDIR}/cvsweb.conf ${PKG_SYSCONFDIR}/cvsweb.conf
|
|
|
|
.if !exists(/usr/bin/rlog)
|
|
DEPENDS+= rcs-[0-9]*:../../devel/rcs
|
|
.endif
|
|
|
|
do-build:
|
|
${MV} ${WRKSRC}/cvsweb.cgi ${WRKSRC}/cvsweb.cgi.bak
|
|
${SED} -e 's,/usr/bin/perl,${PERL5},' \
|
|
-e 's,/usr/local/etc/cvsweb/,${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} ${EGDIR}
|
|
.for f in ${CVSWEB_CONF_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${EGDIR}/${f}
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${EGDIR}/icons
|
|
.for f in ${CVSWEB_ICONS}
|
|
${INSTALL_DATA} ${WRKSRC}/icons/${f} ${EGDIR}/icons/${f}
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
.for f in ${CVSWEB_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}/${f}
|
|
.endfor
|
|
|
|
.include "../../lang/perl5/buildlink2.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|