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 ();
@@ -27,6 +27,7 @@ use File::stat;
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";
@@ -37,6 +37,7 @@ use POSIX;
use strict;
use utils qw($TIMEOUT %ERRORS &print_revision &support);
use Net::SNMP;
@@ -34,6 +34,7 @@ use POSIX;
@@ -51,6 +51,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
%srcdomains %dstdomains);
use utils qw(%ERRORS &print_revision &support &usage );
@@ -31,6 +31,7 @@ use DBD::Sybase;
use Getopt::Long;
@@ -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 @@