summaryrefslogtreecommitdiff
path: root/net/mrtg/patches/patch-ad
blob: 5939c62031a662fc032686027a12eddd87626145 (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.8 2004/06/21 16:20:14 martti Exp $

--- 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";
 
     # 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",
                  $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,