# 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/CVS # drraw/CVS/Root # drraw/CVS/Repository # drraw/CVS/Entries # drraw/CVS/Template # drraw/files # drraw/files/CVS # drraw/files/CVS/Root # drraw/files/CVS/Repository # drraw/files/CVS/Entries # drraw/files/patch-drraw.cgi # drraw/files/patch-drraw.conf # drraw/Makefile # drraw/distinfo # drraw/pkg-descr # drraw/pkg-plist # echo c - drraw mkdir -p drraw > /dev/null 2>&1 echo c - drraw/CVS mkdir -p drraw/CVS > /dev/null 2>&1 echo x - drraw/CVS/Root sed 's/^X//' >drraw/CVS/Root << 'END-of-drraw/CVS/Root' Xlaszlof@pcvs.FreeBSD.org:/home/pcvs END-of-drraw/CVS/Root echo x - drraw/CVS/Repository sed 's/^X//' >drraw/CVS/Repository << 'END-of-drraw/CVS/Repository' Xports/www/drraw END-of-drraw/CVS/Repository echo x - drraw/CVS/Entries sed 's/^X//' >drraw/CVS/Entries << 'END-of-drraw/CVS/Entries' X/Makefile/1.1/Wed Sep 13 10:35:59 2006// X/distinfo/1.1/Wed Sep 13 10:35:59 2006// X/pkg-descr/1.1/Wed Sep 13 10:35:59 2006// X/pkg-plist/1.1/Wed Sep 13 10:35:59 2006// XD/files//// END-of-drraw/CVS/Entries echo x - drraw/CVS/Template sed 's/^X//' >drraw/CVS/Template << 'END-of-drraw/CVS/Template' X XPR: XSubmitted by: XReviewed by: XApproved by: XObtained from: XMFC after: XSecurity: XCVS: ---------------------------------------------------------------------- XCVS: PR: Fill this in if a GNATS PR is affected by the change. XCVS: Submitted by: Fill this in if someone else sent in the change. XCVS: Reviewed by: Fill this in if someone else reviewed your modification. XCVS: Approved by: Fill this in if you needed approval for this commit. XCVS: Obtained from: Fill this in if the change is from third party software. XCVS: MFC after: N [day[s]|week[s]|month[s]] XCVS: Fill in to get MFC notification later. (days assumed unless specified) XCVS: Security: vulnerability reference or description XCVS: If the change is related to a security vulnerability, include one or XCVS: more references (e.g. CVE names, VuXML IDs, URLs) or a description XCVS: of the issue. Please use one `Security:' entry per reference. END-of-drraw/CVS/Template echo c - drraw/files mkdir -p drraw/files > /dev/null 2>&1 echo c - drraw/files/CVS mkdir -p drraw/files/CVS > /dev/null 2>&1 echo x - drraw/files/CVS/Root sed 's/^X//' >drraw/files/CVS/Root << 'END-of-drraw/files/CVS/Root' Xlaszlof@pcvs.FreeBSD.org:/home/pcvs END-of-drraw/files/CVS/Root echo x - drraw/files/CVS/Repository sed 's/^X//' >drraw/files/CVS/Repository << 'END-of-drraw/files/CVS/Repository' Xports/www/drraw/files END-of-drraw/files/CVS/Repository echo x - drraw/files/CVS/Entries sed 's/^X//' >drraw/files/CVS/Entries << 'END-of-drraw/files/CVS/Entries' X/patch-drraw.cgi/1.1/Wed Sep 13 10:35:59 2006// X/patch-drraw.conf/1.1/Wed Sep 13 10:35:59 2006// XD END-of-drraw/files/CVS/Entries 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/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 X# X# $FreeBSD: ports/www/drraw/Makefile,v 1.1 2006/09/13 10:35:59 miwi Exp $ 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 XCONFDIR?= etc XDATADIRS?= "/var/db/rrdtool" => "[Label1] " XSAVEDDIR?= /var/db/${PORTNAME}/saved XTMPDIR?= /var/db/${PORTNAME}/tmp X XPLIST_SUB+= 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} ${WWWDIR} X ${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${WWWDIR} X X ${MKDIR} ${WWWDIR}/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} ${WWWDIR}/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 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 x - drraw/pkg-plist sed 's/^X//' >drraw/pkg-plist << 'END-of-drraw/pkg-plist' X@comment $FreeBSD: ports/www/drraw/pkg-plist,v 1.1 2006/09/13 10:35:59 miwi Exp $ 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.cgi X%%WWWDIR%%/icons/bomb.gif X%%WWWDIR%%/icons/folder.gif X%%WWWDIR%%/icons/folder.open.gif X%%WWWDIR%%/icons/generic.gif X%%WWWDIR%%/icons/link.gif X%%WWWDIR%%/icons/text.gif X%%WWWDIR%%icons/unknown.gif X@dirrm %%WWWDIR%%/icons X@dirrm %%WWWDIR%% END-of-drraw/pkg-plist exit