summaryrefslogtreecommitdiff
path: root/net/mrtg/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'net/mrtg/patches/patch-ad')
-rw-r--r--net/mrtg/patches/patch-ad24
1 files changed, 18 insertions, 6 deletions
diff --git a/net/mrtg/patches/patch-ad b/net/mrtg/patches/patch-ad
index 40e0571e16d..5939c62031a 100644
--- a/net/mrtg/patches/patch-ad
+++ b/net/mrtg/patches/patch-ad
@@ -1,21 +1,33 @@
-$NetBSD: patch-ad,v 1.7 2004/02/15 07:34:04 martti Exp $
+$NetBSD: patch-ad,v 1.8 2004/06/21 16:20:14 martti Exp $
---- bin/mrtg.orig Mon Jan 19 09:30:19 2004
-+++ bin/mrtg Sun Feb 15 09:20:41 2004
-@@ -695,4 +695,4 @@
+--- bin/mrtg.orig 2004-06-08 21:08:28.000000000 +0000
++++ bin/mrtg 2004-06-14 17:32:26.000000000 +0000
+@@ -700,8 +700,8 @@
+
((($MRTG_lib::OS eq 'NT' or $MRTG_lib::OS eq 'OS2') and (-e "${FindBin::Bin}${MRTG_lib::SL}rateup.exe")) or
+ (($MRTG_lib::OS eq 'NW') and (-e "${FindBin::Bin}${MRTG_lib::SL}rateup.nlm")) or
- (-x "${FindBin::Bin}${MRTG_lib::SL}rateup")) or
- die "ERROR: Can't Execute '${FindBin::Bin}${MRTG_lib::SL}rateup'\n";
+ (-x "__PREFIX__/libexec/rateup")) ||
+ die "ERROR: Can't Execute '__PREFIX__/libexec/rateup'\n";
-@@ -708,3 +708,3 @@
+ # rateup does not know about undef so we make inlast and outlast ready for rateup
+ #warn "ERROR: inlast is undefined. Skipping $router\n" unless defined $inlast;
+@@ -713,7 +713,7 @@
+ $outlast = -1 unless defined $outlast;
+
if ($$rcfg{'options'}{'dorelpercent'}{$router}) {
- @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup",
+ @exec = ("__PREFIX__/libexec/rateup",
"$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router",
-@@ -717,3 +717,3 @@
+ $time, $$rcfg{'options'}{'unknaszero'}{$router} ? '-z':'-Z',
+ "$up_abs"."p", $inlast, $outlast, $absmax,
+@@ -722,7 +722,7 @@
+ $$rcfg{'rgb5'}{$router});
+ } else {
- @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup",
+ @exec = ("__PREFIX__/libexec/rateup",
"$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router",
+ $time, $$rcfg{'options'}{'unknaszero'}{$router} ? '-z':'-Z',
+ "$up_abs", $inlast, $outlast, $absmax,