2013-03-07 16:53:45 +00:00
|
|
|
# Created by: Jim Riggs <ports@christianserving.org>
|
2006-09-13 10:35:59 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= drraw
|
2010-09-14 10:51:30 +00:00
|
|
|
DISTVERSION= 2.2b2
|
2012-05-07 18:52:09 +00:00
|
|
|
PORTREVISION= 1
|
2006-09-13 10:35:59 +00:00
|
|
|
CATEGORIES= www
|
2007-06-22 06:30:21 +00:00
|
|
|
MASTER_SITES= http://web.taranis.org/drraw/dist/ \
|
|
|
|
http://christianserving.org/ports/mail/imapsync/
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
MAINTAINER= avg@icyb.net.ua
|
2006-09-13 10:35:59 +00:00
|
|
|
COMMENT= A simple web-based presentation front-end for RRDtool
|
|
|
|
|
2012-06-30 14:31:06 +00:00
|
|
|
RUN_DEPENDS+= rrdtool>=0:${PORTSDIR}/databases/rrdtool
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2013-10-21 14:07:30 +00:00
|
|
|
OPTIONS_DEFINE= ZOOM_PATCH DOCS
|
2013-03-07 16:53:45 +00:00
|
|
|
ZOOM_PATCH_DESC= Zoom support using jQuery via external patch
|
2010-09-14 10:51:30 +00:00
|
|
|
|
2013-10-21 14:07:30 +00:00
|
|
|
USES= perl5 shebangfix
|
2013-09-14 13:38:20 +00:00
|
|
|
USE_PERL5= run
|
2006-09-13 10:35:59 +00:00
|
|
|
NO_BUILD= yes
|
2013-10-21 14:07:30 +00:00
|
|
|
SHEBANG_FILES= drraw.cgi
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS
|
2006-09-13 10:35:59 +00:00
|
|
|
|
|
|
|
CONFDIR?= etc
|
|
|
|
DATADIRS?= "/var/db/rrdtool" => "[Label1] "
|
|
|
|
SAVEDDIR?= /var/db/${PORTNAME}/saved
|
|
|
|
TMPDIR?= /var/db/${PORTNAME}/tmp
|
|
|
|
|
2007-03-24 14:04:36 +00:00
|
|
|
PLIST_SUB+= CONFDIR=${CONFDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2013-03-07 16:53:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2010-09-14 10:51:30 +00:00
|
|
|
|
2013-03-07 16:53:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MZOOM_PATCH}
|
2012-02-19 19:37:06 +00:00
|
|
|
PATCH_SITES+= http://aprilmayjune.org/wp-content/uploads/2009/09/
|
2010-09-14 10:51:30 +00:00
|
|
|
PATCHFILES+= drraw.cgi.zoom_patch
|
|
|
|
.endif
|
|
|
|
|
2006-09-13 10:35:59 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CONFDIR%%|${PREFIX}/${CONFDIR}|g' ${WRKSRC}/drraw.cgi
|
|
|
|
|
|
|
|
@${CP} -p ${WRKSRC}/drraw.conf ${WRKSRC}/drraw.conf-dist
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|%%DATADIRS%%|${DATADIRS}|g' \
|
|
|
|
-e 's|%%SAVEDDIR%%|${SAVEDDIR}|g' \
|
|
|
|
-e 's|%%TMPDIR%%|${TMPDIR}|g' \
|
|
|
|
${WRKSRC}/drraw.conf-dist
|
|
|
|
|
|
|
|
do-install:
|
2013-10-21 14:07:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/drraw.conf-dist ${STAGEDIR}${PREFIX}/${CONFDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2013-10-21 14:07:30 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${STAGEDIR}${WWWDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2013-10-21 14:07:30 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/icons
|
|
|
|
cd ${WRKSRC}/icons/${theFile} && ${INSTALL_DATA} bomb.gif folder.gif folder.open.gif generic.gif link.gif text.gif unknown.gif ${STAGEDIR}${WWWDIR}/icons
|
2013-03-07 16:53:45 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-21 14:07:30 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-07 16:53:45 +00:00
|
|
|
.include <bsd.port.mk>
|