freebsd-ports/net-mgmt/smokeping/files/patch-bin-smokeping_cgi
Guido Falsi d2ef11eee6 - Fix build and install
- Assign maintainership to submitter

Also merged fixes by dikshie <dikshie@sfc.wide.ad.jp> (ports/162460).

PR:		ports/167868
Submitted by:	Rodrigo OSORIO <rodrigo@bebik.net>
Approved by:	crees (mentor)
2012-05-14 15:03:12 +00:00

21 lines
523 B
Text

--- bin/smokeping_cgi.orig 2012-05-14 12:45:11.565909114 +0200
+++ bin/smokeping_cgi 2012-05-14 12:55:19.866379488 +0200
@@ -6,8 +6,7 @@
use FindBin;
# PERL5LIB
-use lib "$FindBin::Bin/../thirdparty/lib/perl5";
-use lib "$FindBin::Bin/../lib";
+use lib "%%PREFIX%%/smokeping/lib";
# don't bother with zombies
$SIG{CHLD} = 'IGNORE';
@@ -18,7 +17,7 @@
use CGI::Fast;
-my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
+my $cfg = (shift @ARGV) || "%%ETCDIR%%/config";
while (my $q = new CGI::Fast) {