diff options
Diffstat (limited to 'net/mrtg/patches/patch-ad')
-rw-r--r-- | net/mrtg/patches/patch-ad | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/mrtg/patches/patch-ad b/net/mrtg/patches/patch-ad index 33b3cb0c805..3809a7db8fa 100644 --- a/net/mrtg/patches/patch-ad +++ b/net/mrtg/patches/patch-ad @@ -1,31 +1,31 @@ -$NetBSD: patch-ad,v 1.4 2003/04/08 09:50:22 martti Exp $ +$NetBSD: patch-ad,v 1.5 2003/10/05 12:02:52 martti Exp $ ---- bin/mrtg.orig Fri Apr 4 06:31:59 2003 -+++ bin/mrtg Tue Apr 8 12:30:22 2003 -@@ -586,8 +586,8 @@ +--- bin/mrtg.orig Fri Sep 12 00:15:22 2003 ++++ bin/mrtg Sun Oct 5 13:02:06 2003 +@@ -666,8 +666,8 @@ ########## rrdtool users have left here ############### - ((($MRTG_lib::OS eq 'NT') && (-e "${FindBin::Bin}${MRTG_lib::SL}rateup.exe")) || + ((($MRTG_lib::OS eq 'NT' || $MRTG_lib::OS eq 'OS2') && (-e "${FindBin::Bin}${MRTG_lib::SL}rateup.exe")) || - (-x "${FindBin::Bin}${MRTG_lib::SL}rateup")) || - die "ERROR: Can't Execute '${FindBin::Bin}${MRTG_lib::SL}rateup'\n"; -+ (-x "__PREFIX__/libexec/rateup")) || ++ (-x "__PREFIX__/libexec/rateup")) || + die "ERROR: Can't Execute '__PREFIX__/libexec/rateup'\n"; # 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; -@@ -595,7 +595,7 @@ +@@ -675,7 +675,7 @@ return undef unless defined $inlast and defined $outlast; if ($$rcfg{'options'}{'dorelpercent'}{$router}) { - @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup", -+ @exec = ("__PREFIX__/libexec/rateup", ++ @exec = ("__PREFIX__/libexec/rateup", "$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router", $time, $$rcfg{'options'}{'unknaszero'}{$router} ? '-z':'-Z', "$up_abs"."p", $inlast, $outlast, $absmax, -@@ -603,7 +603,7 @@ - $$rcfg{'rgb3'}{$router},$$rcfg{'rgb4'}{$router}, +@@ -684,7 +684,7 @@ $$rcfg{'rgb5'}{$router}); } else { + - @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup", + @exec = ("__PREFIX__/libexec/rateup", "$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router", |