freebsd-ports/net-mgmt/smokeping/files/patch-bin_tSmoke
Rodrigo Osorio d97161a978 net-mgmt/smokeping: Fix patches filepath
PR:             259891
Reported by:    shaun <freebsd@shaunc.com>
2021-11-19 15:51:11 +01:00

20 lines
549 B
Text

--- bin/tSmoke.orig 2021-11-14 17:05:16 UTC
+++ bin/tSmoke
@@ -53,7 +53,7 @@
# Point the lib variables to your implementation
use lib (split /:/, q{}); # PERL5LIB
-use FindBin;use lib "$FindBin::RealBin/../lib";use lib "$FindBin::RealBin/../thirdparty/lib/perl5"; # LIBDIR
+use lib "/usr/local/smokeping/lib";
use Smokeping;
@@ -63,7 +63,7 @@
use RRDs;
# Point to your Smokeping config file
-my $cfgfile = (shift @ARGV) || "$FindBin::Bin/../etc/config";
+my $cfgfile = "/usr/local/etc/smokeping/config";
# global variables
my $cfg;