diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-14 19:46:20 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-14 19:46:20 +0800 |
commit | ffcad99fc8f98b9c87a3c6b9f9413b2205bc24e0 (patch) | |
tree | c87f7e634637f6e7634c8f30e6c0c7cbed6832f2 /net-mgmt | |
parent | d88ec929dfe29057404c65ba638b718bc6d77585 (diff) | |
download | freebsd-ports-gnome-ffcad99fc8f98b9c87a3c6b9f9413b2205bc24e0.tar.gz freebsd-ports-gnome-ffcad99fc8f98b9c87a3c6b9f9413b2205bc24e0.tar.zst freebsd-ports-gnome-ffcad99fc8f98b9c87a3c6b9f9413b2205bc24e0.zip |
Extensions of generic web-based frontend for the popular MRTG
systems monitoring software.
WWW: http://www.steveshipway.org/software/
PR: ports/106714
Submitted by: Xavier Beaudouin <kiwi at oav.net>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/Makefile | 46 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-ifrouter.cgi | 8 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-ifstatus.cgi | 17 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-ifswitch.cgi | 8 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-pdfreport.cgi | 24 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-routingtable.cgi | 17 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-showcfg.cgi | 17 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-tonagios.cgi | 17 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/files/patch-trend.cgi | 18 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/pkg-descr | 4 | ||||
-rw-r--r-- | net-mgmt/routers2-extensions/pkg-plist | 21 |
13 files changed, 201 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 4cfd3af526e5..fd4f877a24cb 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -183,6 +183,7 @@ SUBDIR += remarp SUBDIR += rotorouter SUBDIR += routers2 + SUBDIR += routers2-extensions SUBDIR += rubygem-snmp SUBDIR += satellite SUBDIR += scdp diff --git a/net-mgmt/routers2-extensions/Makefile b/net-mgmt/routers2-extensions/Makefile new file mode 100644 index 000000000000..e61e174a2c54 --- /dev/null +++ b/net-mgmt/routers2-extensions/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: routers2 +# Date created: December 14th 2006 +# Whom: Xavier Beaudouin <kiwi@oav.net> +# +# $FreeBSD$ +# + +PORTNAME= routers2-extensions +PORTVERSION= 2.17 +CATEGORIES= net-mgmt +MASTER_SITES= http://www.steveshipway.org/software/rrd/ \ + ftp://ftp.oav.oav.net/routers2/ +DISTNAME= routers2-v${PORTVERSION}a + +MAINTAINER= kiwi@oav.net +COMMENT= Extensions of routers2 frontend + +RUN_DEPENDS= ${LOCALBASE}/www/routers2/routers2.cgi:${PORTSDIR}/net-mgmt/routers2 \ + ${SITE_PERL}/Net/Telnet/Cisco.pm:${PORTSDIR}/net-mgmt/p5-Telnet-Cisco \ + ${LOCALBASE}/bin/htmldoc:${PORTSDIR}/textproc/htmldoc + +WRKSRC= ${WRKDIR}/routers2-v${PORTVERSION}/extensions + +USE_PERL5= YES + +NO_BUILD= YES + +post-patch: + for file in *.cgi ; do \ + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/$$file; \ + done + +do-install: + ${MKDIR} -m 755 ${PREFIX}/www/routers2/extensions + +.if !defined(NOPORTDOCS) + ${MKDIR} -m 755 ${DOCSDIR} + for file in README *.txt extension.cgi.pl; do \ + ${INSTALL_DATA} ${WRKSRC}/$$file ${DOCSDIR}; \ + done +.endif + for file in *.cgi; do \ + ${INSTALL_SCRIPT} ${WRKSRC}/$$file ${PREFIX}/www/routers2/extensions; \ + done + +.include <bsd.port.mk> diff --git a/net-mgmt/routers2-extensions/distinfo b/net-mgmt/routers2-extensions/distinfo new file mode 100644 index 000000000000..7d2d8539b328 --- /dev/null +++ b/net-mgmt/routers2-extensions/distinfo @@ -0,0 +1,3 @@ +MD5 (routers2-v2.17a.tar.gz) = 57e1542bca50940aa4b3908cc7ed5551 +SHA256 (routers2-v2.17a.tar.gz) = a8aa61db9969ebae2b56fe92184d045f03780a8c9412f99f48ecfed879d9703e +SIZE (routers2-v2.17a.tar.gz) = 383280 diff --git a/net-mgmt/routers2-extensions/files/patch-ifrouter.cgi b/net-mgmt/routers2-extensions/files/patch-ifrouter.cgi new file mode 100644 index 000000000000..52e039014f21 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-ifrouter.cgi @@ -0,0 +1,8 @@ +--- ifrouter.cgi.orig Wed Nov 16 03:06:47 2005 ++++ ifrouter.cgi Thu Dec 14 00:38:58 2006 +@@ -1,4 +1,4 @@ +-#!e:\perl\bin\perl ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # + # Brian Dietz + # brian.dietz@caremark.com diff --git a/net-mgmt/routers2-extensions/files/patch-ifstatus.cgi b/net-mgmt/routers2-extensions/files/patch-ifstatus.cgi new file mode 100644 index 000000000000..5a5e2806bb03 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-ifstatus.cgi @@ -0,0 +1,17 @@ +--- ifstatus.cgi.orig Thu Dec 14 00:39:56 2006 ++++ ifstatus.cgi Thu Dec 14 00:41:44 2006 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # vim:ts=4 + # ifstatus.pl v1.0 + # +@@ -27,7 +27,7 @@ + my($VERSION) = "v1.0"; + + # Variables +-my( $conffile ) = '/u01/etc/routers2.conf'; ++my( $conffile ) = '%%LOCALBASE%%/etc/routers2.conf'; + + my( $device, $community, $targetwindow, $target, $file, $backurl, $ifno ) + = ( "","","graph","","","",""); diff --git a/net-mgmt/routers2-extensions/files/patch-ifswitch.cgi b/net-mgmt/routers2-extensions/files/patch-ifswitch.cgi new file mode 100644 index 000000000000..3a923dc8e284 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-ifswitch.cgi @@ -0,0 +1,8 @@ +--- ifswitch.cgi.orig Thu Dec 14 00:43:22 2006 ++++ ifswitch.cgi Thu Dec 14 00:44:22 2006 +@@ -1,4 +1,4 @@ +-#!e:\perl\bin\perl ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # + # Brian Dietz + # brian.dietz@caremark.com diff --git a/net-mgmt/routers2-extensions/files/patch-pdfreport.cgi b/net-mgmt/routers2-extensions/files/patch-pdfreport.cgi new file mode 100644 index 000000000000..29a2957a9ae6 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-pdfreport.cgi @@ -0,0 +1,24 @@ +--- pdfreport.cgi.orig Thu Dec 14 00:46:13 2006 ++++ pdfreport.cgi Thu Dec 14 00:48:43 2006 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl -w ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # vim:ts=4 + # pdfreport.cgi + # +@@ -13,11 +13,11 @@ + require 5.006; + + # Configure here +-my( $HTMLDOC ) = "/usr/bin/htmldoc"; # location of htmldoc executable +-my( $ROUTERSCGI ) = "/u01/www/cgi-bin/routers2.cgi"; # location of routers2.cgi ++my( $HTMLDOC ) = "%%LOCALBASE%%/bin/htmldoc"; # location of htmldoc executable ++my( $ROUTERSCGI ) = "%%LOCALBASE%%/www/routers2/routers2.cgi"; # location of routers2.cgi + my( $WORKDIR ) = "/tmp"; # temporary work directory +-my( $WEBROOT ) = "/u01/www/html"; # docroot for your web server +-my( $CONFPATH ) = "/u01/mrtg/conf"; # default path for cfg files ++my( $WEBROOT ) = "%%LOCALBASE%%/www/data"; # docroot for your web server ++my( $CONFPATH ) = "%%LOCALBASE%%/etc@/mrtg"; # default path for cfg files + my( $VERSION ) = "1.3"; + + # Variables diff --git a/net-mgmt/routers2-extensions/files/patch-routingtable.cgi b/net-mgmt/routers2-extensions/files/patch-routingtable.cgi new file mode 100644 index 000000000000..d704ad1628b8 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-routingtable.cgi @@ -0,0 +1,17 @@ +--- routingtable.cgi.orig Thu Dec 14 00:56:50 2006 ++++ routingtable.cgi Thu Dec 14 00:57:29 2006 +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl -w ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # CHANGE ABOVE PATH TO MATCH YOUR PERL LOCATION! You may remove the -w + ##############################################################################. + # routingtable.cgi : Version v1.5 +@@ -21,7 +21,7 @@ + ##############################################################################. + use strict; + use CGI; # for CGI +-#use Net::SNMP; # ActivePerl users may need this uncommented ++use Net::SNMP; # ActivePerl users may need this uncommented + ##############################################################################. + my ($VERSION) = "v1.5"; + my ($APPURL ) = "http://www.steveshipway.org/software/"; diff --git a/net-mgmt/routers2-extensions/files/patch-showcfg.cgi b/net-mgmt/routers2-extensions/files/patch-showcfg.cgi new file mode 100644 index 000000000000..e7b7ee5f8732 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-showcfg.cgi @@ -0,0 +1,17 @@ +--- showcfg.cgi.orig Thu Dec 14 00:58:09 2006 ++++ showcfg.cgi Thu Dec 14 00:58:54 2006 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # + # showcfg.cgi + # +@@ -11,7 +11,7 @@ + use CGI; + + # Variables +-my( $confpath ) = "/home/stevesh/public_html/mrtg/conf/"; ++my( $confpath ) = "%%LOCALBASE%%/etc/mrtg/"; + my( $device, $community, $targetwindow, $target, $file, $backurl ) + = ( "","public","graph","","",""); + my( $conffile ); diff --git a/net-mgmt/routers2-extensions/files/patch-tonagios.cgi b/net-mgmt/routers2-extensions/files/patch-tonagios.cgi new file mode 100644 index 000000000000..f5715eaa132a --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-tonagios.cgi @@ -0,0 +1,17 @@ +--- tonagios.cgi.orig Thu Dec 14 01:00:19 2006 ++++ tonagios.cgi Thu Dec 14 01:00:58 2006 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # + # tonagios.cgi + # +@@ -8,7 +8,7 @@ + use CGI; + + # configure here: Nagios status.cgi URL (or use extinfo.cgi instead) +-my( $NAGIOS ) = "http://nagios.auckland.ac.nz/nagios/cgi-bin/status.cgi"; ++my( $NAGIOS ) = "http://changeme/nagios/cgi-bin/status.cgi"; + + # Variables + my( $device, $community, $targetwindow, $target, $file, $backurl ) diff --git a/net-mgmt/routers2-extensions/files/patch-trend.cgi b/net-mgmt/routers2-extensions/files/patch-trend.cgi new file mode 100644 index 000000000000..5269990dd493 --- /dev/null +++ b/net-mgmt/routers2-extensions/files/patch-trend.cgi @@ -0,0 +1,18 @@ +--- trend.cgi.orig Thu Dec 14 01:07:06 2006 ++++ trend.cgi Thu Dec 14 01:08:21 2006 +@@ -1,5 +1,4 @@ +-#!/usr/bin/perl +-##!/usr/bin/speedy ++#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500 + # vim:ts=4 + # trend.cgi + # Generate a trending graph, based on yearly data, for the specified +@@ -67,7 +66,7 @@ + my( $BASE ) = 0; # 0=current, 1=average + my( $device, $community, $targetwindow, $target, $file, $backurl ) + = ( "","public","graph","","",""); +-my( $conffile ) = "/u01/etc/routers2.conf"; # overridden by passed parameters ++my( $conffile ) = "%%LOCALBASE%%/etc/routers2.conf"; # overridden by passed parameters + my( $routersurl ) = ''; + my( $q ) = new CGI; + my( %headeropts ) = (); diff --git a/net-mgmt/routers2-extensions/pkg-descr b/net-mgmt/routers2-extensions/pkg-descr new file mode 100644 index 000000000000..cc78a98d283a --- /dev/null +++ b/net-mgmt/routers2-extensions/pkg-descr @@ -0,0 +1,4 @@ +Extensions of generic web-based frontend for the popular MRTG +systems monitoring software. + +WWW: http://www.steveshipway.org/software/ diff --git a/net-mgmt/routers2-extensions/pkg-plist b/net-mgmt/routers2-extensions/pkg-plist new file mode 100644 index 000000000000..bc585adb078a --- /dev/null +++ b/net-mgmt/routers2-extensions/pkg-plist @@ -0,0 +1,21 @@ +www/routers2/extensions/ifrouter.cgi +www/routers2/extensions/ifstatus.cgi +www/routers2/extensions/ifswitch.cgi +www/routers2/extensions/pdfreport.cgi +www/routers2/extensions/routingtable.cgi +www/routers2/extensions/showcfg.cgi +www/routers2/extensions/tonagios.cgi +www/routers2/extensions/trend.cgi +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/extension.cgi.pl +%%PORTDOCS%%%%DOCSDIR%%/extension.txt +%%PORTDOCS%%%%DOCSDIR%%/ifrouter.txt +%%PORTDOCS%%%%DOCSDIR%%/ifstatus.txt +%%PORTDOCS%%%%DOCSDIR%%/ifswitch.txt +%%PORTDOCS%%%%DOCSDIR%%/pdfreport.txt +%%PORTDOCS%%%%DOCSDIR%%/routingtable.txt +%%PORTDOCS%%%%DOCSDIR%%/showcfg.txt +%%PORTDOCS%%%%DOCSDIR%%/tonagios.txt +%%PORTDOCS%%%%DOCSDIR%%/trend.txt +@dirrm www/routers2/extensions +%%PORTDOCS%%@dirrm %%DOCSDIR%% |