From 3073c3da9ca580c0e34c1d4426f634cd51ef96bb Mon Sep 17 00:00:00 2001 From: Sam Kottler Date: Mon, 3 Feb 2014 09:39:51 +0100 Subject: Add the monitoring-plugins package --- ...ific-patch-for-not-to-fixing-fully-qualif.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 monitoring-plugins/monitoring-plugins-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch (limited to 'monitoring-plugins/monitoring-plugins-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch') diff --git a/monitoring-plugins/monitoring-plugins-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch b/monitoring-plugins/monitoring-plugins-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch new file mode 100644 index 0000000..14539d1 --- /dev/null +++ b/monitoring-plugins/monitoring-plugins-0004-Fedora-specific-patch-for-not-to-fixing-fully-qualif.patch @@ -0,0 +1,34 @@ +From 33843772fca43f8f4dbb4285a7aee8aac25ad37f Mon Sep 17 00:00:00 2001 +From: Peter Lemenkov +Date: Wed, 10 Mar 2010 12:15:08 +0300 +Subject: [PATCH 04/10] Fedora-specific patch for not to fixing fully qualified + paths in scripts + +--- + plugins-scripts/subst.in | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in +index a70ad88..08f2895 100644 +--- a/plugins-scripts/subst.in ++++ b/plugins-scripts/subst.in +@@ -52,11 +52,11 @@ BEGIN { + # returned from the which subroutine. run before changes to INC to add libexecdir + # FIXME: Prepend executables with a substitution keyword instead. + # +-/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { +- match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); +- c=substr($0,RSTART,RLENGTH); +- sub(c,which(c,path)); +-} ++#/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { ++# match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); ++# 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() )} } } +-- +1.8.3.1 + -- cgit