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.15 2008/04/15 11:02:04 martti Exp $
--- bin/mrtg.orig 2008-02-17 12:27:36.000000000 +0200
+++ bin/mrtg 2008-04-15 13:56:27.000000000 +0300
@@ -899,8 +899,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 "SYS:/Mrtg/bin/rateup.nlm")) or
- (-x "${FindBin::Bin}${MRTG_lib::SL}rateup")) or
- die "$NOW: ERROR: Can't Execute '${FindBin::Bin}${MRTG_lib::SL}rateup'\n";
+ (-x "__PREFIX__/libexec/rateup")) or
+ die "$NOW: ERROR: Can't Execute '__PREFIX__/libexec/rateup'\n";
# rateup does not know about undef so we make inlast and outlast ready for rateup
#warn "$NOW: ERROR: inlast is undefined. Skipping $router\n" unless defined $inlast;
@@ -912,7 +912,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,
@@ -921,7 +921,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,
|