aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-28 08:45:24 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-28 08:45:24 +0000
commite4c86b373db06ce6603fe39d1f2442e6e4b908b6 (patch)
tree3cb25b47b6ca541ec8550aef2b77534136ca8688
parent34cb16d283298885b73f75146433a703e93c0d4f (diff)
downloadmonitoring-plugins-e4c86b373db06ce6603fe39d1f2442e6e4b908b6.tar.gz
Added pst3 into distribution (Jason Kau - 1476451)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1384 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--configure.in6
-rw-r--r--plugins-root/Makefile.am11
2 files changed, 7 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index 1313b2f5..d0a2a528 100644
--- a/configure.in
+++ b/configure.in
@@ -84,6 +84,7 @@ AC_ARG_WITH(trusted_path,
AC_SUBST(with_trusted_path)
EXTRAS=
+EXTRAS_ROOT=pst3
dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH
LDFLAGS="$LDFLAGS -L."
@@ -656,8 +657,6 @@ AC_ARG_WITH(ps_varlist,
[Variable list for sscanf of 'ps' output]),
PS_VARLIST=$withval)
-AM_CONDITIONAL(WANT_PST3, false)
-
if test -n "$PS_COMMAND" && test -n "$PS_FORMAT" && test -n "$PS_COLS" && test -n "$PS_VARLIST"; then
ac_cv_ps_command="$PS_COMMAND"
ac_cv_ps_format="$PS_FORMAT"
@@ -688,7 +687,7 @@ elif test "$ac_cv_uname_s" = "SunOS"; then
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
ac_cv_ps_cols=8
AC_MSG_RESULT([using nagios-plugins internal ps for solaris])
- AM_CONDITIONAL(WANT_PST3, true)
+ EXTRAS_ROOT="$EXTRAS_ROOT pst3"
dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo.
dnl so test for this first...
@@ -1658,6 +1657,7 @@ case $host in
esac
AC_SUBST(EXTRAS)
+AC_SUBST(EXTRAS_ROOT)
AC_SUBST(EXTRA_NETOBJS)
AC_SUBST(DEPLIBS)
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am
index 54e91b08..782a1ca7 100644
--- a/plugins-root/Makefile.am
+++ b/plugins-root/Makefile.am
@@ -9,12 +9,11 @@ localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@
-EXTRA_PROGRAMS = check_dhcp check_icmp
+libexec_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@
-if WANT_PST3
- EXTRA_PROGRAMS += pst3
- pst3_DEPENDENCIES = pst3.c
-endif
+EXTRA_PROGRAMS = pst3
+
+EXTRA_DIST = pst3.c
BASEOBJS = ../plugins/utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a
NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS)
@@ -27,8 +26,6 @@ TESTS = @PLUGIN_TEST@
test:
perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
-all-local: $(EXTRA_PROGRAMS)
-
setuid_root_mode = 4550
group = nagios