aboutsummaryrefslogtreecommitdiffstats
path: root/www/drraw
diff options
context:
space:
mode:
Diffstat (limited to 'www/drraw')
-rw-r--r--www/drraw/Makefile18
-rw-r--r--www/drraw/distinfo9
-rw-r--r--www/drraw/files/patch-drraw.conf3
3 files changed, 21 insertions, 9 deletions
diff --git a/www/drraw/Makefile b/www/drraw/Makefile
index f09e686bb53a..b5971c71db33 100644
--- a/www/drraw/Makefile
+++ b/www/drraw/Makefile
@@ -6,22 +6,23 @@
#
PORTNAME= drraw
-PORTVERSION= 2.1.3
-PORTREVISION= 2
+DISTVERSION= 2.2b2
CATEGORIES= www
MASTER_SITES= http://web.taranis.org/drraw/dist/ \
http://christianserving.org/ports/mail/imapsync/
-MAINTAINER= ports@christianserving.org
+MAINTAINER= avg@icyb.net.ua
COMMENT= A simple web-based presentation front-end for RRDtool
RUN_DEPENDS+= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool
+OPTIONS= ZOOM_PATCH "Zoom support using jQuery via external patch" off
+
USE_PERL5_RUN= yes
NO_BUILD= yes
-PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS WISHLIST
+PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS
CONFDIR?= etc
DATADIRS?= "/var/db/rrdtool" => "[Label1] "
@@ -30,6 +31,13 @@ TMPDIR?= /var/db/${PORTNAME}/tmp
PLIST_SUB+= CONFDIR=${CONFDIR}
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ZOOM_PATCH)
+PATCH_SITES+= http://pero.blogs.aprilmayjune.org/files/2009/09/
+PATCHFILES+= drraw.cgi.zoom_patch
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%CONFDIR%%|${PREFIX}/${CONFDIR}|g' ${WRKSRC}/drraw.cgi
@@ -64,4 +72,4 @@ post-install:
${CP} -p ${PREFIX}/etc/drraw.conf-dist ${PREFIX}/etc/drraw.conf; \
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/drraw/distinfo b/www/drraw/distinfo
index 5e42a4e557d1..fb0be51289da 100644
--- a/www/drraw/distinfo
+++ b/www/drraw/distinfo
@@ -1,3 +1,6 @@
-MD5 (drraw-2.1.3.tar.gz) = 99466034678b46784fcd4463882b6c8a
-SHA256 (drraw-2.1.3.tar.gz) = c3290781426f81327632b4b0da80360882438f3d44cca81fdeaa3f9b22c3674e
-SIZE (drraw-2.1.3.tar.gz) = 45970
+MD5 (drraw-2.2b2.tar.gz) = 704ac58d2b8d0141e38897b1fe86d8a0
+SHA256 (drraw-2.2b2.tar.gz) = 1583bb15673d48794a71fa12c3447f89046a1ff0ad89d414b5b25013b7751a91
+SIZE (drraw-2.2b2.tar.gz) = 53447
+MD5 (drraw.cgi.zoom_patch) = 08664351e5bcec22ba02ddce8086483e
+SHA256 (drraw.cgi.zoom_patch) = 9930deb7f6a1b0dfe5a005fd918b49ea62020a5a109c7ef68fd7ac8a82fddaa2
+SIZE (drraw.cgi.zoom_patch) = 5733
diff --git a/www/drraw/files/patch-drraw.conf b/www/drraw/files/patch-drraw.conf
index 21df3e41a005..f186223f0d96 100644
--- a/www/drraw/files/patch-drraw.conf
+++ b/www/drraw/files/patch-drraw.conf
@@ -1,9 +1,10 @@
--- drraw.conf.orig Sat Nov 13 14:01:22 2004
+++ drraw.conf Mon Jul 24 13:39:49 2006
-@@ -21,8 +21,7 @@
+@@ -21,9 +21,8 @@
# Directories where Round Robin Databases may be found
# They will be searched recursively for files matching *.rrd (Round Robin
# Database files) and *.evt (Event files).
+ # NOTE: Specify directory paths without any trailing slash
-%datadirs = ('/here/are/some/files' => '[Label1] ',
- '/here/are/other/files' => '[Label2] ',
+%datadirs = (%%DATADIRS%%