pkgsrc/www/viewvc/Makefile
wiz d1fb4062ad Update to 1.0.12, and distfile uploaded to nbftp. Basically from PR pkg/44263
by Christopher M. Fuhrman.

MASTER_SITES don't work with ftp(1), thus commented out.

Version 1.0.12 (released 02-Jun-2010)

  * fix exception caused by trying to HTML-escape non-string data (issue #454)

Version 1.0.11 (released 29-Mar-2010)

  * security fix: escape user-provided search_re input to avoid XSS attack
2010-12-25 15:00:36 +00:00

71 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2010/12/25 15:00:36 wiz Exp $
#
DISTNAME= viewvc-1.0.12
CATEGORIES= devel www
MASTER_SITES= # http://viewvc.tigris.org/files/documents/3330/47621/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.viewvc.org/
COMMENT= Viewing the content of CVS/SVN repositories with a Webbrowser
LICENSE= 2-clause-bsd
PKG_DESTDIR_SUPPORT= user-destdir
PYTHON_PATCH_SCRIPTS= viewvc-install bin/* bin/cgi/*.cgi lib/*.py
.if !exists(/usr/bin/rlog)
DEPENDS+= rcs-[0-9]*:../../devel/rcs
RCS_PKG= YES
.else
RCS_PKG= NO
.endif
NO_BUILD= YES
VIEWVCDIR= share/viewvc
PLIST_SUBST+= VIEWVCDIR=${VIEWVCDIR:Q}
CONF_FILES= ${PREFIX}/share/examples/viewvc/viewvc.conf \
${PREFIX}/${VIEWVCDIR:Q}/viewvc.conf
CONF_FILES+= ${PREFIX}/share/examples/viewvc/cvsgraph.conf \
${PREFIX}/${VIEWVCDIR:Q}/cvsgraph.conf
.include "options.mk"
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_MESSAGE.conf= Fixing configuration files.
SUBST_FILES.conf= viewvc.conf.dist
SUBST_SED.conf= -e "s|@VIEWVCDIR@|${VIEWVCDIR}|g"
SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_SED.conf+= -e "s|@PHP_OPT@|${PHP_OPT}|g"
SUBST_SED.conf+= -e "s|@CVSGRAPH_OPT@|${CVSGRAPH_OPT}|g"
.if defined(RCS_PKG) && ${RCS_PKG} == "YES"
SUBST_SED.conf+= -e "s|@RCS_PREFIX@|${PREFIX}|g"
.else
SUBST_SED.conf+= -e "s|@RCS_PREFIX@|/usr|g"
.endif
CHECK_PORTABILITY_SKIP= tools/make-release
INSTALLATION_DIRS= share/examples/viewvc
do-install:
(cd ${WRKSRC} && \
${PYTHONBIN} \
viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir=${DESTDIR})
${INSTALL_DATA} ${WRKSRC}/viewvc.conf.dist \
${DESTDIR}${PREFIX}/share/examples/viewvc/viewvc.conf
${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf.dist \
${DESTDIR}${PREFIX}/share/examples/viewvc/cvsgraph.conf
post-install:
${CHMOD} ${SHAREMODE} \
${DESTDIR}/${PREFIX}/share/viewvc/bin/mod_python/.htaccess
${CHMOD} ${SHAREMODE} \
${DESTDIR}/${PREFIX}/share/viewvc/bin/mod_python/*.py
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"