openbsd-ports/net/nagios/plugins/patches/patch-plugins-scripts_subst_in
sturm 9820b081ca Initial import of nagios 2.0b3 and base plugins 1.4.
Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do.  The monitoring
daemon runs intermittent checks on hosts and services you specify using
external "plugins" which return status information to Nagios. When problems
are encountered, the daemon can send notifications out to administrative
contacts in a variety of different ways (email, instant message, SMS, etc.).
Current status information, historical logs, and reports can all be accessed
via a web browser.

NOTE: Nagios might not work on 64bit archs.
2005-07-25 16:32:05 +00:00

25 lines
799 B
Plaintext

$OpenBSD: patch-plugins-scripts_subst_in,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- plugins-scripts/subst.in.orig Mon Jul 18 22:56:08 2005
+++ plugins-scripts/subst.in Mon Jul 18 22:56:30 2005
@@ -44,10 +44,6 @@ BEGIN {
/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");}
/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");}
-# add to libexecdir to INC for perl utils.pm
-/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
-
-
# Trusted path mechanism (deprecated)
/^[ \t]*\$ENV[ \t]*\{[ \t'"]*PATH[ \t"']*\}[ \t]*=/ {
@@ -67,6 +63,9 @@ BEGIN {
c=substr($0,RSTART,RLENGTH);
sub(c,which(c,path));
}
+
+# add to libexecdir to INC for perl utils.pm
+/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
{
print;