summaryrefslogtreecommitdiff
path: root/net/ifgraph/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/ifgraph/files')
-rw-r--r--net/ifgraph/files/crontab.in3
-rw-r--r--net/ifgraph/files/patch-find-if.pl22
-rw-r--r--net/ifgraph/files/patch-ifgraph.conf17
-rw-r--r--net/ifgraph/files/patch-ifgraph.pl29
-rw-r--r--net/ifgraph/files/patch-makegraph.pl27
5 files changed, 98 insertions, 0 deletions
diff --git a/net/ifgraph/files/crontab.in b/net/ifgraph/files/crontab.in
new file mode 100644
index 000000000000..6d856dd91303
--- /dev/null
+++ b/net/ifgraph/files/crontab.in
@@ -0,0 +1,3 @@
+# crontab file for ifGraph
+#*/5 * * * * %%PREFIX%%/bin/ifgraph.pl -c %%PREFIX%%/etc/ifgraph.conf > /dev/null
+#*/5 * * * * %%PREFIX%%/bin/makegraph.pl -c %%PREFIX%%/etc/ifgraph.conf > /dev/null
diff --git a/net/ifgraph/files/patch-find-if.pl b/net/ifgraph/files/patch-find-if.pl
new file mode 100644
index 000000000000..c547871067eb
--- /dev/null
+++ b/net/ifgraph/files/patch-find-if.pl
@@ -0,0 +1,22 @@
+--- find-if.pl.orig Sat Sep 20 14:35:38 2003
++++ find-if.pl Sat Sep 20 14:36:07 2003
+@@ -19,10 +19,6 @@
+ #Sugestoes e criticas (sem flames!!) mailto:sartori@ifgraph.org
+ #Visite: http://www.ifgraph.org
+
+-# Let's find out where we are
+-use FindBin;
+-# # Found, now we add it to the @INC
+-use lib "$FindBin::Bin/lib";
+ # # We are strict
+ use strict;
+ # # Get the command line options
+@@ -30,7 +26,7 @@
+ getopts('adhims');
+
+ # We just nedd the basic features here
+-use Net::SNMP_365;
++use Net::SNMP;
+
+ use vars qw($response $response2 $response3 $response4 $response5 $response6 $response7 $response8 $response9
+ $response10 $response11 $response12 $opt_d @ips $ip $mac $opt_a $opt_h $opt_m $opt_i $opt_s $if $desc $stat $ocin
diff --git a/net/ifgraph/files/patch-ifgraph.conf b/net/ifgraph/files/patch-ifgraph.conf
new file mode 100644
index 000000000000..9dc20049c6b6
--- /dev/null
+++ b/net/ifgraph/files/patch-ifgraph.conf
@@ -0,0 +1,17 @@
+--- ifgraph.conf.orig Fri Sep 19 19:06:49 2003
++++ ifgraph.conf Fri Sep 19 19:08:52 2003
+@@ -19,10 +19,10 @@
+ # will not work as expected.
+
+ [global]
+-rrdtool = /usr/local/bin/rrdtool
+-rrddir = /home/someuser/rrdfiles
+-graphdir= /home/someuser/public_html/ifgraph-0.4.9
+-template=/home/someuser/ifgraph-0.4.9/templates/en
++rrdtool = %%PREFIX%%/bin/rrdtool
++rrddir = %%PREFIX%%/var/ifgraph
++graphdir = %%PREFIX%%/ifgraph/htdocs
++template = %%PREFIX%%/ifgraph/templates/en
+ imgformat=PNG
+ # those are the default configurations, should be
+ # overriden in each target
diff --git a/net/ifgraph/files/patch-ifgraph.pl b/net/ifgraph/files/patch-ifgraph.pl
new file mode 100644
index 000000000000..619831a4e173
--- /dev/null
+++ b/net/ifgraph/files/patch-ifgraph.pl
@@ -0,0 +1,29 @@
+--- ifgraph.pl.orig Sun Sep 28 22:29:51 2003
++++ ifgraph.pl Sun Sep 28 22:30:19 2003
+@@ -19,10 +19,6 @@
+ #Sugestoes e criticas (sem flames!!) mailto:sartori@ifgraph.org
+ #Visite: http://www.ifgraph.org
+
+-# Let's find out where we are
+-use FindBin;
+-# Found, now we add it to the @INC
+-use lib "$FindBin::Bin/lib";
+ # We are strict
+ use strict;
+ # Get the command line options
+@@ -32,14 +28,7 @@
+ getopt('cltF');
+ getopts('dh');
+
+-# If the perl is older, we have to fetch the older Net::SNMP library
+-if ($] < 5.006) {
+- &debug("Warning: Older perl version $], we will use Net::SNMP 3.65\n");
+- require Net::SNMP_365;
+-} else {
+- &debug("Starting ifgraph 0.4.9 with perl $], Net::SNMP 4.3\n");
+- require Net::SNMP;
+-}
++use Net::SNMP;
+
+ # SIGINT call
+ $SIG{INT}=\&sigint;
diff --git a/net/ifgraph/files/patch-makegraph.pl b/net/ifgraph/files/patch-makegraph.pl
new file mode 100644
index 000000000000..045dabe5dfc0
--- /dev/null
+++ b/net/ifgraph/files/patch-makegraph.pl
@@ -0,0 +1,27 @@
+--- makegraph.pl.orig Sun Sep 21 12:30:49 2003
++++ makegraph.pl Sun Sep 21 12:32:08 2003
+@@ -19,8 +19,6 @@
+ #Sugestoes e criticas (sem flames!!) mailto:sartori@ifgraph.org
+ #Visite: http://www.ifgraph.org
+
+-use FindBin;
+-use lib "$FindBin::Bin/lib";
+ use strict;
+ use Getopt::Std;
+ use vars qw($opt_d $opt_c $opt_B $opt_b $opt_h $opt_g $opt_t $opt_T $targetindex
+@@ -30,14 +28,7 @@
+ getopt('ctT');
+ getopts('Bbgdh');
+
+-# If the perl is older, we have to fetch the older Net::SNMP library
+-if ($] < 5.006) {
+- &debug("Warning: Older perl version $], we will use Net::SNMP 3.65\n");
+- require Net::SNMP_365;
+-} else {
+- &debug("Starting ifgraph 0.4.9 with perl $[, Net::SNMP 4.3\n");
+- require Net::SNMP;
+-}
++use Net::SNMP;
+
+ # HELP
+ if (defined($opt_h)) {