Date: Tue, 8 Aug 2006 11:51:26 -0500 (CDT) From: Jim Riggs <ports@christianserving.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Jim Riggs <ports@christianserving.org> Subject: ports/101664: [NEW PORT] www/drraw: A simple web-based presentation front-end for RRDtool Message-ID: <20060808165126.9F3C52235DD@zion.christianserving.org> Resent-Message-ID: <200608081700.k78H0UdO098728@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101664 >Category: ports >Synopsis: [NEW PORT] www/drraw: A simple web-based presentation front-end for RRDtool >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 08 17:00:29 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jim Riggs >Release: FreeBSD 6.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD zion.christianserving.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Tue May 30 13:40:04 CDT 2006 >Description: drraw is a simple web based presentation front-end for RRDtool that allows you to interactively build graphs of your own design. A graph definition can be turned into a template which may be applied to many Round Robin Database files. drraw specializes in providing an easy means of displaying data stored with RRDtool and does not care about how the data is collected, making it a great complement to other RRDtool front-ends. WWW: http://web.taranis.org/drraw/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- drraw-2.1.3.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # drraw # drraw/Makefile # drraw/distinfo # drraw/pkg-descr # drraw/files # drraw/files/patch-drraw.cgi # drraw/files/patch-drraw.conf # drraw/pkg-plist # echo c - drraw mkdir -p drraw > /dev/null 2>&1 echo x - drraw/Makefile sed 's/^X//' >drraw/Makefile << 'END-of-drraw/Makefile' X# New ports collection makefile for: drraw X# Date created: 2006-08-08 X# Whom: Jim Riggs <ports@christianserving.org> X# X# $FreeBSD$ X# X XPORTNAME= drraw XPORTVERSION= 2.1.3 XCATEGORIES= www XMASTER_SITES= http://web.taranis.org/drraw/dist/ XEXTRACT_SUFX= .tgz X XMAINTAINER= ports@christianserving.org XCOMMENT= A simple web-based presentation front-end for RRDtool X XRUN_DEPENDS+= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool X XUSE_PERL5_RUN= yes X XNO_BUILD= yes X XPORTDOCS= CHANGES INSTALL LICENSE README.EVENTS WISHLIST X XWWWDIR?= www XCONFDIR?= etc XDATADIRS?= "/var/db/rrdtool" => "[Label1] " XSAVEDDIR?= /var/db/${PORTNAME}/saved XTMPDIR?= /var/db/${PORTNAME}/tmp X XPLIST_SUB+= WWWDIR=${WWWDIR} CONFDIR=${CONFDIR} X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%CONFDIR%%|${PREFIX}/${CONFDIR}|g' ${WRKSRC}/drraw.cgi X X @${CP} -p ${WRKSRC}/drraw.conf ${WRKSRC}/drraw.conf-dist X @${REINPLACE_CMD} \ X -e 's|%%DATADIRS%%|${DATADIRS}|g' \ X -e 's|%%SAVEDDIR%%|${SAVEDDIR}|g' \ X -e 's|%%TMPDIR%%|${TMPDIR}|g' \ X ${WRKSRC}/drraw.conf-dist X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/drraw.conf-dist ${PREFIX}/${CONFDIR} X X ${MKDIR} ${PREFIX}/${WWWDIR}/${PORTNAME} X ${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${PREFIX}/${WWWDIR}/${PORTNAME} X X ${MKDIR} ${PREFIX}/${WWWDIR}/${PORTNAME}/icons X.for theFile in bomb.gif folder.gif folder.open.gif generic.gif link.gif text.gif unknown.gif X ${INSTALL_DATA} ${WRKSRC}/icons/${theFile} ${PREFIX}/${WWWDIR}/${PORTNAME}/icons X.endfor X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X. for theFile in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/${theFile} ${DOCSDIR} X. endfor X.endif X Xpost-install: X @if [ ! -f ${PREFIX}/etc/drraw.conf ];\ X then \ X ${CP} -p ${PREFIX}/etc/drraw.conf-dist ${PREFIX}/etc/drraw.conf; \ X fi X X.include <bsd.port.mk> END-of-drraw/Makefile echo x - drraw/distinfo sed 's/^X//' >drraw/distinfo << 'END-of-drraw/distinfo' XMD5 (drraw-2.1.3.tgz) = 99466034678b46784fcd4463882b6c8a XSHA256 (drraw-2.1.3.tgz) = c3290781426f81327632b4b0da80360882438f3d44cca81fdeaa3f9b22c3674e XSIZE (drraw-2.1.3.tgz) = 45970 END-of-drraw/distinfo echo x - drraw/pkg-descr sed 's/^X//' >drraw/pkg-descr << 'END-of-drraw/pkg-descr' Xdrraw is a simple web based presentation front-end for RRDtool that Xallows you to interactively build graphs of your own design. A graph Xdefinition can be turned into a template which may be applied to many XRound Robin Database files. drraw specializes in providing an easy Xmeans of displaying data stored with RRDtool and does not care about Xhow the data is collected, making it a great complement to other XRRDtool front-ends. X XWWW: http://web.taranis.org/drraw/ END-of-drraw/pkg-descr echo c - drraw/files mkdir -p drraw/files > /dev/null 2>&1 echo x - drraw/files/patch-drraw.cgi sed 's/^X//' >drraw/files/patch-drraw.cgi << 'END-of-drraw/files/patch-drraw.cgi' X--- drraw.cgi.orig Mon Jul 24 13:30:01 2006 X+++ drraw.cgi Mon Jul 24 13:31:42 2006 X@@ -49,7 +49,7 @@ X X # The configuration file is expected to be found in the same directory X # as drraw itself. You may customize this to be elsewhere. X-my $config = (dirname($0) =~ /(.*)/)[0] . "/drraw.conf"; # Untaint X+my $config = '%%CONFDIR%%/drraw.conf'; # Untaint X X ############################################################################### X ## STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP ## END-of-drraw/files/patch-drraw.cgi echo x - drraw/files/patch-drraw.conf sed 's/^X//' >drraw/files/patch-drraw.conf << 'END-of-drraw/files/patch-drraw.conf' X--- drraw.conf.orig Sat Nov 13 14:01:22 2004 X+++ drraw.conf Mon Jul 24 13:39:49 2006 X@@ -21,8 +21,7 @@ X # Directories where Round Robin Databases may be found X # They will be searched recursively for files matching *.rrd (Round Robin X # Database files) and *.evt (Event files). X-%datadirs = ('/here/are/some/files' => '[Label1] ', X- '/here/are/other/files' => '[Label2] ', X+%datadirs = (%%DATADIRS%% X ); X X # This function is used to sort *.rrd and *.evt filenames before displaying X@@ -69,8 +68,8 @@ X # These directories MUST EXIST and the user running CGI scripts must have X # read AND write access to them. It is entirely safe to delete any content X # found in the temporary directory. X-$saved_dir = '/somewhere/drraw/saved'; X-$tmp_dir = '/somewhere/drraw/tmp'; X+$saved_dir = '%%SAVEDDIR%%'; X+$tmp_dir = '%%TMPDIR%%'; X # By default, critical errors are shown in the produced HTML pages produced X # and sent to standard error (which web servers typically write to some X # logfile). If the following is defined, such errors will be written to X@@ -157,13 +156,13 @@ X # Icons used in the browser X # These may be copied from the drraw distribution if they are missing from X # your web server installation. X-#$icon_new = '/icons/generic.gif'; X-#$icon_closed = '/icons/folder.gif'; X-#$icon_open = '/icons/folder.open.gif'; X-#$icon_text = '/icons/text.gif'; X-#$icon_help = '/icons/unknown.gif'; X-#$icon_bug = '/icons/bomb.gif'; X-#$icon_link = '/icons/link.gif'; X+$icon_new = 'icons/generic.gif'; X+$icon_closed = 'icons/folder.gif'; X+$icon_open = 'icons/folder.open.gif'; X+$icon_text = 'icons/text.gif'; X+$icon_help = 'icons/unknown.gif'; X+$icon_bug = 'icons/bomb.gif'; X+$icon_link = 'icons/link.gif'; X X # Custom Style Sheet X # $CSS END-of-drraw/files/patch-drraw.conf echo x - drraw/pkg-plist sed 's/^X//' >drraw/pkg-plist << 'END-of-drraw/pkg-plist' X@comment $FreeBSD$ X@unexec if cmp -s %D/%%CONFDIR%%/drraw.conf-dist %D/%%CONFDIR%%/drraw.conf; then rm -f %D/%%CONFDIR%%/drraw.conf; fi X%%CONFDIR%%/drraw.conf-dist X@exec if [ ! -f %D/%%CONFDIR%%/drraw.conf ]; then cp -p %D/%F %B/drraw.conf; fi X%%WWWDIR%%/drraw/drraw.cgi X%%WWWDIR%%/drraw/icons/bomb.gif X%%WWWDIR%%/drraw/icons/folder.gif X%%WWWDIR%%/drraw/icons/folder.open.gif X%%WWWDIR%%/drraw/icons/generic.gif X%%WWWDIR%%/drraw/icons/link.gif X%%WWWDIR%%/drraw/icons/text.gif X%%WWWDIR%%/drraw/icons/unknown.gif X@dirrm %%WWWDIR%%/drraw/icons X@dirrm %%WWWDIR%%/drraw END-of-drraw/pkg-plist exit --- drraw-2.1.3.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060808165126.9F3C52235DD>