openbsd-ports/net/smokeping/patches/patch-bin_smokeping_cgi
sthen 26223473c7 update Smokeping to 2.6.8 and add an rc.d script
- note that the script file location has changed, it's probably simplest
to use the new sample httpd config.
2013-01-05 22:52:06 +00:00

19 lines
458 B
Plaintext

$OpenBSD: patch-bin_smokeping_cgi,v 1.1 2013/01/05 22:52:07 sthen Exp $
--- bin/smokeping_cgi.orig Sat Dec 8 22:26:02 2012
+++ bin/smokeping_cgi Sat Dec 8 22:30:35 2012
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# -*-perl-*-
use strict;
@@ -18,7 +18,7 @@ use Smokeping;
use CGI::Fast;
-my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config";
+my $cfg = (shift @ARGV) || "${SYSCONFDIR}/config";
while (my $q = new CGI::Fast) {