pkgsrc/www/drraw/Makefile
wiz 7eeb51b534 Bump for perl-5.20.0.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
2014-05-29 23:35:13 +00:00

53 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2014/05/29 23:37:57 wiz Exp $
#
DISTNAME= drraw-2.2b2
PKGREVISION= 3
CATEGORIES= databases graphics www
MASTER_SITES= http://web.taranis.org/drraw/dist/
MAINTAINER= kleink@NetBSD.org
HOMEPAGE= http://web.taranis.org/drraw/
COMMENT= Simple web based presentation front-end for RRDtool
NO_BUILD= yes
USE_TOOLS+= perl:run
REPLACE_PERL= drraw.cgi
PKG_SYSCONFSUBDIR?= drraw
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
DRRAW_CONF_FILES= drraw.conf
DRRAW_ICONS= bomb.gif folder.gif folder.open.gif generic.gif \
link.gif text.gif unknown.gif
DRRAW_DOCS= CHANGES INSTALL LICENSE README.EVENTS
CONF_FILES= ${EGDIR}/drraw.conf ${PKG_SYSCONFDIR}/drraw.conf
DEPENDS+= rrdtool>=1.2.9:../../databases/rrdtool
INSTALLATION_DIRS= libexec/cgi-bin ${EGDIR}/icons ${DOCDIR}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${DESTDIR}${PREFIX}/libexec/cgi-bin
.for f in ${DRRAW_CONF_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}/${f}
.endfor
.for f in ${DRRAW_ICONS}
${INSTALL_DATA} ${WRKSRC}/icons/${f} ${DESTDIR}${EGDIR}/icons/${f}
.endfor
.for f in ${DRRAW_DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}/${f}
.endfor
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= post-patch
SUBST_FILES.prefix= drraw.cgi
SUBST_SED.prefix= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g"
SUBST_MESSAGE.prefix= Fixing harcoded paths.
.include "../../mk/bsd.pkg.mk"