diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-07-22 01:03:42 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-07-22 01:03:42 +0000 |
commit | 4bd953d9e9f77c9e1688cc3fec99356749069fce (patch) | |
tree | 1b034c239e697c7fa03f7560ca57dd01ba334b56 /net/nagios-plugins/files/patch-subst.in | |
parent | Update to 1.6 release (diff) |
Add nagios-plugins after repocopy from netsaint-plugins.
Submitted by: Blaz Zupan <blaz@si.FreeBSD.org>
Repocopied by: joe
Notes
Notes:
svn path=/head/; revision=63351
Diffstat (limited to 'net/nagios-plugins/files/patch-subst.in')
-rw-r--r-- | net/nagios-plugins/files/patch-subst.in | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/net/nagios-plugins/files/patch-subst.in b/net/nagios-plugins/files/patch-subst.in index 3caf2cb87757..c5bd2477c9c8 100644 --- a/net/nagios-plugins/files/patch-subst.in +++ b/net/nagios-plugins/files/patch-subst.in @@ -1,11 +1,36 @@ ---- plugins-scripts/subst.in.orig Fri Sep 1 05:47:35 2000 -+++ plugins-scripts/subst.in Sun Jun 23 14:24:00 2002 -@@ -33,7 +33,7 @@ - # Trusted path mechanism (deprecated) - - /^[ \t]*\$ENV[ \t]*\{[ \t'"]*PATH[ \t"']*\}[ \t]*=/ { -- sub(/\=[ \t]*['"][^"']+["']/,"='@trusted_path@' # autoconf-derived"); -+ sub(/\=[ \t]*['"][^"']+["'];/,"='@trusted_path@'; # autoconf-derived"); +--- plugins-scripts/subst.in.orig Thu Jun 6 06:16:56 2002 ++++ plugins-scripts/subst.in Sun Jul 14 13:38:22 2002 +@@ -37,6 +37,16 @@ + } ++# Specific programs ++ ++# ++/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { ++ match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); ++ start=RSTART+RLENGTH; ++ c=substr($0,RSTART,RLENGTH); ++ sub(c,which(c,path)); ++} ++ + # scripting language (first line) + + /^#! ?\/.*\/python/ {sub(/^#! ?\/.*\/python/,"#! @PYTHON@");} +@@ -56,16 +66,6 @@ + /^[\t ]*(export[\t ]*)?PATH[\t ]*=['"]+.+["']$/ { + sub(/\=.*$/,"='@trusted_path@' # autoconf-derived"); +-} +- +-# Specific programs +- +-# +-/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { +- match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); +- start=RSTART+RLENGTH; +- c=substr($0,RSTART,RLENGTH); +- sub(c,which(c,path)); + } + + { |