mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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
This commit is contained in:
parent
34cb16d283
commit
e4c86b373d
2 changed files with 7 additions and 10 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue