2012-10-28 07:30:00 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2012/10/28 06:30:14 asau Exp $
|
2005-10-13 13:14:41 +02:00
|
|
|
#
|
|
|
|
|
2009-03-04 14:19:36 +01:00
|
|
|
DISTNAME= drraw-2.2b2
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
2005-10-13 13:14:41 +02:00
|
|
|
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
|
|
|
|
|
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
|
2005-10-13 13:14:41 +02:00
|
|
|
SUBST_STAGE.prefix= post-patch
|
|
|
|
SUBST_FILES.prefix= drraw.cgi
|
|
|
|
SUBST_SED.prefix= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g"
|
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"
|