summaryrefslogtreecommitdiff
path: root/net/mrtg/patches/patch-ad
blob: 6d3126a41f432e901d90d6bd1a6a46e450c740a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ad,v 1.1 2000/10/20 16:06:17 bouyer Exp $

--- bin/mrtg.orig	Fri Oct 20 11:20:46 2000
+++ bin/mrtg	Fri Oct 20 11:22:26 2000
@@ -421,15 +421,15 @@
     ########## rrdtool users have left here ###############
 
     ((($MRTG_lib::OS eq 'NT') && (-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")) || 
+       die "ERROR: Can't Execute '__PREFIX__/libexec/rateup'\n";
 
     # rateup does not know about undef so we make inlast and outlast ready for rateup
     $inlast = -1 unless defined $inlast;
     $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",
                  $time, $$rcfg{'options'}{'unknaszero'}{$router} ? '-z':'-Z',
                  "$up_abs"."p", $inlast, $outlast, $absmax,
@@ -437,7 +437,7 @@
                  $$rcfg{'rgb3'}{$router},$$rcfg{'rgb4'}{$router},
                  $$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,