summaryrefslogtreecommitdiff
path: root/net/mrtg/patches/patch-ad
blob: 1c0fb8120384cb811154db3370032655adcbc0c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ad,v 1.10 2005/06/23 08:12:13 martti Exp $

--- bin/mrtg.orig	2005-06-19 16:40:02.000000000 +0300
+++ bin/mrtg	2005-06-23 08:05:14.000000000 +0300
@@ -721,4 +721,4 @@
      (($MRTG_lib::OS eq 'NW') and (-e "SYS:/Mrtg/bin/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";
 
@@ -734,3 +734,3 @@
     if ($$rcfg{'options'}{'dorelpercent'}{$router}) {
-        @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup", 
+        @exec = ("__PREFIX__/libexec/rateup",
                  "$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router",
@@ -743,3 +743,3 @@
 
-        @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup", 
+        @exec = ("__PREFIX__/libexec/rateup",
                  "$$cfg{'logdir'}$$rcfg{'directory'}{$router}","$router",