diff options
author | tonnerre <tonnerre> | 2008-05-27 21:22:02 +0000 |
---|---|---|
committer | tonnerre <tonnerre> | 2008-05-27 21:22:02 +0000 |
commit | 04d11c8c6759a8725129a81074298fc1f2ffcf00 (patch) | |
tree | 2f7cf65b16b80e1c0a241f928c18f71179e810e4 /net/nagios-plugins | |
parent | 0c90e37329acf5abf8af149e1f23034c4a10d0ec (diff) | |
download | pkgsrc-04d11c8c6759a8725129a81074298fc1f2ffcf00.tar.gz |
Update the nagios-plugins package to version 1.4.11. This fixes various
crashes on various architectures and system, such as, for example,
the check_icmp bus error on sparc64.
Changes in 1.4.4:
- check_ntp is now written in C instead of Perl.
- check_disk bugfixes.
- check_udp2, check_udp and check_tcp are now united.
- check_mailq now reports mailq errors better.
- check_snmp now compiles with a sane amount of effort.
Changes in 1.4.5:
- Fixed bug in perl's is_hostname routine.
Changes in 1.4.6:
- check_ping and netutils.c now do less DNS lookups.
- alloca.h related compile fixes.
- check_swap now works on Solaris too.
- check_disk perf data can now be monitored.
- check_procs had a buffer overflow.
- Fixed UNIX socket error handling.
- check_by_ssh now can pass -q and -o to ssh.
- GNUlib sync.
- check_jabber can now return things different from a warning.
Changes in 1.4.7:
- check_procs uses /usr/ucb/ps on Solaris which fixes pst3 problems.
- check_smtp does a non-broken HELO now.
- check_icmp can now have a minimum number of required hosts and also
works if running for a long time on BSDs.
- check_ping timeout reduced.
- Everybody can now execute SUID check plugins unless indicated otherwise
to configure.
Changes in 1.4.8:
- check_disk now has an extra option for regex matching and grouping of FSes.
- check_ntp various fixes.
Changes in 1.4.9:
- New plugin check_cluster (not built by pkgsrc).
- check_by_ssh now has improved stderr/stdout handling options (-E/-S).
- check_ldap, check_radius and check_pgsql compile fixes.
- check_snmp 64-bit counter support.
- Better underflow checking for check_time.
- check_http output is more consistent now.
- check_http HTTP redirect segfault fixes.
- check_tcp doesn't segfault anymore when multiple expect strings are given.
- check_tcp now supports -A to check if all expect strings match.
Changes in 1.4.10:
- check_http redirect buffer overflow vulnerability fixed (was fixed
in pkgsrc before).
- check_http now shuts down HTTP/1.1 keepalive connections cleanly.
- check_ldaps doesn't guess anymore whether to use SSL or STARTTLS.
- check_disk now calls stat on all file systems.
- check_disk now supports the -L flag for local file system checks.
- check_disk now supports -i/-I for ignoring paths/partitions by regex.
- check_disk now supports -A to select all file systems explicitly.
- check_disk now needs to have the -E flag passed before -p or -r/-R.
- check_disk is no longer buggy when case sensitive and insensitive regexes
are mixed.
- check_dhcp now supports -u (unicast) to emulate a relay.
- check_dhcp now lets you specify the MAC address in the request using -m.
- check_dhcp -r and -s options now accept host names.
- check_icmp no longer bus errors on various platforms.
- check_smtp now handles multiple-packet server responses properly.
- Negate command line options are no longer evaluated twice by the shell.
- Negate commands to be run must now be fully qualified.
- Negate can now remap custom states.
- check_radius now supports radius-client-ng (was already in pkgsrc).
- check_by_ssh now supports multiline output.
- check_ntp now honors ntp flags.
Changes in 1.4.10:
- check_ntp returns UNKNOWN rather than WARNING if no jitter is available.
- check_cluster now accept all valid characters in its thresholds.
- check_ntp is now deprecated in favor of check_ntp_peer and check_ntp_time.
- check_disk no longer reports OK if disk usage exceeds 100%.
- check_load handles non-triplet arguments correctly now.
- Nagios::Plugin updated to 0.22.
Diffstat (limited to 'net/nagios-plugins')
-rw-r--r-- | net/nagios-plugins/Makefile | 3 | ||||
-rw-r--r-- | net/nagios-plugins/Makefile.common | 4 | ||||
-rw-r--r-- | net/nagios-plugins/Makefile.plugin | 4 | ||||
-rw-r--r-- | net/nagios-plugins/PLIST | 5 | ||||
-rw-r--r-- | net/nagios-plugins/distinfo | 23 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-aa | 100 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-ab | 78 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-ad | 30 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-ae | 15 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-af | 24 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-ak | 38 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-al | 10 | ||||
-rw-r--r-- | net/nagios-plugins/patches/patch-an | 10 |
13 files changed, 124 insertions, 220 deletions
diff --git a/net/nagios-plugins/Makefile b/net/nagios-plugins/Makefile index f6b8069b597..be4ebf43243 100644 --- a/net/nagios-plugins/Makefile +++ b/net/nagios-plugins/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.13 2008/03/22 14:52:21 tonnerre Exp $ +# $NetBSD: Makefile,v 1.14 2008/05/27 21:22:03 tonnerre Exp $ # -PKGREVISION= 5 CATEGORIES= net sysutils MAINTAINER= tonnerre@NetBSD.org diff --git a/net/nagios-plugins/Makefile.common b/net/nagios-plugins/Makefile.common index 6138d513109..5f47c6ef8de 100644 --- a/net/nagios-plugins/Makefile.common +++ b/net/nagios-plugins/Makefile.common @@ -1,7 +1,7 @@ -# $NetBSD: Makefile.common,v 1.4 2006/08/23 18:45:31 wiz Exp $ +# $NetBSD: Makefile.common,v 1.5 2008/05/27 21:22:03 tonnerre Exp $ # -PLUGINSVERSION= 1.4.3 +PLUGINSVERSION= 1.4.11 DISTNAME= nagios-plugins-${PLUGINSVERSION} MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=nagiosplug/} diff --git a/net/nagios-plugins/Makefile.plugin b/net/nagios-plugins/Makefile.plugin index fd04781b451..e0421cf6536 100644 --- a/net/nagios-plugins/Makefile.plugin +++ b/net/nagios-plugins/Makefile.plugin @@ -1,9 +1,11 @@ -# $NetBSD: Makefile.plugin,v 1.2 2006/09/09 02:43:11 obache Exp $ +# $NetBSD: Makefile.plugin,v 1.3 2008/05/27 21:22:03 tonnerre Exp $ # do-build: cd ${WRKSRC}/lib && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} + cd ${WRKSRC}/gl && ${SETENV} ${MAKE_ENV} \ + ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} .if ${BINARY_TARGET:D1} cd ${WRKSRC}/plugins && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${BINARY_TARGET} diff --git a/net/nagios-plugins/PLIST b/net/nagios-plugins/PLIST index 580b7401f82..2f92f612986 100644 --- a/net/nagios-plugins/PLIST +++ b/net/nagios-plugins/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2006/08/17 14:20:14 taca Exp $ +@comment $NetBSD: PLIST,v 1.3 2008/05/27 21:22:03 tonnerre Exp $ libexec/nagios/check_by_ssh libexec/nagios/check_clamd libexec/nagios/check_dhcp @@ -22,6 +22,8 @@ libexec/nagios/check_nagios libexec/nagios/check_nntp libexec/nagios/check_nntps libexec/nagios/check_ntp +libexec/nagios/check_ntp_peer +libexec/nagios/check_ntp_time libexec/nagios/check_nwstat libexec/nagios/check_overcr libexec/nagios/check_ping @@ -38,7 +40,6 @@ libexec/nagios/check_swap libexec/nagios/check_tcp libexec/nagios/check_time libexec/nagios/check_udp -libexec/nagios/check_udp2 libexec/nagios/check_ups libexec/nagios/check_users libexec/nagios/negate diff --git a/net/nagios-plugins/distinfo b/net/nagios-plugins/distinfo index cea411a62e0..37b03624a5e 100644 --- a/net/nagios-plugins/distinfo +++ b/net/nagios-plugins/distinfo @@ -1,16 +1,15 @@ -$NetBSD: distinfo,v 1.5 2008/03/22 14:52:21 tonnerre Exp $ +$NetBSD: distinfo,v 1.6 2008/05/27 21:22:03 tonnerre Exp $ -SHA1 (nagios-plugins-1.4.3.tar.gz) = c26fc2f31d7579c3a8174dcd1965046c4b1c8d37 -RMD160 (nagios-plugins-1.4.3.tar.gz) = bc1d4f8cddd481775c514758a462fe533e01e846 -Size (nagios-plugins-1.4.3.tar.gz) = 1257775 bytes -SHA1 (patch-aa) = b0db6110edb7e75121bbee7c996e36454e820a41 -SHA1 (patch-ab) = 1bcd6ddd5ef77c4ab726de4d6ac0a50fd525fa47 -SHA1 (patch-ad) = 2b88b23b790b454cb1f5e2dc1b6735a43534834c -SHA1 (patch-ae) = c22cbbaece4c9145356f96abd9d72192c226b19f -SHA1 (patch-af) = 626810863f909652202ead6bcf4b00494d1d758f +SHA1 (nagios-plugins-1.4.11.tar.gz) = bc91a57ad6f5468b17f24429ba25225cfff45d59 +RMD160 (nagios-plugins-1.4.11.tar.gz) = 4f33e796f8eac2d8d13cbecbcc1191857e1b5f15 +Size (nagios-plugins-1.4.11.tar.gz) = 1734230 bytes +SHA1 (patch-ab) = aaa6938dd165cf348e798e02c34ee82a86eedf7c +SHA1 (patch-ad) = edf12abc20e8dfe4095e4515c27046579639d1ae +SHA1 (patch-ae) = 775fc9d8c25eec6050d709e8a377c8deb17bcf66 +SHA1 (patch-af) = 186eec6496ea2659756897e5833510cb6a39009f SHA1 (patch-ah) = b9f9f36d2c77ac08213dfea4df443872230f8099 SHA1 (patch-ai) = 383f5b19466c82454e198e1b9cdbec2dcfd04047 -SHA1 (patch-ak) = c3d9f6ea9a971c45ec4159f800c2a975a3013c82 -SHA1 (patch-al) = cfeef69928795681f17e1faa1639fb3e57a31c32 +SHA1 (patch-ak) = 801eaa64d88db20880c8b7e61922f198fc5791ac +SHA1 (patch-al) = 658079cb3669ffcf2b0d158816b048c412f78d01 SHA1 (patch-am) = ed7e108505679e739449b5eed6101f307e23f436 -SHA1 (patch-an) = 36321b622aacb1e195e7557b9a2e00ae32953f77 +SHA1 (patch-an) = da7addcb3b9aaac0422ae7fa29afb26fe8bbd6a1 diff --git a/net/nagios-plugins/patches/patch-aa b/net/nagios-plugins/patches/patch-aa deleted file mode 100644 index 479b56fb232..00000000000 --- a/net/nagios-plugins/patches/patch-aa +++ /dev/null @@ -1,100 +0,0 @@ -$NetBSD: patch-aa,v 1.1 2008/03/22 14:52:21 tonnerre Exp $ - ---- plugins/check_http.c.orig 2006-04-05 09:58:27.000000000 +0200 -+++ plugins/check_http.c -@@ -34,7 +34,8 @@ const char *email = "nagiosplug-devel@li - enum { - MAX_IPV4_HOSTLENGTH = 255, - HTTP_PORT = 80, -- HTTPS_PORT = 443 -+ HTTPS_PORT = 443, -+ MAX_PORT = 65535 - }; - - #ifdef HAVE_SSL -@@ -1043,14 +1044,14 @@ check_http (void) - - /* per RFC 2396 */ - #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " --#define URI_HTTP "%[HTPShtps]://" --#define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" --#define URI_PORT ":%[0123456789]" -+#define URI_HTTP "%5[HTPShtps]" -+#define URI_HOST "%255[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" -+#define URI_PORT "%6d" /* MAX_PORT's width is 5 chars, 6 to detect overflow */ - #define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" --#define HD1 URI_HTTP URI_HOST URI_PORT URI_PATH --#define HD2 URI_HTTP URI_HOST URI_PATH --#define HD3 URI_HTTP URI_HOST URI_PORT --#define HD4 URI_HTTP URI_HOST -+#define HD1 URI_HTTP "://" URI_HOST ":" URI_PORT "/" URI_PATH -+#define HD2 URI_HTTP "://" URI_HOST "/" URI_PATH -+#define HD3 URI_HTTP "://" URI_HOST ":" URI_PORT -+#define HD4 URI_HTTP "://" URI_HOST - #define HD5 URI_PATH - - void -@@ -1061,7 +1062,6 @@ redir (char *pos, char *status_line) - char xx[2]; - char type[6]; - char *addr; -- char port[6]; - char *url; - - addr = malloc (MAX_IPV4_HOSTLENGTH + 1); -@@ -1093,10 +1093,8 @@ redir (char *pos, char *status_line) - die (STATE_UNKNOWN, _("could not allocate url\n")); - - /* URI_HTTP, URI_HOST, URI_PORT, URI_PATH */ -- if (sscanf (pos, HD1, type, addr, port, url) == 4) { -+ if (sscanf (pos, HD1, type, addr, &i, url) == 4) - use_ssl = server_type_check (type); -- i = atoi (port); -- } - - /* URI_HTTP URI_HOST URI_PATH */ - else if (sscanf (pos, HD2, type, addr, url) == 3 ) { -@@ -1105,10 +1103,9 @@ redir (char *pos, char *status_line) - } - - /* URI_HTTP URI_HOST URI_PORT */ -- else if(sscanf (pos, HD3, type, addr, port) == 3) { -+ else if(sscanf (pos, HD3, type, addr, &i) == 3) { - strcpy (url, HTTP_URL); - use_ssl = server_type_check (type); -- i = atoi (port); - } - - /* URI_HTTP URI_HOST */ -@@ -1154,7 +1151,6 @@ redir (char *pos, char *status_line) - _("WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"), - type, addr, i, url, (display_html ? "</A>" : "")); - -- server_port = i; - strcpy (server_type, type); - - free (host_name); -@@ -1164,7 +1160,22 @@ redir (char *pos, char *status_line) - server_address = strdup (addr); - - free (server_url); -- server_url = strdup (url); -+ if ((url[0] == '/')) -+ server_url = strdup (url); -+ else if (asprintf(&server_url, "/%s", url) == -1) -+ die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate server_url%s\n"), -+ display_html ? "</A>" : ""); -+ free(url); -+ -+ if ((server_port = i) > MAX_PORT) -+ die (STATE_UNKNOWN, -+ _("HTTP UNKNOWN - Redirection to port above %d - %s://%s:%d%s%s\n"), -+ MAX_PORT, server_type, server_address, server_port, server_url, -+ display_html ? "</A>" : ""); -+ -+ if (verbose) -+ printf ("Redirection to %s://%s:%d%s\n", server_type, server_address, -+ server_port, server_url); - - check_http (); - } diff --git a/net/nagios-plugins/patches/patch-ab b/net/nagios-plugins/patches/patch-ab index 0390e11ef48..54743f0c16e 100644 --- a/net/nagios-plugins/patches/patch-ab +++ b/net/nagios-plugins/patches/patch-ab @@ -1,8 +1,17 @@ -$NetBSD: patch-ab,v 1.2 2006/08/17 14:20:14 taca Exp $ +$NetBSD: patch-ab,v 1.3 2008/05/27 21:22:03 tonnerre Exp $ ---- configure.orig 2006-04-19 12:52:19.000000000 +0900 +--- configure.orig 2007-12-13 23:42:38.000000000 +0100 +++ configure -@@ -24395,7 +24395,7 @@ _ACEOF +@@ -1058,7 +1058,7 @@ dvidir='${docdir}' + pdfdir='${docdir}' + psdir='${docdir}' + libdir='${exec_prefix}/lib' +-localedir='${datarootdir}/locale' ++localedir='${datarootdir}/nagios/locale' + mandir='${datarootdir}/man' + + ac_prev= +@@ -21137,7 +21137,7 @@ _ACEOF fi @@ -11,7 +20,7 @@ $NetBSD: patch-ab,v 1.2 2006/08/17 14:20:14 taca Exp $ if test -n "$PGSQL"; then LDFLAGS="$LDFLAGS -L$PGSQL/lib" CPPFLAGS="$CPPFLAGS -I$PGSQL/include" -@@ -25040,7 +25040,7 @@ _ACEOF +@@ -21746,7 +21746,7 @@ _ACEOF fi @@ -20,7 +29,7 @@ $NetBSD: patch-ab,v 1.2 2006/08/17 14:20:14 taca Exp $ EXTRAS="$EXTRAS check_radius" RADIUSLIBS="-lradiusclient" -@@ -25121,7 +25121,7 @@ _ACEOF +@@ -21901,7 +21901,7 @@ _ACEOF fi @@ -29,70 +38,77 @@ $NetBSD: patch-ab,v 1.2 2006/08/17 14:20:14 taca Exp $ LDAPLIBS="-lldap -llber"\ LDAPINCLUDE="-I/usr/include/ldap" -@@ -30212,7 +30212,7 @@ fi +@@ -25688,7 +25688,7 @@ fi then - echo "$as_me:$LINENO: checking for nslookup syntax" >&5 - echo $ECHO_N "checking for nslookup syntax... $ECHO_C" >&6 + { echo "$as_me:$LINENO: checking for nslookup syntax" >&5 + echo $ECHO_N "checking for nslookup syntax... $ECHO_C" >&6; } - if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null + if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | fgrep "Invalid option: sil" >/dev/null then ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" - echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5 -@@ -30530,7 +30530,7 @@ else - echo "${ECHO_T}no" >&6 + { echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5 +@@ -25911,7 +25911,7 @@ echo "${ECHO_T}no" >&6; } fi + -if test -x "$PATH_TO_LMSTAT" +if false then cat >>confdefs.h <<_ACEOF -@@ -30698,7 +30698,7 @@ if test "${with_snmpget_command+set}" = - withval="$with_snmpget_command" - PATH_TO_SNMPGET=$withval - fi; +@@ -26082,7 +26082,7 @@ if test "${with_snmpget_command+set}" = + withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval + fi + -if test -n "$PATH_TO_SNMPGET" +if test -n "$PATH_TO_SNMPGET" -a "$PATH_TO_SNMPGET" != "no" then cat >>confdefs.h <<_ACEOF -@@ -30765,7 +30765,7 @@ _ACEOF +@@ -26141,7 +26141,7 @@ if test "${with_snmpgetnext_command+set} + withval=$with_snmpgetnext_command; PATH_TO_SNMPGETNEXT=$withval + fi + +-if test -n "$PATH_TO_SNMPGETNEXT" ++if test -n "$PATH_TO_SNMPGETNEXT" -a "$PATH_TO_SNMPGETNEXT" != "no" + then + + cat >>confdefs.h <<_ACEOF +@@ -26150,7 +26150,7 @@ _ACEOF fi -if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) +if false then - echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5 - echo $ECHO_N "checking for Net::SNMP perl module... $ECHO_C" >&6 -@@ -30929,7 +30929,7 @@ if test "${with_fping_command+set}" = se - withval="$with_fping_command" - PATH_TO_FPING=$withval - fi; + { echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5 + echo $ECHO_N "checking for Net::SNMP perl module... $ECHO_C" >&6; } +@@ -26317,7 +26317,7 @@ if test "${with_fping_command+set}" = se + withval=$with_fping_command; PATH_TO_FPING=$withval + fi + -if test -n "$PATH_TO_FPING" +if test -n "$PATH_TO_FPING" -a "$PATH_TO_FPING" != "no" then cat >>confdefs.h <<_ACEOF -@@ -32115,7 +32115,7 @@ _ACEOF - +@@ -27533,7 +27533,7 @@ if test -n "$PATH_TO_APTGET" ; then fi + -if test -f plugins/check_nt.c ; then +if false ; then EXTRAS="$EXTRAS check_nt" elif test -f ../plugins/check_nt.c ; then EXTRAS="$EXTRAS check_nt" -@@ -41104,6 +41104,12 @@ do - _ACEOF - cat >>$CONFIG_STATUS <<\_ACEOF +@@ -45418,6 +45418,10 @@ do + case $ac_option in + # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + : Avoid regenerating within pkgsrc + exit 0 + : Avoid regenerating within pkgsrc + exit 0 -+ : Avoid regenerating within pkgsrc -+ exit 0 ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + echo "$ac_cs_version"; exit ;; diff --git a/net/nagios-plugins/patches/patch-ad b/net/nagios-plugins/patches/patch-ad index 15126b27380..da7ff080cc0 100644 --- a/net/nagios-plugins/patches/patch-ad +++ b/net/nagios-plugins/patches/patch-ad @@ -1,25 +1,25 @@ -$NetBSD: patch-ad,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ +$NetBSD: patch-ad,v 1.2 2008/05/27 21:22:03 tonnerre Exp $ ---- plugins-scripts/Makefile.in.orig 2005-08-01 14:34:40.000000000 -0700 -+++ plugins-scripts/Makefile.in 2005-08-04 11:02:01.000000000 -0700 -@@ -238,14 +238,14 @@ - with_nagios_user = @with_nagios_user@ +--- plugins-scripts/Makefile.in.orig 2007-12-13 23:42:35.000000000 +0100 ++++ plugins-scripts/Makefile.in +@@ -330,15 +330,11 @@ sysconfdir = @sysconfdir@ + target_alias = @target_alias@ with_trusted_path = @with_trusted_path@ SUFFIXES = .pl .sh -libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \ -- check_log check_ntp check_oracle check_rpc check_sensors check_wave \ +- check_log check_oracle check_rpc check_sensors check_wave \ - check_ifstatus check_ifoperstatus check_mailq check_file_age \ -+libexec_SCRIPTS = check_ircd \ -+ check_log check_ntp check_rpc \ -+ check_mailq check_file_age \ - utils.sh utils.pm - +- utils.sh utils.pm +- -EXTRA_DIST = check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \ - check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \ - check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \ -+EXTRA_DIST = check_ircd.pl \ -+ check_log.sh check_ntp.pl check_rpc.pl \ -+ check_mailq.pl check_file_age.pl \ - utils.sh.in utils.pm.in t +- utils.sh.in utils.pm.in t ++libexec_SCRIPTS = check_ircd check_log check_ntp check_rpc check_mailq \ ++ check_file_age utils.sh utils.pm ++ ++EXTRA_DIST = check_ircd.pl check_log.sh check_ntp.pl check_rpc.pl \ ++ check_mailq.pl check_file_age.pl utils.sh.in utils.pm.in t TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) + TESTS = @SCRIPT_TEST@ diff --git a/net/nagios-plugins/patches/patch-ae b/net/nagios-plugins/patches/patch-ae index 3fb10bc7073..3bf889914e8 100644 --- a/net/nagios-plugins/patches/patch-ae +++ b/net/nagios-plugins/patches/patch-ae @@ -1,17 +1,8 @@ -$NetBSD: patch-ae,v 1.2 2006/08/17 14:20:14 taca Exp $ +$NetBSD: patch-ae,v 1.3 2008/05/27 21:22:03 tonnerre Exp $ ---- plugins/Makefile.am.orig 2006-03-21 20:42:59.000000000 +0900 +--- plugins/Makefile.am.orig 2007-12-12 02:27:48.000000000 +0100 +++ plugins/Makefile.am -@@ -46,7 +46,7 @@ test: - cd tests && make test - perl -I $(top_builddir) -I $(top_srcdir) ../test.pl - --AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ -+#AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ - - ############################################################################## - # the actual targets -@@ -155,7 +155,7 @@ install-exec-hook: +@@ -162,7 +162,7 @@ install-exec-hook: cd $(DESTDIR)$(libexecdir) && \ for i in $(check_tcp_programs) ; do rm -f $$i; ln -s check_tcp $$i ; done ;\ if [ -x check_ldap ] ; then rm -f check_ldaps ; ln -s check_ldap check_ldaps ; fi diff --git a/net/nagios-plugins/patches/patch-af b/net/nagios-plugins/patches/patch-af index 22432cdf3e2..74343954641 100644 --- a/net/nagios-plugins/patches/patch-af +++ b/net/nagios-plugins/patches/patch-af @@ -1,17 +1,17 @@ -$NetBSD: patch-af,v 1.2 2006/08/17 14:20:14 taca Exp $ +$NetBSD: patch-af,v 1.3 2008/05/27 21:22:03 tonnerre Exp $ ---- plugins/Makefile.in.orig 2006-04-19 12:52:11.000000000 +0900 +--- plugins/Makefile.in.orig 2007-12-13 23:42:36.000000000 +0100 +++ plugins/Makefile.in -@@ -407,7 +407,7 @@ SSLOBJS = sslutils.o - NETLIBS = $(NETOBJS) $(SOCKETLIBS) - TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) - TESTS = @PLUGIN_TEST@ --AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ -+#AM_INSTALL_PROGRAM_FLAGS = @INSTALL_OPTS@ - - ############################################################################## - # the actual targets -@@ -1129,7 +1129,7 @@ $(check_tcp_programs): check_tcp +@@ -34,7 +34,7 @@ PRE_UNINSTALL = : + POST_UNINSTALL = : + build_triplet = @build@ + host_triplet = @host@ +-libexec_PROGRAMS = check_apt$(EXEEXT) check_cluster$(EXEEXT) \ ++libexec_PROGRAMS = \ + check_disk$(EXEEXT) check_dummy$(EXEEXT) check_http$(EXEEXT) \ + check_load$(EXEEXT) check_mrtg$(EXEEXT) \ + check_mrtgtraf$(EXEEXT) check_ntp$(EXEEXT) \ +@@ -1131,7 +1131,7 @@ $(check_tcp_programs): check_tcp install-exec-hook: cd $(DESTDIR)$(libexecdir) && \ for i in $(check_tcp_programs) ; do rm -f $$i; ln -s check_tcp $$i ; done ;\ diff --git a/net/nagios-plugins/patches/patch-ak b/net/nagios-plugins/patches/patch-ak index e3e76bc81d9..6f30cf339ed 100644 --- a/net/nagios-plugins/patches/patch-ak +++ b/net/nagios-plugins/patches/patch-ak @@ -1,8 +1,8 @@ -$NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ +$NetBSD: patch-ak,v 1.2 2008/05/27 21:22:03 tonnerre Exp $ ---- lib/mountlist.c.orig 2005-10-14 22:09:29.000000000 +0200 -+++ lib/mountlist.c 2005-10-14 22:23:14.000000000 +0200 -@@ -66,7 +66,11 @@ +--- gl/mountlist.c.orig 2007-01-24 23:47:25.000000000 +0100 ++++ gl/mountlist.c +@@ -57,7 +57,11 @@ char *strstr (); # if HAVE_STRUCT_FSSTAT_F_FSTYPENAME # define FS_TYPE(Ent) ((Ent).f_fstypename) # else @@ -15,7 +15,7 @@ $NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ # endif #endif /* MOUNTED_GETFSSTAT */ -@@ -109,6 +113,10 @@ +@@ -104,6 +108,10 @@ char *strstr (); # include <sys/statfs.h> #endif @@ -26,18 +26,18 @@ $NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ #ifdef MOUNTED_LISTMNTENT # include <mntent.h> #endif -@@ -173,7 +181,7 @@ +@@ -178,7 +186,7 @@ char *strstr (); #if MOUNTED_GETMNTINFO --# if ! HAVE_F_FSTYPENAME_IN_STATFS -+# if ! HAVE_F_FSTYPENAME_IN_STATFS && ! STAT_STATVFS +-# if ! HAVE_STRUCT_STATFS_F_FSTYPENAME ++# if ! HAVE_STRUCT_STATFS_F_FSTYPENAME && ! STAT_STATVFS static char * - fstype_to_string (short t) + fstype_to_string (short int t) { -@@ -271,12 +279,16 @@ +@@ -275,9 +283,13 @@ fstype_to_string (short int t) + # endif - /* __NetBSD__ || BSD_NET2 || __OpenBSD__ */ static char * +#ifdef STAT_STATVFS +fsp_to_string (const struct statvfs *fsp) @@ -45,16 +45,12 @@ $NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ fsp_to_string (const struct statfs *fsp) +#endif { --# if defined HAVE_F_FSTYPENAME_IN_STATFS -+# if defined HAVE_F_FSTYPENAME_IN_STATFS || defined STAT_STATVFS +-# if HAVE_STRUCT_STATFS_F_FSTYPENAME ++# if defined HAVE_STRUCT_STATFS_F_FSTYPENAME || defined STAT_STATVFS return (char *) (fsp->f_fstypename); # else -- return fstype_to_string (fsp->f_type); -+ return fstype_to_string (fsp->f_type); - # endif - } - -@@ -381,7 +393,11 @@ + return fstype_to_string (fsp->f_type); +@@ -413,7 +425,11 @@ read_file_system_list (bool need_fs_type #ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */ { @@ -66,7 +62,7 @@ $NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ int entries; entries = getmntinfo (&fsp, MNT_NOWAIT); -@@ -543,9 +559,17 @@ +@@ -601,9 +617,17 @@ read_file_system_list (bool need_fs_type { int numsys, counter; size_t bufsize; @@ -84,7 +80,7 @@ $NetBSD: patch-ak,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ if (numsys < 0) return (NULL); if (SIZE_MAX / sizeof *stats <= numsys) -@@ -608,10 +632,18 @@ +@@ -666,10 +690,18 @@ read_file_system_list (bool need_fs_type # ifdef GETFSTYP /* SVR3. */ if (need_fs_type) { diff --git a/net/nagios-plugins/patches/patch-al b/net/nagios-plugins/patches/patch-al index ef11283469b..a8fc97d2c20 100644 --- a/net/nagios-plugins/patches/patch-al +++ b/net/nagios-plugins/patches/patch-al @@ -1,6 +1,6 @@ -$NetBSD: patch-al,v 1.1 2006/10/16 05:29:40 seb Exp $ +$NetBSD: patch-al,v 1.2 2008/05/27 21:22:03 tonnerre Exp $ ---- contrib/check_axis.sh.orig 2003-05-26 10:09:23.000000000 +0000 +--- contrib/check_axis.sh.orig 2003-05-26 12:09:23.000000000 +0200 +++ contrib/check_axis.sh @@ -5,7 +5,7 @@ port=$2 usr=$3 @@ -18,9 +18,9 @@ $NetBSD: patch-al,v 1.1 2006/10/16 05:29:40 seb Exp $ -if [ "$status" == "Printing" ]; then +if [ "$status" = "Printing" ]; then bytes=`echo $lines | awk '{ print $4 }'`; - comments=`echo $lines | tr -d "
" | awk '{ print $5 " " $6 }'`; - else -@@ -40,48 +40,48 @@ if [ "$comma" -eq "1" ]; then + comments=`echo $lines | tr -d " + " | awk '{ print $5 " " $6 }'`; +@@ -42,48 +42,48 @@ if [ "$comma" -eq "1" ]; then fi diff --git a/net/nagios-plugins/patches/patch-an b/net/nagios-plugins/patches/patch-an index 16033d75844..7395db12b39 100644 --- a/net/nagios-plugins/patches/patch-an +++ b/net/nagios-plugins/patches/patch-an @@ -1,13 +1,13 @@ -$NetBSD: patch-an,v 1.1 2007/03/30 05:52:37 grant Exp $ +$NetBSD: patch-an,v 1.2 2008/05/27 21:22:03 tonnerre Exp $ ---- lib/Makefile.in.orig 2006-04-19 13:52:06.000000000 +1000 +--- lib/Makefile.in.orig 2007-12-13 23:42:34.000000000 +0100 +++ lib/Makefile.in -@@ -82,7 +82,7 @@ DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(t - depcomp = $(SHELL) $(top_srcdir)/depcomp +@@ -109,7 +109,7 @@ DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(t + depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CPPFLAGS_LFS) - LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ + LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) |