From e4c86b373db06ce6603fe39d1f2442e6e4b908b6 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 28 Apr 2006 08:45:24 +0000 Subject: 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 diff --git a/configure.in b/configure.in index 1313b2f..d0a2a52 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 54e91b0..782a1ca 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 -- cgit v0.10-9-g596f