Date: Mon, 10 Jan 2011 14:40:12 +0800 (CST) From: Hsin-Han You <hhyou@cs.nctu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/153835: [NEW PORT] net-mgmt/phpweathermap: A network visualisation tool with web editor Message-ID: <201101100640.p0A6eCZx008392@alumni.cs.nctu.edu.tw> Resent-Message-ID: <201101100650.p0A6o77P093397@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 153835 >Category: ports >Synopsis: [NEW PORT] net-mgmt/phpweathermap: A network visualisation tool with web editor >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: Mon Jan 10 06:50:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Hsin-Han You >Release: FreeBSD 8.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD alumni.cs.nctu.edu.tw 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 >Description: Weathermap is a network visualisation tool, to take data you already have and show you an overview of your network in map form. WWW: http://www.network-weathermap.com/ Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- phpweathermap-0.97a.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: # # phpweathermap # phpweathermap/files # phpweathermap/files/patch-editor.php # phpweathermap/files/patch-weathermap # phpweathermap/files/pkg-message.in # phpweathermap/pkg-plist # phpweathermap/pkg-descr # phpweathermap/distinfo # phpweathermap/Makefile # echo c - phpweathermap mkdir -p phpweathermap > /dev/null 2>&1 echo c - phpweathermap/files mkdir -p phpweathermap/files > /dev/null 2>&1 echo x - phpweathermap/files/patch-editor.php sed 's/^X//' >phpweathermap/files/patch-editor.php << '51e5492be2edfd618f5c310ccf216d8e' X--- editor.php.orig 2011-01-06 16:39:40.000000000 +0800 X+++ editor.php 2011-01-07 21:38:39.000000000 +0800 X@@ -1,10 +1,10 @@ X <?php X X require_once 'editor.inc.php'; X-require_once 'Weathermap.class.php'; X+require_once '%%DATADIR%%/Weathermap.class.php'; X X // so that you can't have the editor active, and not know about it. X-$ENABLED=false; X+$ENABLED=true; X X if(! $ENABLED) X { X@@ -17,7 +17,7 @@ X $mapdir='configs'; X $cacti_base = '../../'; X $cacti_url = '/'; X-$ignore_cacti=FALSE; X+$ignore_cacti=true; X $configerror = ''; X X $config_loaded = @include_once 'editor-config.php'; 51e5492be2edfd618f5c310ccf216d8e echo x - phpweathermap/files/patch-weathermap sed 's/^X//' >phpweathermap/files/patch-weathermap << '6e4da92d3b93922b0ec777f516c1741d' X--- weathermap.orig 2011-01-06 16:39:47.000000000 +0800 X+++ weathermap 2011-01-07 21:24:30.000000000 +0800 X@@ -1,20 +1,20 @@ X-#!/usr/bin/php X+#!%%PREFIX%%/bin/php X <?php X X // PHP Weathermap 0.97a X // Copyright Howard Jones, 2005-2009 howie@thingy.com X // http://www.network-weathermap.com/ X // Released under the GNU Public License X-require_once 'Console/Getopt.php'; X+require_once '%%PREFIX%%/share/pear/Console/Getopt.php'; X X-require_once "Weathermap.class.php"; X+require_once "%%DATADIR%%/Weathermap.class.php"; X X if (!module_checks()) { die ("Quitting: Module checks failed.\n"); } X X // $weathermap_debugging=TRUE; X X $output="html"; X-$configfile="weathermap.conf"; X+$configfile="%%DATADIR%%/weathermap.conf"; X $htmlfile=''; X $imagefile=''; X $dumpafter=0; X@@ -25,7 +25,7 @@ X X // ************************************************************************************** X // THIS IS THE ONE LINE IN HERE YOU MIGHT HAVE TO CHANGE! X-$rrdtool="/usr/bin/rrdtool"; X+$rrdtool="%%PREFIX%%/bin/rrdtool"; X // (on Windows, use / instead of \ in pathnames - c:/rrdtool/bin/rrdtool.exe for example) X // ************************************************************************************** X 6e4da92d3b93922b0ec777f516c1741d echo x - phpweathermap/files/pkg-message.in sed 's/^X//' >phpweathermap/files/pkg-message.in << '393a89259609644f33c185d858fa677f' X X*************************************************************** XNow you need to adjust PHP's include_path to contain X `%%DATADIR%%/lib' X XFor example, insert: X include_path = ".:%%DATADIR%%/lib" X Xinto `%%LOCALBASE%%/etc/php.ini'. X XRemember to change the permission of output dir Xif you wish to use the web editor interface. X XFor more general information about the PHP Network Weathermap, Xplease visit: http://www.network-weathermap.com/ X*************************************************************** 393a89259609644f33c185d858fa677f echo x - phpweathermap/pkg-plist sed 's/^X//' >phpweathermap/pkg-plist << 'f1f1e65fb773e65c31f5886b6f565969' X@comment $FreeBSD$ Xbin/phpweathermap X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/auto-overlib.pl X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/bristle.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/cacti-integrate.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/cacti-mapper.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/map-split.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/suite-1.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/suite-1.png X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/suite-2.conf X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/random-bits/suite-2.png X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/random-bits X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% X%%DATADIR%%/HTML_ImageMap.class.php X%%DATADIR%%/WeatherMap.functions.php X%%DATADIR%%/WeatherMapLink.class.php X%%DATADIR%%/WeatherMapNode.class.php X%%DATADIR%%/Weathermap.class.php X%%DATADIR%%/weathermap.conf X%%DATADIR%%/lib/.htaccess X%%DATADIR%%/lib/datasources/README.txt X%%DATADIR%%/lib/datasources/WeatherMapDataSource_cactihost.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_cactithold.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_dbsample.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_dsstats.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_external.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_fping.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_mrtg.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_rrd.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_skeleton.php.txt X%%DATADIR%%/lib/datasources/WeatherMapDataSource_snmp.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_static.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_tabfile.php X%%DATADIR%%/lib/datasources/WeatherMapDataSource_time.php X%%DATADIR%%/lib/ds-common.php X%%DATADIR%%/lib/index.php X%%DATADIR%%/lib/poller-common.php X%%DATADIR%%/lib/post/WeatherMapPostProcessorTest.php X%%DATADIR%%/lib/pre/WeatherMapPreProcessorTest.php X%%DATADIR%%/www/docs/example/Gradient_BK_800.png X%%DATADIR%%/www/docs/example/Vera.ttf X%%DATADIR%%/www/docs/example/VeraBI.ttf X%%DATADIR%%/www/docs/example/VeraBd.ttf X%%DATADIR%%/www/docs/example/VeraIt.ttf X%%DATADIR%%/www/docs/example/VeraMoBI.ttf X%%DATADIR%%/www/docs/example/VeraMoBd.ttf X%%DATADIR%%/www/docs/example/VeraMoIt.ttf X%%DATADIR%%/www/docs/example/VeraMono.ttf X%%DATADIR%%/www/docs/example/VeraSe.ttf X%%DATADIR%%/www/docs/example/VeraSeBd.ttf X%%DATADIR%%/www/docs/example/background.png X%%DATADIR%%/www/docs/example/example.conf X%%DATADIR%%/www/docs/example/example.html X%%DATADIR%%/www/docs/example/example.png X%%DATADIR%%/www/docs/example/graph_image.png X%%DATADIR%%/www/docs/example/graph_page.html X%%DATADIR%%/www/docs/example/my_router.png X%%DATADIR%%/www/docs/example/overlib.js X%%DATADIR%%/www/docs/howto.pdf X%%DATADIR%%/www/docs/howto.png X%%DATADIR%%/www/docs/images/arrowstyle-classic.png X%%DATADIR%%/www/docs/images/arrowstyle-compact.png X%%DATADIR%%/www/docs/images/bwstyle-angled.png X%%DATADIR%%/www/docs/images/bwstyle-classic.png X%%DATADIR%%/www/docs/images/cacti_mainscreen.png X%%DATADIR%%/www/docs/images/cacti_maps_manage.png X%%DATADIR%%/www/docs/images/cacti_step1.png X%%DATADIR%%/www/docs/images/cacti_step2.png X%%DATADIR%%/www/docs/images/cacti_user_manage.png X%%DATADIR%%/www/docs/images/cacti_wmap_settings.png X%%DATADIR%%/www/docs/images/commentstyle-center.png X%%DATADIR%%/www/docs/images/commentstyle-edge.png X%%DATADIR%%/www/docs/images/compass-points.png X%%DATADIR%%/www/docs/images/contrast.png X%%DATADIR%%/www/docs/images/font-sizes.png X%%DATADIR%%/www/docs/images/howto-thumb.jpg X%%DATADIR%%/www/docs/images/keystyle-classic.png X%%DATADIR%%/www/docs/images/keystyle-horizontal.png X%%DATADIR%%/www/docs/images/keystyle-inverted.png X%%DATADIR%%/www/docs/images/keystyle-tags.png X%%DATADIR%%/www/docs/images/keystyle-vertical.png X%%DATADIR%%/www/docs/images/labelangle+labeloffset.png X%%DATADIR%%/www/docs/images/link-comments.png X%%DATADIR%%/www/docs/images/linkoffset-defaults.png X%%DATADIR%%/www/docs/images/linkoffset-east50west50.png X%%DATADIR%%/www/docs/images/linkoffset-eastwest.png X%%DATADIR%%/www/docs/images/linkoffset-parallel.png X%%DATADIR%%/www/docs/images/linkoffset-radial.png X%%DATADIR%%/www/docs/images/viastyle-angled.png X%%DATADIR%%/www/docs/images/viastyle-curved.png X%%DATADIR%%/www/docs/images/weathermap-example.png X%%DATADIR%%/www/docs/images/weathermap-mini.png X%%DATADIR%%/www/docs/index.html X%%DATADIR%%/www/docs/pages/advanced.html X%%DATADIR%%/www/docs/pages/cacti-plugin.html X%%DATADIR%%/www/docs/pages/changes.html X%%DATADIR%%/www/docs/pages/cli-reference.html X%%DATADIR%%/www/docs/pages/config-reference.html X%%DATADIR%%/www/docs/pages/editor.html X%%DATADIR%%/www/docs/pages/errorcodes.html X%%DATADIR%%/www/docs/pages/faq.html X%%DATADIR%%/www/docs/pages/install-cacti-editor.html X%%DATADIR%%/www/docs/pages/install-cacti.html X%%DATADIR%%/www/docs/pages/install-cli-editor.html X%%DATADIR%%/www/docs/pages/install-cli.html X%%DATADIR%%/www/docs/pages/main.html X%%DATADIR%%/www/docs/pages/targets.html X%%DATADIR%%/www/docs/pages/upgrading.html X%%DATADIR%%/www/docs/pages/weathermap.css X%%DATADIR%%/www/editor-config.php-dist X%%DATADIR%%/www/editor-resources/jquery-latest.min.js X%%DATADIR%%/www/editor.css X%%DATADIR%%/www/editor.inc.php X%%DATADIR%%/www/editor.js X%%DATADIR%%/www/editor.php X%%DATADIR%%/www/images/Cloud-Filled.png X%%DATADIR%%/www/images/Cloud-line.png X%%DATADIR%%/www/images/Firewall.png X%%DATADIR%%/www/images/HPMini.png X%%DATADIR%%/www/images/Host.png X%%DATADIR%%/www/images/PAD.png X%%DATADIR%%/www/images/Router.png X%%DATADIR%%/www/images/WorkgroupSwitch.png X%%DATADIR%%/www/images/application.png X%%DATADIR%%/www/images/application_side_list.png X%%DATADIR%%/www/images/application_xp_terminal.png X%%DATADIR%%/www/images/background1_950x625_197.jpg X%%DATADIR%%/www/images/blue-ball-64.png X%%DATADIR%%/www/images/blueboard1024.png X%%DATADIR%%/www/images/btn_recalc.png X%%DATADIR%%/www/images/button_editgroups.png X%%DATADIR%%/www/images/button_settings.gif X%%DATADIR%%/www/images/bw_gradient_1024.png X%%DATADIR%%/www/images/comment.png X%%DATADIR%%/www/images/cross.png X%%DATADIR%%/www/images/emoticon_smile.png X%%DATADIR%%/www/images/emoticon_unhappy.png X%%DATADIR%%/www/images/error.png X%%DATADIR%%/www/images/exclamation.png X%%DATADIR%%/www/images/filecabinet.png X%%DATADIR%%/www/images/flag_blue.png X%%DATADIR%%/www/images/flag_green.png X%%DATADIR%%/www/images/flag_orange.png X%%DATADIR%%/www/images/flag_pink.png X%%DATADIR%%/www/images/flag_purple.png X%%DATADIR%%/www/images/flag_yellow.png X%%DATADIR%%/www/images/green-ball-64.png X%%DATADIR%%/www/images/grey-ball-64.png X%%DATADIR%%/www/images/hollow32.png X%%DATADIR%%/www/images/index.php X%%DATADIR%%/www/images/monitor.png X%%DATADIR%%/www/images/page_white.png X%%DATADIR%%/www/images/red-ball-64.png X%%DATADIR%%/www/images/s_tab_weathermap.gif X%%DATADIR%%/www/images/s_tab_weathermap_red.gif X%%DATADIR%%/www/images/tab_weathermap.gif X%%DATADIR%%/www/images/tab_weathermap_red.gif X%%DATADIR%%/www/images/tick.png X%%DATADIR%%/www/images/uk1024.png X%%DATADIR%%/www/images/updown_0.png X%%DATADIR%%/www/images/updown_1.png X%%DATADIR%%/www/images/updown_2.png X%%DATADIR%%/www/images/world.png X%%DATADIR%%/www/images/world_link.png X%%DATADIR%%/www/images/wrench.png X%%DATADIR%%/www/images/wrench_orange.png X%%DATADIR%%/www/images/yellow-ball-64.png X%%DATADIR%%/www/overlib.js X@dirrm %%DATADIR%%/www/images X@dirrm %%DATADIR%%/www/editor-resources X@dirrm %%DATADIR%%/www/docs/pages X@dirrm %%DATADIR%%/www/docs/images X@dirrm %%DATADIR%%/www/docs/example X@dirrm %%DATADIR%%/www/docs X@dirrm %%DATADIR%%/www/configs X@dirrm %%DATADIR%%/www X@dirrm %%DATADIR%%/lib/pre X@dirrm %%DATADIR%%/lib/post X@dirrm %%DATADIR%%/lib/datasources X@dirrm %%DATADIR%%/lib X@dirrm %%DATADIR%% f1f1e65fb773e65c31f5886b6f565969 echo x - phpweathermap/pkg-descr sed 's/^X//' >phpweathermap/pkg-descr << 'fd48107b08de9bdb391737f3a1884d76' XWeathermap is a network visualisation tool, to take data Xyou already have and show you an overview of your network in map form. X XWWW: http://www.network-weathermap.com/ fd48107b08de9bdb391737f3a1884d76 echo x - phpweathermap/distinfo sed 's/^X//' >phpweathermap/distinfo << '943bb55d8610c138ae79e956495c46fc' XSHA256 (php-weathermap-0.97a.zip) = 5b0c448e2027e22a6cacc3a07871e8b3d05f7c927ae3933a9c50a5332d029ea5 XSIZE (php-weathermap-0.97a.zip) = 2927302 943bb55d8610c138ae79e956495c46fc echo x - phpweathermap/Makefile sed 's/^X//' >phpweathermap/Makefile << '3e6116765bac22cd5c6b0c85357f9684' X# New ports collection makefile for: phpweathermap X# Date created: 2011-01-06 X# Whom: Hsin-Han You <hhyou@cs.nctu.edu.tw> X# X# $FreeBSD$ X# X XPORTNAME= phpweathermap XPORTVERSION= 0.97a XCATEGORIES= net-mgmt www XMASTER_SITES= http://www.network-weathermap.com/files/ XDISTNAME= php-weathermap-${PORTVERSION} X XMAINTAINER= hhyou@cs.nctu.edu.tw XCOMMENT= A network visualisation tool with web editor X XRUN_DEPENDS= ${LOCALBASE}/share/pear/Console/Getopt.php:${PORTSDIR}/devel/pear \ X rrdtool:${PORTSDIR}/databases/rrdtool X XNO_BUILD= yes XUSE_ZIP= yes XUSE_PHP= gd XWANT_PHP_WEB= yes XWANT_PHP_CLI= yes X XLICENSE= GPLv2 X XWM_FILES= HTML_ImageMap.class.php WeatherMap.functions.php \ X WeatherMapLink.class.php WeatherMapNode.class.php \ X Weathermap.class.php weathermap.conf X XWM_WWW_FILES= overlib.js editor-config.php-dist editor.css \ X editor.inc.php editor.js editor.php X XWM_WWW_DIRS= editor-resources images docs X XPORTDOCS= CHANGES COPYING README XWRKSRC= ${WRKDIR}/weathermap X XSUB_FILES= pkg-message X X.include <bsd.port.pre.mk> Xpost-patch: X ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/editor.php X ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ X -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/weathermap X# ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/editor.php X Xdo-install: X @${MKDIR} ${DATADIR}/www/configs X @${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${PREFIX}/bin/phpweathermap X @for i in ${WM_FILES}; do \ X ${INSTALL_DATA} ${WRKSRC}/$$i ${DATADIR}/$$i; \ X done X @for i in ${WM_WWW_FILES}; do \ X ${INSTALL_DATA} ${WRKSRC}/$$i ${DATADIR}/www/$$i; \ X done X @${CP} -R ${WRKSRC}/lib ${DATADIR} X @(cd ${WRKSRC} && ${COPYTREE_SHARE} "${WM_WWW_DIRS}" ${DATADIR}/www) X @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}/www X.if !defined(NOPORTEXAMPLES) X @(cd ${WRKSRC} && ${COPYTREE_SHARE} "random-bits" ${EXAMPLESDIR}) X @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ X ${EXAMPLESDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} X @${FIND} ${EXAMPLESDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 X @${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type f -print0 | \ X ${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST} X @${FIND} ${EXAMPLESDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755 X @${ECHO_CMD} '@exec ${FIND} ${EXAMPLESDIR} -type d -print0 | \ X ${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST} X.endif X Xpost-install: X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} X.endif X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> 3e6116765bac22cd5c6b0c85357f9684 exit --- phpweathermap-0.97a.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?201101100640.p0A6eCZx008392>