aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
diff options
context:
space:
mode:
authorGravatar Evgeni Golov <evgeni@golov.de> 2014-02-26 08:38:46 +0100
committerGravatar Jan Wagner <waja@cyconet.org> 2014-02-27 20:58:49 +0100
commit2d49468a2533c4623d4121ee0e12260bcba78905 (patch)
treedc1abdd678f14194f5941ad2cf6505addf9a41bb /plugins-scripts
parent9408c975fe199c4ef4d662dee05f4f684167b731 (diff)
downloadmonitoring-plugins-2d49468a2533c4623d4121ee0e12260bcba78905.tar.gz
subst.in: remove the led() function
It was only used to replace the 'use lib utils.pm' with the proper libexec dir, which is now solved by using Perl's FinBin. Closes #1241
Diffstat (limited to 'plugins-scripts')
-rw-r--r--plugins-scripts/subst.in17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in
index a70ad884..66777d75 100644
--- a/plugins-scripts/subst.in
+++ b/plugins-scripts/subst.in
@@ -19,19 +19,6 @@ function which(c,path) {
return c;
}
-# used to replace "use lib utils.pm" with "use lib @libexecdir"
-#
-function led() {
- led1 = "@libexecdir@";
- led2 = "@exec_prefix@";
- led3 = "@prefix@";
- if ( match(led1, /^\$\{exec_prefix\}/ ) != 0 ) {
- return "\"" led3 "/libexec\" " ;
-
- }
- return "\"" led1 "\"" ;
-}
-
BEGIN {
split(ENVIRON["PATH"] ":/sbin:/usr/sbin",path,/:/);
@@ -58,10 +45,6 @@ BEGIN {
sub(c,which(c,path));
}
-# 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]*=/ {