2022-06-28 13:30:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.29 2022/06/28 11:37:04 wiz Exp $
|
2005-10-13 13:14:41 +02:00
|
|
|
#
|
|
|
|
|
2009-03-04 14:19:36 +01:00
|
|
|
DISTNAME= drraw-2.2b2
|
2022-06-28 13:30:51 +02:00
|
|
|
PKGREVISION= 10
|
2005-10-13 13:14:41 +02:00
|
|
|
CATEGORIES= databases graphics www
|
|
|
|
MASTER_SITES= http://web.taranis.org/drraw/dist/
|
|
|
|
|
|
|
|
MAINTAINER= kleink@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://web.taranis.org/drraw/
|
2005-10-13 13:14:41 +02:00
|
|
|
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
|
|
|
|
|
2008-10-06 21:21:03 +02:00
|
|
|
DRRAW_DOCS= CHANGES INSTALL LICENSE README.EVENTS
|
2005-10-13 13:14:41 +02:00
|
|
|
|
|
|
|
CONF_FILES= ${EGDIR}/drraw.conf ${PKG_SYSCONFDIR}/drraw.conf
|
|
|
|
|
2006-05-02 11:07:20 +02:00
|
|
|
DEPENDS+= rrdtool>=1.2.9:../../databases/rrdtool
|
|
|
|
|
2009-07-07 18:49:05 +02:00
|
|
|
INSTALLATION_DIRS= libexec/cgi-bin ${EGDIR}/icons ${DOCDIR}
|
|
|
|
|
2005-10-13 13:14:41 +02:00
|
|
|
do-install:
|
2009-07-07 18:49:05 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${DESTDIR}${PREFIX}/libexec/cgi-bin
|
2005-10-13 13:14:41 +02:00
|
|
|
.for f in ${DRRAW_CONF_FILES}
|
2009-07-07 18:49:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}/${f}
|
2005-10-13 13:14:41 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DRRAW_ICONS}
|
2009-07-07 18:49:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/${f} ${DESTDIR}${EGDIR}/icons/${f}
|
2005-10-13 13:14:41 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DRRAW_DOCS}
|
2009-07-07 18:49:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}/${f}
|
2005-10-13 13:14:41 +02:00
|
|
|
.endfor
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= prefix
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.prefix= pre-configure
|
2005-10-13 13:14:41 +02:00
|
|
|
SUBST_FILES.prefix= drraw.cgi
|
2019-02-12 14:20:46 +01:00
|
|
|
SUBST_VARS.prefix= PKG_SYSCONFDIR
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.prefix= Fixing harcoded paths.
|
2005-10-13 13:14:41 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|