As the FindBin module doesn't work with ePN, set the path to utils.pm explicitly at build time. Keep using FindBin additionally, so that the plugins can also be executed from the build directory. Closes #1271.
@@ -26,7 +26,8 @@ EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
EDIT = sed \
-e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \
-e 's|[@]TRUSTED_PATH[@]|$(with_trusted_path)|g' \
- -e 's|[@]PERL[@]|$(PERL)|g'
+ -e 's|[@]PERL[@]|$(PERL)|g' \
+ -e 's|[@]libexecdir[@]|$(libexecdir)|g'
TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir)
@@ -6,6 +6,7 @@ use Getopt::Long;
use vars qw($opt_V $opt_h $opt_w $opt_c $opt_H $opt_C $PROGNAME);
use FindBin;
use lib "$FindBin::Bin";
+use lib '@libexecdir@';
use utils qw(%ERRORS &print_revision &support &usage);
$PROGNAME = "check_breeze";
@@ -26,6 +26,7 @@ use vars qw($opt_P $opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_
use vars qw($PROGNAME);
use utils qw($TIMEOUT %ERRORS &print_revision &support &usage);
sub print_help ();
@@ -26,7 +26,9 @@ use English;
use Getopt::Long;
use File::stat;
-use lib ".";
+use FindBin;
+use lib "$FindBin::Bin";
use utils qw (%ERRORS &print_revision &support);
@@ -37,6 +37,7 @@ use Getopt::Long;
use vars qw($opt_V $opt_h $opt_F $opt_t $verbose $PROGNAME);
$PROGNAME="check_flexlm";
@@ -36,6 +36,7 @@ use POSIX;
use strict;
use utils qw($TIMEOUT %ERRORS &print_revision &support);
use Net::SNMP;
@@ -35,6 +35,7 @@ use POSIX;
@@ -53,6 +53,7 @@ use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose);
# ----------------------------------------------------[ Function Prototypes ]--
@@ -33,6 +33,7 @@ use vars qw($opt_V $opt_h $opt_v $verbose $PROGNAME $opt_w $opt_c $opt_t $opt_s
%srcdomains %dstdomains);
use utils qw(%ERRORS &print_revision &support &usage );
my ($sudo)
@@ -30,7 +30,9 @@
use DBI;
use DBD::Sybase;
@@ -29,6 +29,7 @@ use Getopt::Long;
use Net::DNS;
use utils ;
my $PROGNAME = "check_netdns";
@@ -22,6 +22,7 @@
my ($verbose,@proto,%prognum,$host,$response,$prognum,$port,$cmd,$progver,$state);
@@ -5,6 +5,7 @@