View | Details | Raw Unified | Return to bug 206902 | Differences between
and this patch

Collapse All | Expand All

(-)../../home/pi/myp/net-mgmt/routers2-extensions/Makefile (-3 / +5 lines)
Lines 2-9 Link Here
2
# $FreeBSD: head/net-mgmt/routers2-extensions/Makefile 395483 2015-08-28 13:39:56Z amdmi3 $
2
# $FreeBSD: head/net-mgmt/routers2-extensions/Makefile 395483 2015-08-28 13:39:56Z amdmi3 $
3
3
4
PORTNAME=	routers2-extensions
4
PORTNAME=	routers2-extensions
5
PORTVERSION=	2.19
5
PORTVERSION=	2.23
6
PORTREVISION=	2
7
CATEGORIES=	net-mgmt
6
CATEGORIES=	net-mgmt
8
MASTER_SITES=	http://www.steveshipway.org/software/rrd/ \
7
MASTER_SITES=	http://www.steveshipway.org/software/rrd/ \
9
		ftp://ftp.oav.oav.net/routers2/
8
		ftp://ftp.oav.oav.net/routers2/
Lines 18-24 Link Here
18
17
19
WRKSRC=		${WRKDIR}/routers2-v${PORTVERSION}/extensions
18
WRKSRC=		${WRKDIR}/routers2-v${PORTVERSION}/extensions
20
19
21
USES=		perl5
20
USES=		perl5 shebangfix
21
SHEBANG_FILES=	trend.cgi \
22
		showcfg.cgi \
23
		tonagios.cgi
22
24
23
NO_BUILD=	YES
25
NO_BUILD=	YES
24
NO_ARCH=	yes
26
NO_ARCH=	yes
(-)../../home/pi/myp/net-mgmt/routers2-extensions/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (routers2-v2.19.tar.gz) = 6763b5a039780d42a5f7b222cf4b90922fd3cd78787c8e36028a923142b0cacb
1
SHA256 (routers2-v2.23.tar.gz) = bb1d98648afa11e487724069f0a160b4414cffa9ab1db412573db8e7a66fb4dd
2
SIZE (routers2-v2.19.tar.gz) = 411136
2
SIZE (routers2-v2.23.tar.gz) = 707749
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-ifrouter.cgi (-2 / +2 lines)
Lines 1-5 Link Here
1
--- ifrouter.cgi.orig	Wed Nov 16 03:06:47 2005
1
--- ifrouter.cgi.orig	2012-09-19 02:32:33 UTC
2
+++ ifrouter.cgi	Thu Dec 14 00:38:58 2006
2
+++ ifrouter.cgi
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-#!e:\perl\bin\perl
4
-#!e:\perl\bin\perl
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-ifstatus.cgi (-3 / +3 lines)
Lines 1-12 Link Here
1
--- ifstatus.cgi.orig	Thu Dec 14 00:39:56 2006
1
--- ifstatus.cgi.orig	2012-09-19 02:32:33 UTC
2
+++ ifstatus.cgi	Thu Dec 14 00:41:44 2006
2
+++ ifstatus.cgi
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/perl
4
-#!/usr/bin/perl
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
6
 # vim:ts=4
6
 # vim:ts=4
7
 # ifstatus.pl v1.0
7
 # ifstatus.pl v1.0
8
 #
8
 #
9
@@ -27,7 +27,7 @@
9
@@ -25,7 +25,7 @@ use Net::SNMP;
10
 my($VERSION) = "v1.0";
10
 my($VERSION) = "v1.0";
11
 
11
 
12
 # Variables
12
 # Variables
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-ifswitch.cgi (-2 / +2 lines)
Lines 1-5 Link Here
1
--- ifswitch.cgi.orig	Thu Dec 14 00:43:22 2006
1
--- ifswitch.cgi.orig	2012-09-19 02:32:33 UTC
2
+++ ifswitch.cgi	Thu Dec 14 00:44:22 2006
2
+++ ifswitch.cgi
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-#!e:\perl\bin\perl
4
-#!e:\perl\bin\perl
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-pdfreport.cgi (-5 / +5 lines)
Lines 1-12 Link Here
1
--- pdfreport.cgi.orig	Thu Dec 14 00:46:13 2006
1
--- pdfreport.cgi.orig	2012-09-19 02:32:33 UTC
2
+++ pdfreport.cgi	Thu Dec 14 00:48:43 2006
2
+++ pdfreport.cgi
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/perl -w
4
-#!/usr/bin/perl -w
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
6
 # vim:ts=4
6
 # vim:ts=4
