summaryrefslogtreecommitdiff
path: root/net/mrtg/patches/patch-ad
blob: 92978f00b4340dad503c9b25a1fd466f42bd2fad (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
33
$NetBSD: patch-ad,v 1.6 2003/12/07 13:53:32 martti Exp $

--- bin/mrtg.orig	Fri Dec  5 19:56:57 2003
+++ bin/mrtg	Sun Dec  7 15:36:59 2003
@@ -685,8 +685,8 @@
     ########## rrdtool users have left here ###############
 
     ((($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")) ||
+       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;
@@ -698,7 +698,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",
                  $time, $$rcfg{'options'}{'unknaszero'}{$router} ? '-z':'-Z',
                  "$up_abs"."p", $inlast, $outlast, $absmax,
@@ -707,7 +707,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,