summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be0cbaf)
raw | patch | inline | side by side (parent: be0cbaf)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 14 Nov 2002 18:25:10 +0000 (18:25 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 14 Nov 2002 18:25:10 +0000 (18:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@200 f882894a-f735-0410-b71e-b25c423dba1c
Makefile.am | patch | blob | history | |
acconfig.h | patch | blob | history | |
configure.in | patch | blob | history | |
nagios-plugins.spec.in | patch | blob | history | |
plugins/utils.c | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 9e0415e14f9f345e5f19f14714183afcd792a3c6..808e1a732af5d85860f65ff298ff38b9f8617f39 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
contrib nagios-plugins.spec.in getloadavg.m4
dist-hook:
- sed "s/PACKAGE_VERSION/@PACKAGE_VERSION@/;s/PACKAGE_RELEASE/@PACKAGE_RELEASE@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
+ sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
test:
cd plugins; $(MAKE) test
diff --git a/acconfig.h b/acconfig.h
index b283039609896fdcade900836ab582b2176952a2..f2fe07bedbaac8fe886a88c8e9d1901c0e39de62 100644 (file)
--- a/acconfig.h
+++ b/acconfig.h
#undef HAVE_VA_COPY
#undef HAVE_VASPRINTF
#undef HAVE_VSNPRINTF
+#undef NEED_GETTIMEOFDAY
#undef NSLOOKUP_COMMAND
#undef HOST_COMMAND
#undef PACKAGE_VERSION
diff --git a/configure.in b/configure.in
index c67301892ccf5947301dc20389407afdfc345a55..509b6236d3b0f56e26ebe0957abfbe93c4dca34c 100644 (file)
--- a/configure.in
+++ b/configure.in
include(`getloadavg.m4')
AC_REVISION ($Revision$)
AC_INIT(Helper.pm)
-PACKAGE_VERSION="1.3.0"
+VER=1.3.0
+REL=beta2
+AC_SUBST(VER)
+AC_SUBST(REL)
+PACKAGE_VERSION="${VER}-${REL}"
AC_SUBST(PACKAGE_VERSION)
PACKAGE_RELEASE="alpha1"
AC_SUBST(PACKAGE_RELEASE)
-AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}-${PACKAGE_RELEASE})
+AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION})
AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h)
AC_PREFIX_DEFAULT(/usr/local/nagios)
DEPLIBS="$DEPLIBS libgetopt.a"])
AC_TRY_COMPILE([#include <sys/time.h>],
- [struct timeval *foo;],
- [AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure])])
-
-AC_TRY_COMPILE([#include <sys/time.h>],
- [gettimeofday(NULL, NULL);],
- AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]))
+ [struct timeval *tv;
+ struct timezone *tz;],
+ AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure])
+ AC_TRY_COMPILE([#include <sys/time.h>],
+ [struct timeval *tv;
+ struct timezone *tz;
+ gettimeofday(tv, tz);],
+ AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]),
+ AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed])))
dnl Checks for library functions.
AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul)
diff --git a/nagios-plugins.spec.in b/nagios-plugins.spec.in
index f8b9ee608dcb8f4c2967b61fe46d5d181779758a..a4e734cb1adee6b7bfeee505b27cf1ac54b2edbe 100644 (file)
--- a/nagios-plugins.spec.in
+++ b/nagios-plugins.spec.in
%define name %{archive}
%endif
-%define version PACKAGE_VERSION
-%define release PACKAGE_RELEASE
+%define version %%{VER}
+%define release %%{REL}
%define source %{archive}-%{version}
Name: %{name}
%else
%{_prefix}/lib/nagios/plugins/check_by_ssh
%{_prefix}/lib/nagios/plugins/check_breeze
+%{_prefix}/lib/nagios/plugins/check_dig
%{_prefix}/lib/nagios/plugins/check_disk
%{_prefix}/lib/nagios/plugins/check_disk_smb
%{_prefix}/lib/nagios/plugins/check_dns
%{_prefix}/lib/nagios/plugins/check_flexlm
%{_prefix}/lib/nagios/plugins/check_ftp
%{_prefix}/lib/nagios/plugins/check_http
+%{_prefix}/lib/nagios/plugins/check_ifoperstatus
+%{_prefix}/lib/nagios/plugins/check_ifstatus
%{_prefix}/lib/nagios/plugins/check_imap
%{_prefix}/lib/nagios/plugins/check_ircd
%{_prefix}/lib/nagios/plugins/check_load
%{_prefix}/lib/nagios/plugins/check_log
+%{_prefix}/lib/nagios/plugins/check_mailq
%{_prefix}/lib/nagios/plugins/check_mrtg
%{_prefix}/lib/nagios/plugins/check_mrtgtraf
%{_prefix}/lib/nagios/plugins/check_nagios
%{_prefix}/lib/nagios/plugins/check_users
%{_prefix}/lib/nagios/plugins/check_vsz
%{_prefix}/lib/nagios/plugins/check_wave
+%{_prefix}/lib/nagios/plugins/negate
%{_prefix}/lib/nagios/plugins/utils.pm
%{_prefix}/lib/nagios/plugins/utils.sh
%{_prefix}/lib/nagios/plugins/urlize
diff --git a/plugins/utils.c b/plugins/utils.c
index bf6af8851c29d617dc1c1a873c36b6d29c9e5cc3..10d544c43bdf0aedf8a071714537db4f73020ea6 100644 (file)
--- a/plugins/utils.c
+++ b/plugins/utils.c
-#ifndef HAVE_GETTIMEOFDAY
+#ifdef NEED_GETTIMEOFDAY
int
gettimeofday (struct timeval *tv, struct timezone *tz)
{