7
 # pdfreport.cgi
7
 # pdfreport.cgi
8
 #
8
 #
9
@@ -13,11 +13,11 @@
9
@@ -13,11 +13,11 @@ use FileHandle;
10
 require 5.006;
10
 require 5.006;
11
 
11
 
12
 # Configure here
12
 # Configure here
Lines 19-24 Link Here
19
-my( $CONFPATH ) = "/u01/mrtg/conf";  # default path for cfg files
19
-my( $CONFPATH ) = "/u01/mrtg/conf";  # default path for cfg files
20
+my( $WEBROOT ) = "%%LOCALBASE%%/www/data";    # docroot for your web server
20
+my( $WEBROOT ) = "%%LOCALBASE%%/www/data";    # docroot for your web server
21
+my( $CONFPATH ) = "%%LOCALBASE%%/etc@/mrtg";  # default path for cfg files
21
+my( $CONFPATH ) = "%%LOCALBASE%%/etc@/mrtg";  # default path for cfg files
22
 my( $VERSION ) = "1.3";
22
 my( $VERSION ) = "1.6";
23
 my( $DWMY ) = "my";                  # set to dw for short term graphs
23
 
24
 
24
 # Variables
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-routingtable.cgi (-8 lines)
Lines 1-8 Link Here
1
--- routingtable.cgi.orig	2008-11-06 11:49:06.000000000 +0100
2
+++ routingtable.cgi	2008-11-06 11:49:39.000000000 +0100
3
@@ -1,4 +1,4 @@
4
-#!/usr/local/bin/perl -w
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
6
 # CHANGE ABOVE PATH TO MATCH YOUR PERL LOCATION! You may remove the -w
7
 ##############################################################################.
8
 # routingtable.cgi : Version v1.5
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-showcfg.cgi (-17 lines)
Lines 1-17 Link Here
1
--- showcfg.cgi.orig	Thu Dec 14 00:58:09 2006
2
+++ showcfg.cgi	Thu Dec 14 00:58:54 2006
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/perl
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
6
 #
7
 # showcfg.cgi
8
 #
9
@@ -11,7 +11,7 @@
10
 use CGI;
11
 
12
 # Variables
13
-my( $confpath ) = "/home/stevesh/public_html/mrtg/conf/";
14
+my( $confpath ) = "%%LOCALBASE%%/etc/mrtg/";
15
 my( $device, $community, $targetwindow, $target, $file, $backurl )
16
 	= ( "","public","graph","","","");
17
 my( $conffile );
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-tonagios.cgi (-17 lines)
Lines 1-17 Link Here
1
--- tonagios.cgi.orig	2008-11-06 11:51:08.000000000 +0100
2
+++ tonagios.cgi	2008-11-06 11:51:45.000000000 +0100
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/perl
5
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
6
 #
7
 # tonagios.cgi
8
 #
9
@@ -8,7 +8,7 @@
10
 use CGI;
11
 
12
 # configure here: Nagios status.cgi URL (or use extinfo.cgi instead)
13
-my( $NAGIOS ) = "http://nagios.auckland.ac.nz/nagios/cgi-bin/status.cgi";
14
+my( $NAGIOS ) = "http://changeme/nagios/cgi-bin/status.cgi";
15
 # This is chopped from the end of the configuration filename
16
 my( $TRUNCATE ) = "\.(cfg|conf)?";
17
 # Alternative examples
(-)../../home/pi/myp/net-mgmt/routers2-extensions/files/patch-trend.cgi (-18 lines)
Lines 1-18 Link Here
1
--- trend.cgi.orig	Thu Dec 14 01:07:06 2006
2
+++ trend.cgi	Thu Dec 14 01:08:21 2006
3
@@ -1,5 +1,4 @@
4
-#!/usr/bin/perl 
5
-##!/usr/bin/speedy 
6
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
7
 # vim:ts=4
8
 # trend.cgi
9
 #    Generate a trending graph, based on yearly data, for the specified
10
@@ -67,7 +66,7 @@
11
 my( $BASE    ) = 0; # 0=current, 1=average
12
 my( $device, $community, $targetwindow, $target, $file, $backurl )
13
 	= ( "","public","graph","","","");
14
-my( $conffile ) = "/u01/etc/routers2.conf"; # overridden by passed parameters
15
+my( $conffile ) = "%%LOCALBASE%%/etc/routers2.conf"; # overridden by passed parameters
16
 my( $routersurl ) = '';
17
 my( $q ) = new CGI;
18
 my( %headeropts ) = ();

Return to bug 206902