Tue Jul 4 19:45:19 2017 UTC ()
Upgrade net/nagios-plugins to 2.2.1.

Clean up the package a little, and merge in patches from the shared
nagios-plugin-* packages to avoid duplication.  Changes since 2.0.3:

2.2.1 2017-04-19
	FIXES
	check_users: not accepting zero as the threshold
	check_http: reports warning where it should report ok with -e
	check_snmp: does not work with -6 --ipv6 flags
	check_swap: threshold calculation in bytes requires subtracting 65
	check_uptime: fixed backward help text for thresholds
	check_http: Don窶冲 prematurely report success when checking HTTP TLS cert validity
	check_http: fix parsing the last header
	check_mailq: Fix for Postfix and better Sudo Checking
	configure.ac: Fix spelling error
	check_ntp_peer: requires newline when there is a socket timeout (fix in netutils.c)
	check_users: segmentation fault if both thresholds are not provided
	check_dns: DNS CRITICAL - expected 窶�{hostname}.窶� but got 'name = {hostname}.'
	check_mailq: Nullmailer Regex is not working for Ubuntu 16.04
	check_swap: Downstream Fedora patch: Prevent check_swap from returning OK, if no swap activated
	Building RPMs on Amazon Linux - Add 'install-root' on line 165 of spec file

2.2.0 2017-01-19
	ENHANCEMENTS
	check_flexlm: if `-F <license file>` is not specified, will use `LM_LICENSE_FILE` environment var
	check_load: Added per cpu load average message
	check_smtp: add -L flag to support LMTP (LHLO instead of HELO/EHLO)

	FIXES
	check_http: -e breaks -f
	check_mrtg: Add state to status output
	check_ping: ping runs 30 times when host is down
	check_icmp: does not have the -p argument in the help
	check_dns: Segfaulting with timeout > 26 sec
	check_disk: missing -lrt on Solaris
	check_http: segmentation fault
	check_http: help text update for virtual hosts
	check_snmp: Thresholds were being shown twice
	check_hpjd: some jd 610 cards have a false flag that printer is offline
	check_http: Handle reference redirect like //www.site.org/test
	check_disk: alerts issued too soon
	fix: Allocator sizeof operand mismatch
	fix: Dead assignment
	Shellcheck: fix most of the shellcheck warnings.
	check_ntp: touch ntp servers at most once every seconds
	check_dns: authoritative test (-A) is broken
	check_dns: reports TXT records incorrectly
	check_file_age: does not handle filenames WITHOUT space!
	de,fr.po: fix syntax errors end-of-line within string
	lib/parse_ini.c: fix gcc warning: implicit declaration of function 窶亙dpriv_temp_drop窶� and 窶亙dpriv_temp_restore窶�
	add openssl 1.1 support

2.1.4 2016-11-17
	FIXES
	check_http: Don't include default Accept header if one is provided
	check_disk: added "fuse.gvfsd-fuse" to list of fs types to ignore
	check_http: Fixed non-text chunked-encoded decoding
	check_http: segmentation fault (FreeBSD)
	check_dns: Update IF_RECORD to not erase query_found
	check_http: SSL Certificate check returns 12:00:00AM <local timezone>
	check_http: -u is misleading. Changed help text
	check_file_age: does not handle filenames with space
	check_snmp: units label option outputs the label in the incorrect location
	plugins-root/check_dhcp.c: fix a potential segfault
    check_users: not correctly detecting thresholds

2.1.3 2016-09-12
	ENHANCEMENTS
	SNI support in check_tcp (ddbilik)
	check_disk_smb.pl: add support for -k for kerberos authentication
	check_file_age.c: allow wildcard matching

	FIXES
	check_tcp.c: tools/build_perl_modules hardcodes the perl used
	check_game.c: reports ping as number of players (Jason Rivers)
	fix some gcc5 warnings (Mario Trangoni)
	check_cluster.c: Update wording in comments (Troy Lea)
	check_nagios.c: could not locate a running nagios process
	check_swap.c: does not accept threshold of zero
	check_swap.c: uses inconsistent checks on negative thresholds
	check_snmp.c: --offset does not appear to do anything (Troy Lea)
	sslutils.c: output has first line of "SSL Version: xxxxxx"
	  effects anything using sslutils including check_http, check_dhcp
	  and others
	utils_cmd.c: when using ssh (or check-by-ssh) with ControlMaster/ControlPersist,
	  nagios times out the first time and one gets zombie processes (Gordon Messmer)

2.1.2 2016-08-01
	SECURITY FIXES

	ENHANCEMENTS
	check_snmp's performance data now also includes warning/critical
	  thresholds
	New check_snmp "-N" option to specify SNMPv3 context name
	New check_nt "-l" parameters: seconds|minutes|hours|days
	New check_mailq -s option which tells the plugin to use sudo(8)
	New -W/-C option for check_ldap to check number of entries (Gerhard Lausser)
	The check_http -S/--ssl option now accepts the arguments "1.1" and "1.2"
	  to force TLSv1.1 and TLSv1.2 connections, respectively
	The check_http -S/--ssl option now allows for specifying the desired
	  protocol with a "+" suffix to also accept newer versions
	New check_disk "-v" option to show troubled partition in verbose mode
	check_log.sh: Added a parameter -w (--max_warning) defining upper value to return a warning code
	check_ldap: Add support for LDAP URIs.
	check_file_age: Provide performance data
	check_by_ssh: added --hostname support
	check_ifstatus.pl: Add check_ifstatus option to ignore interfaces by name
	check_snmp: Introduce support for SNMPv3 context using "-N" option
	check_snmp.c: Added IPv6 support
	check_http: Added support for checking SSL-Websites through Proxies

	FIXES
	check_dig can now also use "drill" instead of "dig"
	check_dig honor the -4 and -6 switches
	check_ntp_peer: do not use uninitialized results for max state
	check_log.sh, check_oracle.sh, check_sensors.sh: Setting PATH at first
	check_log.sh: droping path from basename while evaluating PROGNAME
	check_tcp: Fix check_jabber to work with Openfire servers
	check_ifstatus.pl: Fix "-n" and "-u" options to ignore if either is set, not just both
	check_mrtgtraf: Fix perfdata to comply with perfdata UOM definition
	check_real, check_ntp: fix null termination
	check_apt: fix memset
	check_ssh: change warning to critical for protocal/version errors
	utils_cmd.c: avoid a segfault, if ulimit is set to unlimited
	utils_cmd.c: make constants from maxfd values
	configure.ac: Added particular ps command for HP-UX
	check_disk: Fix pthread start routine type
	check_http: Make header_value() and chunked-encoding decoding more robust
	check_http: fix Host header if explicitly set with -k
	sslutils.c: Forcing furter restriction of ciphers for current security concerns
	check_nagios, check_procs: Enable check_proc to monitor processes in PID name-spaced environments.
	check_dhcp.c: use /dev/urandom if available
	check_http.c: Don't decode page if it's not there
	check_disk.c: Prevent large tide values from truncation
	pst3.c: Fix for unclosed filehandle in pst3 on Solaris
	check_snmp: Timeticks are not being parsed correctly before performance data
        multiple *.h files: standardized header include fences
        multiple plugins/*.c files: fix unsafe signal handling
	sslutils.c: Fix compilation with GnuTLS which doesn't provide SSL_CTX_check_private_key()
	check_mailq.pl: fixed mailer names
	check_swap.c: Improving output when swap space has zero size
	check_icmp.c: Use kernel reception time on ICMP packets to compute rtt.
	check_icmp.c: make use of MSG_CONFIRM optional
	check_ldap.c: add counting of entries to check_ldap
	utils.c: add sperfdata() function which can handle threshold ranges
	sslutils.c: Check if OpenSSL supports SSLv3.
	check_dhcp.c: Fixes segfaults when running via monitoring worker (off-by-one)
	check_fping.c: autodetect ipv6 addresses
	sslutils.c: optimize output if certificate expires in less then 24h
	check_smtp.c: Let "-D" option imply "-S". Also QUIT SMTP connection when "-D" is used
	check_smtp.c: modified SSL check for use with -e
	check_tcp.c: Validate sent data size
	check_dns.c: conditional assignment
	check_dns.c: macro querytypes and auto cnames
	utils_cmd.c, utils_base.c: Multiple resource leaks
	check_http.c: Increase MAX_RE_SIZE from 256 to 2048
	check_procs.c: Changed the ps command args from axwo to axwwo allowing for longer output
	check_http.c: Allow a server to reply using only 'HTTP/1.x 200 OK' and a
		body, with no headers
	check_nt.c: check_nt does not correctly report a DNS entry it cannot resolve
	check_dhcp.c: check_dhcp broken on BSD

	TESTS
	check_procs.t: Add delay after forking in test to avoid race condition
	test.pl.in: Use "C" locale when running test suite
	check_http.t: Adjust date strings to the now-localized output
	check_dns.t - Fix Perl Warning. perl doesn't understand /d within "".
	check_snmp.t: skip extented snmp tests if snmpd has no perl support
	check_snmp.t: fix snmp test for included threshold
	check_http.t: fix tests for certificates expire date with seconds
	check_http.t: add faketime based tests for check_http

	LOCALIZATION

2.1.0 30th July 2015
	SECURITY FIXES
	ssl_utils.c - Disable SSLv3 & SSLv2 autonegotiation by default to limit poodle and other weak cipher attacks (sreinhardt)

	ENHANCEMENTS
	Timeout States Implemented - Plugins that support a timeout state will now also support specifying the exit state in case of timeout with the syntax -t <timeout>:<state> (abrist)
	Perl plugins now use FindBin for path discovery, obsoleting the nasty AWK script (evgeni, abrist)
	check_http.c - Added support for chunked transfer-encoding (koenwtje, dermoth, sreinhardt)
	check_radius.c - Added support for the FreeRADIUS Client library (weiss)
	check_snmp.c - Added thresholds to performance data (seemuellera)
	check_snmp.c - Added new option (-N) for SNMPv3 context (Johannes Engel)
	check_snmp.c - Added IPv6 support (abrist)
	check_ldap.c - Added a new option (-U) for LDAP URI support (qris)
	check_ifstatus.pl - Added new option (-n) to exclude interfaces (peelman, weiss)
	check_file_age.pl - Performance data output added (hggh)
	check_mailq.pl - Now supports sudo (Christopher Schultz, weiss)
	check_log.sh - Added a new option (-w) defining upper value to return a warning code (arvanus)

	FIXES
	check_by_ssh.c - Added --hostname support (sni)
	check_dbi.c - Spelling corrections (sreinhardt)
	check_dig.c - Fixed to work with dig/drill tools and ip version switch is now respected (abgandar)
	check_disk.c - Fix for hanging filesystems (Gerhard Lausser)
	check_disk.c - Partitions in problem state now reported in verbose mode (waja)
	check_disk.c - Prevent large tide values from truncation (JesperForsberg)
	check_dns.c - Server specific fixes and other cleanup (sreinhardt)
	check_http.c - Some small changes for readability (koenwtje)
	check_mrtgtraf.c - Added verbose output (sreinhardt)
	check_mrtgtraf.c - Perfdata now complies with UOM definition (Bobzikwick)
	check_ntp_peer.c - No longer uses uninitialized results for max state (sni)
	check_procs.c - Rare race condition fixed (Mikael Falkvidd)
	check_ssh.c - Now exits with CRITICAL when version/protocol string check fails to match (sni)
	check_tcp.c - Help description of escape characters now correct (Sebastian Herbszt)
	check_tcp.c - Fix to support Openfire servers with check_jabber (weiss)
	check_ups.c - Spelling corrections (sreinhardt)
	pst3.c - Fix for unclosed file handle in pst3 on Solaris (jwinkle01)
	plugins-scripts/*.sh - Trusted path fixes (waja)
	netutils.h - Decreased max path to 104 bytes to compensate for BSD paths (sreinhardt)
	configure.ac - Fix for HP-UX ps command (Tontonitch)
	lib/utils_cmd.c - Fix for potential segfault when ulimits are set to unlimited (nafets)
	lib/parse_ini.c - Many small fixes from coverity scans and the community (sreinhardt, weiss)
	lib/util_base.c - Code cleanup (sreinhardt)
	lib/utils_base.c - Add EIUD to state retention path for multi-user permissions support (sreinhardt)
	po/* - Spelling corrections (sreinhardt)
	Multiple resource leaks fixed (sreinhardt)
	Many other small fixes and cleanup caught by coverity (multiple contributors)

	TESTS
	Many small fixes to tests (multiple contributors)

	LOCALIZATION
	Many small fixes for locales and localizations (multiple contributors)


(jperkin)
diff -r1.44 -r1.45 pkgsrc/net/nagios-plugins/Makefile
diff -r1.12 -r1.13 pkgsrc/net/nagios-plugins/Makefile.common
diff -r1.10 -r1.11 pkgsrc/net/nagios-plugins/PLIST
diff -r1.20 -r1.21 pkgsrc/net/nagios-plugins/distinfo
diff -r1.6 -r1.7 pkgsrc/net/nagios-plugins/patches/patch-ad
diff -r1.6 -r1.7 pkgsrc/net/nagios-plugins/patches/patch-af
diff -r1.4 -r1.5 pkgsrc/net/nagios-plugins/patches/patch-ah
diff -r1.3 -r0 pkgsrc/net/nagios-plugins/patches/patch-ai
diff -r1.7 -r0 pkgsrc/net/nagios-plugins/patches/patch-ak
diff -r1.5 -r1.6 pkgsrc/net/nagios-plugins/patches/patch-an
diff -r1.2 -r1.3 pkgsrc/net/nagios-plugins/patches/patch-configure
diff -r1.2 -r1.3 pkgsrc/net/nagios-plugins/patches/patch-plugins__check_swap.c
diff -r1.1 -r1.2 pkgsrc/net/nagios-plugins/patches/patch-plugins-root_Makefile.in
diff -r0 -r1.1 pkgsrc/net/nagios-plugins/patches/patch-plugins-scripts_check__breeze.pl
diff -r0 -r1.1 pkgsrc/net/nagios-plugins/patches/patch-plugins-scripts_check__wave.pl
diff -r0 -r1.1 pkgsrc/net/nagios-plugins/patches/patch-plugins_check__radius.c

cvs diff -r1.44 -r1.45 pkgsrc/net/nagios-plugins/Makefile (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/Makefile 2016/10/01 18:23:18 1.44
+++ pkgsrc/net/nagios-plugins/Makefile 2017/07/04 19:45:18 1.45
@@ -1,50 +1,47 @@ @@ -1,50 +1,47 @@
1# $NetBSD: Makefile,v 1.44 2016/10/01 18:23:18 bouyer Exp $ 1# $NetBSD: Makefile,v 1.45 2017/07/04 19:45:18 jperkin Exp $
2# 2#
3 3
4PKGREVISION= 4 
5CATEGORIES= net sysutils 4CATEGORIES= net sysutils
6 5
7MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= http://sourceforge.net/projects/nagiosplug/ 7HOMEPAGE= http://sourceforge.net/projects/nagiosplug/
9COMMENT= Nagios plugins 8COMMENT= Nagios plugins
10LICENSE= gnu-gpl-v2 9LICENSE= gnu-gpl-v2
11 10
12PKG_DESTDIR_SUPPORT= user-destdir 11PKG_DESTDIR_SUPPORT= user-destdir
13 12
14.include "../../net/nagios-plugins/Makefile.common" 13.include "../../net/nagios-plugins/Makefile.common"
15 14
16.include "../../mk/bsd.prefs.mk" 
17 
18USE_TOOLS+= msgfmt msgmerge intltool perl:run xgettext 15USE_TOOLS+= msgfmt msgmerge intltool perl:run xgettext
19 16
20PKG_GROUPS+= ${NAGIOS_GROUP} 17PKG_GROUPS+= ${NAGIOS_GROUP}
21BUILD_DEFS+= ${NAGIOS_GROUP} 
22 18
23CONFIGURE_ARGS+= --without-pgsql --without-mysql \ 19CONFIGURE_ARGS+= --without-pgsql --without-mysql \
24 --without-smbclient-command --without-snmpget-command \ 20 --without-smbclient-command --without-snmpget-command \
25 --without-snmpgetnext-command --without-fping-command \ 21 --without-snmpgetnext-command --without-fping-command \
26 --without-apt-get-command 22 --without-apt-get-command
27 23
28SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_icmp ${SETUID_ROOT_PERMS} 24SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_icmp ${SETUID_ROOT_PERMS}
29SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_dhcp ${SETUID_ROOT_PERMS} 25SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_dhcp ${SETUID_ROOT_PERMS}
30 26
31PLIST_VARS+= linux sunos NetBSD 27PLIST_VARS+= ide swap
32.if ${OPSYS} == "Linux" 28
33PLIST.linux= yes 29.if ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
34.elif ${OPSYS} == "SunOS" 30PLIST.ide= yes
35PLIST.sunos= yes 31.endif
36.elif ${OPSYS} == "NetBSD" 32
37PLIST.NetBSD= yes 33.if ${OPSYS} != "Darwin"
 34PLIST.swap= yes
38.endif 35.endif
39 36
40.if ${OPSYS} == "NetBSD" 37.if ${OPSYS} == "NetBSD"
41SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_ide_smart \ 38SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_ide_smart \
42 ${REAL_ROOT_USER} ${NAGIOS_GROUP} 4551 39 ${REAL_ROOT_USER} ${NAGIOS_GROUP} 4551
43.endif 40.endif
44 41
45# required to enable large file support on Solaris 42# required to enable large file support on Solaris
46.if ${OPSYS} == "SunOS" 43.if ${OPSYS} == "SunOS"
47CPPFLAGS_LFS!= getconf LFS_CFLAGS 44CPPFLAGS_LFS!= getconf LFS_CFLAGS
48MAKE_ENV+= CPPFLAGS_LFS=${CPPFLAGS_LFS:Q} 45MAKE_ENV+= CPPFLAGS_LFS=${CPPFLAGS_LFS:Q}
49.endif 46.endif
50LIBS.SunOS+= -lm 47LIBS.SunOS+= -lm

cvs diff -r1.12 -r1.13 pkgsrc/net/nagios-plugins/Makefile.common (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/Makefile.common 2016/02/25 16:20:51 1.12
+++ pkgsrc/net/nagios-plugins/Makefile.common 2017/07/04 19:45:18 1.13
@@ -1,22 +1,27 @@ @@ -1,22 +1,27 @@
1# $NetBSD: Makefile.common,v 1.12 2016/02/25 16:20:51 jperkin Exp $ 1# $NetBSD: Makefile.common,v 1.13 2017/07/04 19:45:18 jperkin Exp $
2# 2#
 3# used by net/nagios-plugin-ldap/Makefile
3# used by net/nagios-plugin-mysql/Makefile 4# used by net/nagios-plugin-mysql/Makefile
4# used by net/nagios-plugin-pgsql/Makefile 5# used by net/nagios-plugin-pgsql/Makefile
5# used by net/nagios-plugin-radius/Makefile 6# used by net/nagios-plugin-radius/Makefile
6# used by net/nagios-plugin-snmp/Makefile 7# used by net/nagios-plugin-snmp/Makefile
7# used by net/nagios-plugins/Makefile 8# used by net/nagios-plugins/Makefile
8 9
9PLUGINSVERSION= 2.0.3 10PLUGINSVERSION= 2.2.1
10DISTNAME= nagios-plugins-${PLUGINSVERSION} 11DISTNAME= nagios-plugins-${PLUGINSVERSION}
11MASTER_SITES?= http://nagios-plugins.org/download/ 12MASTER_SITES?= http://nagios-plugins.org/download/
12 13
13.include "../../net/nagios-base/Makefile.common" 14.include "../../net/nagios-base/Makefile.common"
14.include "../../mk/bsd.prefs.mk" 15
 16DISTINFO_FILE?= ${.CURDIR}/../../net/nagios-plugins/distinfo
 17PATCHDIR?= ${.CURDIR}/../../net/nagios-plugins/patches
 18
 19BUILD_DEFS+= NAGIOS_USER NAGIOS_GROUP
15 20
16CONFIGURE_ARGS.DragonFly+= fu_cv_sys_stat_statvfs=no 21CONFIGURE_ARGS.DragonFly+= fu_cv_sys_stat_statvfs=no
17 22
18CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER:Q} 23CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER:Q}
19CONFIGURE_ARGS+= --with-nagios-group=${NAGIOS_GROUP:Q} 24CONFIGURE_ARGS+= --with-nagios-group=${NAGIOS_GROUP:Q}
20CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/nagios 25CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/nagios
21 26
22CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} 27CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}

cvs diff -r1.10 -r1.11 pkgsrc/net/nagios-plugins/PLIST (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/PLIST 2015/04/03 17:50:27 1.10
+++ pkgsrc/net/nagios-plugins/PLIST 2017/07/04 19:45:18 1.11
@@ -1,28 +1,27 @@ @@ -1,28 +1,27 @@
1@comment $NetBSD: PLIST,v 1.10 2015/04/03 17:50:27 rodent Exp $ 1@comment $NetBSD: PLIST,v 1.11 2017/07/04 19:45:18 jperkin Exp $
2libexec/nagios/check_by_ssh 2libexec/nagios/check_by_ssh
3libexec/nagios/check_clamd 3libexec/nagios/check_clamd
4libexec/nagios/check_dhcp 4libexec/nagios/check_dhcp
5libexec/nagios/check_dig 5libexec/nagios/check_dig
6libexec/nagios/check_disk 6libexec/nagios/check_disk
7libexec/nagios/check_dns 7libexec/nagios/check_dns
8libexec/nagios/check_dummy 8libexec/nagios/check_dummy
9libexec/nagios/check_file_age 9libexec/nagios/check_file_age
10libexec/nagios/check_fping 10libexec/nagios/check_fping
11libexec/nagios/check_ftp 11libexec/nagios/check_ftp
12libexec/nagios/check_http 12libexec/nagios/check_http
13libexec/nagios/check_icmp 13libexec/nagios/check_icmp
14${PLIST.linux}libexec/nagios/check_ide_smart 14${PLIST.ide}libexec/nagios/check_ide_smart
15${PLIST.NetBSD}libexec/nagios/check_ide_smart 
16libexec/nagios/check_imap 15libexec/nagios/check_imap
17libexec/nagios/check_ircd 16libexec/nagios/check_ircd
18libexec/nagios/check_jabber 17libexec/nagios/check_jabber
19libexec/nagios/check_load 18libexec/nagios/check_load
20libexec/nagios/check_log 19libexec/nagios/check_log
21libexec/nagios/check_mailq 20libexec/nagios/check_mailq
22libexec/nagios/check_mrtg 21libexec/nagios/check_mrtg
23libexec/nagios/check_mrtgtraf 22libexec/nagios/check_mrtgtraf
24libexec/nagios/check_nagios 23libexec/nagios/check_nagios
25libexec/nagios/check_nntp 24libexec/nagios/check_nntp
26libexec/nagios/check_nntps 25libexec/nagios/check_nntps
27libexec/nagios/check_nt 26libexec/nagios/check_nt
28libexec/nagios/check_ntp 27libexec/nagios/check_ntp
@@ -30,26 +29,25 @@ libexec/nagios/check_ntp_peer @@ -30,26 +29,25 @@ libexec/nagios/check_ntp_peer
30libexec/nagios/check_ntp_time 29libexec/nagios/check_ntp_time
31libexec/nagios/check_nwstat 30libexec/nagios/check_nwstat
32libexec/nagios/check_overcr 31libexec/nagios/check_overcr
33libexec/nagios/check_ping 32libexec/nagios/check_ping
34libexec/nagios/check_pop 33libexec/nagios/check_pop
35libexec/nagios/check_procs 34libexec/nagios/check_procs
36libexec/nagios/check_real 35libexec/nagios/check_real
37libexec/nagios/check_rpc 36libexec/nagios/check_rpc
38libexec/nagios/check_simap 37libexec/nagios/check_simap
39libexec/nagios/check_smtp 38libexec/nagios/check_smtp
40libexec/nagios/check_spop 39libexec/nagios/check_spop
41libexec/nagios/check_ssh 40libexec/nagios/check_ssh
42libexec/nagios/check_ssmtp 41libexec/nagios/check_ssmtp
43libexec/nagios/check_swap 42${PLIST.swap}libexec/nagios/check_swap
44libexec/nagios/check_tcp 43libexec/nagios/check_tcp
45libexec/nagios/check_time 44libexec/nagios/check_time
46libexec/nagios/check_udp 45libexec/nagios/check_udp
47libexec/nagios/check_ups 46libexec/nagios/check_ups
48libexec/nagios/check_users 47libexec/nagios/check_users
49libexec/nagios/negate 48libexec/nagios/negate
50${PLIST.sunos}libexec/nagios/pst3 
51libexec/nagios/urlize 49libexec/nagios/urlize
52libexec/nagios/utils.pm 50libexec/nagios/utils.pm
53libexec/nagios/utils.sh 51libexec/nagios/utils.sh
54share/nagios/locale/de/LC_MESSAGES/nagios-plugins.mo 52share/nagios/locale/de/LC_MESSAGES/nagios-plugins.mo
55share/nagios/locale/fr/LC_MESSAGES/nagios-plugins.mo 53share/nagios/locale/fr/LC_MESSAGES/nagios-plugins.mo

cvs diff -r1.20 -r1.21 pkgsrc/net/nagios-plugins/distinfo (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/distinfo 2016/10/01 18:23:18 1.20
+++ pkgsrc/net/nagios-plugins/distinfo 2017/07/04 19:45:18 1.21
@@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
1$NetBSD: distinfo,v 1.20 2016/10/01 18:23:18 bouyer Exp $ 1$NetBSD: distinfo,v 1.21 2017/07/04 19:45:18 jperkin Exp $
2 2
3SHA1 (nagios-plugins-2.0.3.tar.gz) = 29b6183ab9d796299dc17c395eef493415d1e9d6 3SHA1 (nagios-plugins-2.2.1.tar.gz) = 0d3fc8876343a906f0dcc2c00850e4ad956a150a
4RMD160 (nagios-plugins-2.0.3.tar.gz) = b682b126c78df51f64d9cb8599d2f9dfd411d5f4 4RMD160 (nagios-plugins-2.2.1.tar.gz) = 39c364ac08854a1829d47562d4add1ae58a49334
5SHA512 (nagios-plugins-2.0.3.tar.gz) = 2753e6f3fc7433a5583fee01e63a65b9ea74155964f2b6e6bf3458e56cb29ea5dbd020f83816044a717b66d6548d203b3a082fba0faedcd629c7a8457bc19b36 5SHA512 (nagios-plugins-2.2.1.tar.gz) = 6ffe313a56a305b382f62abc0f0958d7078f9050e1340f30721d6e6f71944b57b1650e90e6835c35dd7c9f3f4b4cee9f235b8382b0811db30b3729daaafc9bc3
6Size (nagios-plugins-2.0.3.tar.gz) = 2659772 bytes 6Size (nagios-plugins-2.2.1.tar.gz) = 2728818 bytes
7SHA1 (patch-ad) = 04115d0c41419fccfc2735745dc349f81061fff9 7SHA1 (patch-ad) = cad52f9d8c5a6b53a1b512238df1590c0fa2177d
8SHA1 (patch-af) = 8fd2e50ca63f014f88195552884913c7383cb6a1 8SHA1 (patch-af) = 12ea1194eee95ea15ecc6d7daedd10eb9541ee6e
9SHA1 (patch-ah) = f884e80c1e09fefd5e37f087d95d3b76b9d44ab6 9SHA1 (patch-ah) = 99b5eb4896262f5aa1de60e9f42c395a59794a6b
10SHA1 (patch-ai) = 645ebd4ac16a71bd5944fe3850c809cb45bf6a4c 10SHA1 (patch-an) = a6adf179db754f98b2da118a8c1101edda026fbc
11SHA1 (patch-ak) = 093638669dd5b524d8a9b31d452f1ba737e684b3 11SHA1 (patch-configure) = d418b81f06e22b769cd187a77f45f0add605698e
12SHA1 (patch-an) = 6ba8dec0eb62cd0097809daf8075248afd448695 12SHA1 (patch-plugins-root_Makefile.in) = 46e8968df375ca35d453e36c277d4052f125897b
13SHA1 (patch-configure) = 8a06bbd0fa0649625ffb1c8e2f4b667714a40fe4 13SHA1 (patch-plugins-scripts_check__breeze.pl) = 57ffda78989fd0d0c0fa26c74b7f53bd083dab4f
14SHA1 (patch-plugins-root_Makefile.in) = e4352f38bd0085f5c0acd9d058f1aa5d76676fff 14SHA1 (patch-plugins-scripts_check__wave.pl) = 535b008877cad780afa2ed3429ffb84e7da3ec28
15SHA1 (patch-plugins__check_swap.c) = 4a32398b3e8e596b9f67b3ea95a3acce37287b0b 15SHA1 (patch-plugins__check_swap.c) = b822de3488ecace977a739ebcfc56229763cd945
 16SHA1 (patch-plugins_check__radius.c) = 3f86bac4f7aa52931bad46d9ee4a421c2ee744f3

cvs diff -r1.6 -r1.7 pkgsrc/net/nagios-plugins/patches/Attic/patch-ad (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/Attic/patch-ad 2016/10/01 18:23:18 1.6
+++ pkgsrc/net/nagios-plugins/patches/Attic/patch-ad 2017/07/04 19:45:18 1.7
@@ -1,27 +1,28 @@ @@ -1,27 +1,28 @@
1$NetBSD: patch-ad,v 1.6 2016/10/01 18:23:18 bouyer Exp $ 1$NetBSD: patch-ad,v 1.7 2017/07/04 19:45:18 jperkin Exp $
 2
2Exclude plugins that would require extra dependancies. 3Exclude plugins that would require extra dependancies.
3Some can be found in specific nagios plugin packages. 4Some can be found in specific nagios plugin packages.
4 5
5--- plugins-scripts/Makefile.in.orig 2014-06-26 16:17:33.000000000 +0000 6--- plugins-scripts/Makefile.in.orig 2017-04-19 16:03:25.000000000 +0000
6+++ plugins-scripts/Makefile.in 7+++ plugins-scripts/Makefile.in
7@@ -1288,15 +1288,11 @@ top_srcdir = @top_srcdir@ 8@@ -1300,15 +1300,11 @@ top_srcdir = @top_srcdir@
8 with_trusted_path = @with_trusted_path@ 9 with_trusted_path = @with_trusted_path@
9 @RELEASE_PRESENT_TRUE@NP_VERSION = @NP_RELEASE@ 10 @RELEASE_PRESENT_TRUE@NP_VERSION = @NP_RELEASE@
10 SUFFIXES = .pl .sh 11 SUFFIXES = .pl .sh
11-libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \ 12-libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
12- check_log check_oracle check_rpc check_sensors check_wave \ 13- check_log check_oracle check_rpc check_sensors check_wave \
13- check_ifstatus check_ifoperstatus check_mailq check_file_age \ 14- check_ifstatus check_ifoperstatus check_mailq check_file_age \
14- utils.sh utils.pm 15- utils.sh utils.pm
15- 16-
16-EXTRA_DIST = check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \ 17-EXTRA_DIST = check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \
17- check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \ 18- check_log.sh check_ntp.pl check_oracle.sh check_rpc.pl check_sensors.sh \
18- check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \ 19- check_ifstatus.pl check_ifoperstatus.pl check_wave.pl check_mailq.pl check_file_age.pl \
19- utils.sh.in utils.pm.in t 20- utils.sh.in utils.pm.in t
20+libexec_SCRIPTS = check_ircd check_log check_ntp check_rpc check_mailq \ 21+libexec_SCRIPTS = check_ircd check_log check_ntp check_rpc \
21+ check_file_age utils.sh utils.pm  22+ check_mailq check_file_age utils.sh utils.pm
22+  23+
23+EXTRA_DIST = check_ircd.pl check_log.sh check_ntp.pl check_rpc.pl \ 24+EXTRA_DIST = check_ircd.pl check_log.sh check_ntp.pl check_rpc.pl \
24+ check_mailq.pl check_file_age.pl utils.sh.in utils.pm.in t  25+ check_mailq.pl check_file_age.pl utils.sh.in utils.pm.in t
25  26
26 TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) 27 EDIT = sed \
27 TESTS = @SCRIPT_TEST@ 28 -e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \

cvs diff -r1.6 -r1.7 pkgsrc/net/nagios-plugins/patches/Attic/patch-af (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/Attic/patch-af 2015/04/03 17:50:27 1.6
+++ pkgsrc/net/nagios-plugins/patches/Attic/patch-af 2017/07/04 19:45:18 1.7
@@ -1,14 +1,16 @@ @@ -1,14 +1,16 @@
1$NetBSD: patch-af,v 1.6 2015/04/03 17:50:27 rodent Exp $ 1$NetBSD: patch-af,v 1.7 2017/07/04 19:45:18 jperkin Exp $
 2
 3Exclude specific plugins.
2 4
3--- plugins/Makefile.in.orig 2014-06-26 16:17:33.000000000 +0000 5--- plugins/Makefile.in.orig 2014-06-26 16:17:33.000000000 +0000
4+++ plugins/Makefile.in 6+++ plugins/Makefile.in
5@@ -33,7 +33,7 @@ PRE_UNINSTALL = : 7@@ -33,7 +33,7 @@ PRE_UNINSTALL = :
6 POST_UNINSTALL = : 8 POST_UNINSTALL = :
7 build_triplet = @build@ 9 build_triplet = @build@
8 host_triplet = @host@ 10 host_triplet = @host@
9-libexec_PROGRAMS = check_apt$(EXEEXT) check_cluster$(EXEEXT) \ 11-libexec_PROGRAMS = check_apt$(EXEEXT) check_cluster$(EXEEXT) \
10+libexec_PROGRAMS = \ 12+libexec_PROGRAMS = \
11 check_disk$(EXEEXT) check_dummy$(EXEEXT) check_http$(EXEEXT) \ 13 check_disk$(EXEEXT) check_dummy$(EXEEXT) check_http$(EXEEXT) \
12 check_load$(EXEEXT) check_mrtg$(EXEEXT) \ 14 check_load$(EXEEXT) check_mrtg$(EXEEXT) \
13 check_mrtgtraf$(EXEEXT) check_ntp$(EXEEXT) \ 15 check_mrtgtraf$(EXEEXT) check_ntp$(EXEEXT) \
14@@ -2193,7 +2193,7 @@ $(check_tcp_programs): check_tcp 16@@ -2193,7 +2193,7 @@ $(check_tcp_programs): check_tcp

cvs diff -r1.4 -r1.5 pkgsrc/net/nagios-plugins/patches/Attic/patch-ah (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/Attic/patch-ah 2015/04/03 17:50:27 1.4
+++ pkgsrc/net/nagios-plugins/patches/Attic/patch-ah 2017/07/04 19:45:18 1.5
@@ -1,12 +1,14 @@ @@ -1,12 +1,14 @@
1$NetBSD: patch-ah,v 1.4 2015/04/03 17:50:27 rodent Exp $ 1$NetBSD: patch-ah,v 1.5 2017/07/04 19:45:18 jperkin Exp $
 2
 3Unknown patch, please document.
2 4
3--- plugins-scripts/check_ntp.pl.orig 2014-03-04 21:41:57.000000000 +0000 5--- plugins-scripts/check_ntp.pl.orig 2014-03-04 21:41:57.000000000 +0000
4+++ plugins-scripts/check_ntp.pl 6+++ plugins-scripts/check_ntp.pl
5@@ -311,6 +311,7 @@ if ($have_ntpq) { 7@@ -311,6 +311,7 @@ if ($have_ntpq) {
6 } else { 8 } else {
7 $jitter_error = $ERRORS{'OK'}; 9 $jitter_error = $ERRORS{'OK'};
8 } 10 }
9+ last; 11+ last;
10 } else { 12 } else {
11 print "No match!\n" if $verbose; 13 print "No match!\n" if $verbose;
12 $jitter = '(not parsed)'; 14 $jitter = '(not parsed)';

File Deleted: pkgsrc/net/nagios-plugins/patches/Attic/patch-ai

File Deleted: pkgsrc/net/nagios-plugins/patches/Attic/patch-ak

cvs diff -r1.5 -r1.6 pkgsrc/net/nagios-plugins/patches/Attic/patch-an (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/Attic/patch-an 2015/04/03 17:50:27 1.5
+++ pkgsrc/net/nagios-plugins/patches/Attic/patch-an 2017/07/04 19:45:18 1.6
@@ -1,13 +1,15 @@ @@ -1,13 +1,15 @@
1$NetBSD: patch-an,v 1.5 2015/04/03 17:50:27 rodent Exp $ 1$NetBSD: patch-an,v 1.6 2017/07/04 19:45:18 jperkin Exp $
 2
 3Pull in CPPFLAGS_LFS.
2 4
3--- lib/Makefile.in.orig 2014-06-26 16:17:32.000000000 +0000 5--- lib/Makefile.in.orig 2014-06-26 16:17:32.000000000 +0000
4+++ lib/Makefile.in 6+++ lib/Makefile.in
5@@ -153,7 +153,7 @@ depcomp = $(SHELL) $(top_srcdir)/build-a 7@@ -153,7 +153,7 @@ depcomp = $(SHELL) $(top_srcdir)/build-a
6 am__depfiles_maybe = depfiles 8 am__depfiles_maybe = depfiles
7 am__mv = mv -f 9 am__mv = mv -f
8 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 10 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
9- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 11- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
10+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CPPFLAGS_LFS) 12+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CPPFLAGS_LFS)
11 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 13 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
12 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 14 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
13 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 15 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

cvs diff -r1.2 -r1.3 pkgsrc/net/nagios-plugins/patches/patch-configure (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/patch-configure 2015/04/03 17:50:27 1.2
+++ pkgsrc/net/nagios-plugins/patches/patch-configure 2017/07/04 19:45:18 1.3
@@ -1,130 +1,130 @@ @@ -1,130 +1,130 @@
1$NetBSD: patch-configure,v 1.2 2015/04/03 17:50:27 rodent Exp $ 1$NetBSD: patch-configure,v 1.3 2017/07/04 19:45:18 jperkin Exp $
2 2
3Disable all the plugins which are installed by the nagios-plugin-* packages. 3Disable all the plugins which are installed by the nagios-plugin-* packages.
4 4
5--- configure.orig 2014-06-26 16:17:37.000000000 +0000 5--- configure.orig 2017-04-19 16:03:27.000000000 +0000
6+++ configure 6+++ configure
7@@ -17188,7 +17188,7 @@ _ACEOF 7@@ -17422,7 +17422,7 @@ _ACEOF
8  8
9 fi 9 fi
10  10
11- if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then 11- if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
12+ if false; then 12+ if false; then
13 EXTRAS="$EXTRAS check_radius\$(EXEEXT)" 13 EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
14 RADIUSLIBS="-lradiusclient" 14 RADIUSLIBS="-lradiusclient"
15  15
16@@ -17363,7 +17363,7 @@ _ACEOF 16@@ -17518,7 +17518,7 @@ _ACEOF
17  17
18 fi 18 fi
19  19
20- if test "$ac_cv_lib_ldap_main" = "yes"; then 20- if test "$ac_cv_lib_ldap_main" = "yes"; then
21+ if false; then 21+ if false; then
22 LDAPLIBS="-lldap -llber"\ 22 LDAPLIBS="-lldap -llber"\
23 LDAPINCLUDE="-I/usr/include/ldap" 23 LDAPINCLUDE="-I/usr/include/ldap"
24  24
25@@ -18791,6 +18791,9 @@ cat confdefs.h >>conftest.$ac_ext 25@@ -18947,6 +18947,9 @@ cat confdefs.h >>conftest.$ac_ext
26 cat >>conftest.$ac_ext <<_ACEOF 26 cat >>conftest.$ac_ext <<_ACEOF
27 /* end confdefs.h. */ 27 /* end confdefs.h. */
28 #ifdef HAVE_UNISTD_H 28 #ifdef HAVE_UNISTD_H
29+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 29+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
30+#undef _FILE_OFFSET_BITS 30+#undef _FILE_OFFSET_BITS
31+#endif 31+#endif
32 #include <unistd.h> 32 #include <unistd.h>
33 #endif 33 #endif
34 #include <netinet/in.h> 34 #include <netinet/in.h>
35@@ -21524,7 +21527,7 @@ elif test "$ac_cv_uname_s" = "SunOS"; th 35@@ -21721,7 +21724,7 @@ elif test "$ac_cv_uname_s" = "SunOS"; th
36 ac_cv_ps_cols=9 36 ac_cv_ps_cols=9
37 { $as_echo "$as_me:$LINENO: result: using nagios-plugins internal ps command (pst3) for solaris" >&5 37 { $as_echo "$as_me:$LINENO: result: using nagios-plugins internal ps command (pst3) for solaris" >&5
38 $as_echo "using nagios-plugins internal ps command (pst3) for solaris" >&6; } 38 $as_echo "using nagios-plugins internal ps command (pst3) for solaris" >&6; }
39- if test `isainfo -b` = 64 ; then 39- if test `isainfo -b` = 64 ; then
40+ if test "$MACHINE_ARCH" = "x86_64" ; then 40+ if test "$MACHINE_ARCH" = "x86_64" ; then
41 pst3_use_64bit=1 41 pst3_use_64bit=1
42 { $as_echo "$as_me:$LINENO: using 64bit pst3" >&5 42 { $as_echo "$as_me:$LINENO: using 64bit pst3" >&5
43 $as_echo "$as_me: using 64bit pst3" >&6;} 43 $as_echo "$as_me: using 64bit pst3" >&6;}
44@@ -22521,7 +22524,7 @@ fi 44@@ -22748,7 +22751,7 @@ fi
45 then 45 then
46 { $as_echo "$as_me:$LINENO: checking for nslookup syntax" >&5 46 { $as_echo "$as_me:$LINENO: checking for nslookup syntax" >&5
47 $as_echo_n "checking for nslookup syntax... " >&6; } 47 $as_echo_n "checking for nslookup syntax... " >&6; }
48- if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null 48- if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
49+ if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep -F "Invalid option: sil" >/dev/null 49+ if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep -F "Invalid option: sil" >/dev/null
50 then 50 then
51 ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" 51 ac_cv_nslookup_command="$PATH_TO_NSLOOKUP"
52 { $as_echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5 52 { $as_echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5
53@@ -22910,7 +22913,7 @@ fi 53@@ -23137,7 +23140,7 @@ fi
54  54
55  55
56 # Check whether --with-snmpget_command was given. 56 # Check whether --with-snmpget_command was given.
57-if test "${with_snmpget_command+set}" = set; then 57-if test "${with_snmpget_command+set}" = set; then
58+if false; then 58+if false; then
59 withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval 59 withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval
60 fi 60 fi
61  61
62@@ -22921,7 +22924,7 @@ cat >>confdefs.h <<_ACEOF 62@@ -23148,7 +23151,7 @@ cat >>confdefs.h <<_ACEOF
63 #define PATH_TO_SNMPGET "$PATH_TO_SNMPGET" 63 #define PATH_TO_SNMPGET "$PATH_TO_SNMPGET"
64 _ACEOF 64 _ACEOF
65  65
66- EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" 66- EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)"
67+ #EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" 67+ #EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)"
68 else 68 else
69 { $as_echo "$as_me:$LINENO: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5 69 { $as_echo "$as_me:$LINENO: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5
70 $as_echo "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;} 70 $as_echo "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;}
71@@ -22982,7 +22985,7 @@ _ACEOF 71@@ -23209,7 +23212,7 @@ _ACEOF
72  72
73 fi 73 fi
74  74
75-if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) 75-if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null )
76+if false 76+if false
77 then 77 then
78 { $as_echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5 78 { $as_echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5
79 $as_echo_n "checking for Net::SNMP perl module... " >&6; } 79 $as_echo_n "checking for Net::SNMP perl module... " >&6; }
80@@ -23134,7 +23137,7 @@ IFS=$as_save_IFS 80@@ -23361,7 +23364,7 @@ IFS=$as_save_IFS
81 esac 81 esac
82 fi 82 fi
83 PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING 83 PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING
84-if test -n "$PATH_TO_FPING"; then 84-if test -n "$PATH_TO_FPING"; then
85+if test -n "$PATH_TO_FPING" -a "$PATH_TO_FPING" != "no"; then 85+if test -n "$PATH_TO_FPING" -a "$PATH_TO_FPING" != "no"; then
86 { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5 86 { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5
87 $as_echo "$PATH_TO_FPING" >&6; } 87 $as_echo "$PATH_TO_FPING" >&6; }
88 else 88 else
89@@ -23174,7 +23177,7 @@ IFS=$as_save_IFS 89@@ -23401,7 +23404,7 @@ IFS=$as_save_IFS
90 esac 90 esac
91 fi 91 fi
92 PATH_TO_FPING6=$ac_cv_path_PATH_TO_FPING6 92 PATH_TO_FPING6=$ac_cv_path_PATH_TO_FPING6
93-if test -n "$PATH_TO_FPING6"; then 93-if test -n "$PATH_TO_FPING6"; then
94+if test -n "$PATH_TO_FPING6" -a "$PATH_TO_FPING6" != "no"; then 94+if test -n "$PATH_TO_FPING6" -a "$PATH_TO_FPING6" != "no"; then
95 { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING6" >&5 95 { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING6" >&5
96 $as_echo "$PATH_TO_FPING6" >&6; } 96 $as_echo "$PATH_TO_FPING6" >&6; }
97 else 97 else
98@@ -23750,6 +23753,10 @@ cat confdefs.h >>conftest.$ac_ext 98@@ -24034,6 +24037,10 @@ cat confdefs.h >>conftest.$ac_ext
99 cat >>conftest.$ac_ext <<_ACEOF 99 cat >>conftest.$ac_ext <<_ACEOF
100 /* end confdefs.h. */ 100 /* end confdefs.h. */
101  101
102+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 102+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
103+#undef _FILE_OFFSET_BITS 103+#undef _FILE_OFFSET_BITS
104+#endif 104+#endif
105+ 105+
106 #ifdef HAVE_SYS_PARAM_H 106 #ifdef HAVE_SYS_PARAM_H
107 #include <sys/param.h> 107 #include <sys/param.h>
108 #endif 108 #endif
109@@ -23812,6 +23819,10 @@ cat confdefs.h >>conftest.$ac_ext 109@@ -24096,6 +24103,10 @@ cat confdefs.h >>conftest.$ac_ext
110 cat >>conftest.$ac_ext <<_ACEOF 110 cat >>conftest.$ac_ext <<_ACEOF
111 /* end confdefs.h. */ 111 /* end confdefs.h. */
112  112
113+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 113+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
114+#undef _FILE_OFFSET_BITS 114+#undef _FILE_OFFSET_BITS
115+#endif 115+#endif
116+ 116+
117 #include <unistd.h> 117 #include <unistd.h>
118 #include <sys/types.h> 118 #include <sys/types.h>
119 #include <sys/param.h> 119 #include <sys/param.h>
120@@ -24003,6 +24014,10 @@ cat confdefs.h >>conftest.$ac_ext 120@@ -24213,6 +24224,10 @@ cat confdefs.h >>conftest.$ac_ext
121 cat >>conftest.$ac_ext <<_ACEOF 121 cat >>conftest.$ac_ext <<_ACEOF
122 /* end confdefs.h. */ 122 /* end confdefs.h. */
123  123
124+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 124+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
125+#undef _FILE_OFFSET_BITS 125+#undef _FILE_OFFSET_BITS
126+#endif 126+#endif
127+ 127+
128 #include <sys/types.h> 128 #include <sys/types.h>
129 #include <sys/param.h> 129 #include <sys/param.h>
130 #include <sys/stat.h> 130 #include <sys/stat.h>

cvs diff -r1.2 -r1.3 pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins__check_swap.c (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins__check_swap.c 2015/04/03 17:50:27 1.2
+++ pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins__check_swap.c 2017/07/04 19:45:18 1.3
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1$NetBSD: patch-plugins__check_swap.c,v 1.2 2015/04/03 17:50:27 rodent Exp $ 1$NetBSD: patch-plugins__check_swap.c,v 1.3 2017/07/04 19:45:18 jperkin Exp $
2 2
3Disable large file support when building 32bit on SunOS. 3Disable large file support when building 32bit on SunOS.
 4
4--- plugins/check_swap.c.orig 2014-04-15 22:19:03.000000000 +0000 5--- plugins/check_swap.c.orig 2014-04-15 22:19:03.000000000 +0000
5+++ plugins/check_swap.c 6+++ plugins/check_swap.c
6@@ -35,6 +35,10 @@ const char *email = "devel@nagios-plugin 7@@ -35,6 +35,10 @@ const char *email = "devel@nagios-plugin
7 #include "popen.h" 8 #include "popen.h"
8 #include "utils.h" 9 #include "utils.h"
9  10
10+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 11+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
11+#undef _FILE_OFFSET_BITS 12+#undef _FILE_OFFSET_BITS
12+#endif 13+#endif
13+ 14+
14 #ifdef HAVE_DECL_SWAPCTL 15 #ifdef HAVE_DECL_SWAPCTL
15 # ifdef HAVE_SYS_PARAM_H 16 # ifdef HAVE_SYS_PARAM_H
16 # include <sys/param.h> 17 # include <sys/param.h>

cvs diff -r1.1 -r1.2 pkgsrc/net/nagios-plugins/patches/patch-plugins-root_Makefile.in (expand / switch to unified diff)

--- pkgsrc/net/nagios-plugins/patches/patch-plugins-root_Makefile.in 2016/02/09 10:13:17 1.1
+++ pkgsrc/net/nagios-plugins/patches/patch-plugins-root_Makefile.in 2017/07/04 19:45:18 1.2
@@ -1,14 +1,15 @@ @@ -1,14 +1,15 @@
1$NetBSD: patch-plugins-root_Makefile.in,v 1.1 2016/02/09 10:13:17 bouyer Exp $ 1$NetBSD: patch-plugins-root_Makefile.in,v 1.2 2017/07/04 19:45:18 jperkin Exp $
 2
2user-destdir install fixes. 3user-destdir install fixes.
3 4
4--- plugins-root/Makefile.in.orig 2016-02-08 13:26:51.000000000 +0100 5--- plugins-root/Makefile.in.orig 2016-02-08 13:26:51.000000000 +0100
5+++ plugins-root/Makefile.in 2016-02-08 13:27:43.000000000 +0100 6+++ plugins-root/Makefile.in 2016-02-08 13:27:43.000000000 +0100
6@@ -1312,10 +1312,6 @@ 7@@ -1312,10 +1312,6 @@
7 p=$$f; \ 8 p=$$f; \
8 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \ 9 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
9 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \ 10 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
10- echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \ 11- echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \
11- chown root $(DESTDIR)$(libexecdir)/$$p; \ 12- chown root $(DESTDIR)$(libexecdir)/$$p; \
12- echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \ 13- echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
13- chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \ 14- chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
14 done 15 done

File Added: pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins-scripts_check__breeze.pl
$NetBSD: patch-plugins-scripts_check__breeze.pl,v 1.1 2017/07/04 19:45:18 jperkin Exp $

Fix path to snmpget.

--- plugins-scripts/check_breeze.pl.orig	2017-01-16 17:24:03.000000000 +0000
+++ plugins-scripts/check_breeze.pl
@@ -49,7 +49,7 @@ my $critical = $1 if ($opt_c =~ /([0-9]{
 ($opt_C) || ($opt_C = "public") ;
 
 my $sig=0;
-$sig = `/usr/bin/snmpget $host $opt_C .1.3.6.1.4.1.710.3.2.3.1.3.0`;
+$sig = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.710.3.2.3.1.3.0`;
 my @test=split(/ /,$sig);
 $sig=$test[2];
 $sig=int($sig);

File Added: pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins-scripts_check__wave.pl
$NetBSD: patch-plugins-scripts_check__wave.pl,v 1.1 2017/07/04 19:45:18 jperkin Exp $

Fix path to snmpget.

--- plugins-scripts/check_wave.pl.orig	2017-01-16 17:24:03.000000000 +0000
+++ plugins-scripts/check_wave.pl
@@ -9,7 +9,7 @@ use lib '@libexecdir@';
 use utils qw($TIMEOUT %ERRORS &print_revision &support);
 use vars qw($PROGNAME);
 use Getopt::Long;
-use vars qw($opt_V $opt_h $verbose $opt_w $opt_c $opt_H);
+use vars qw($opt_V $opt_h $verbose $opt_w $opt_c $opt_H $opt_C);
 my (@test, $low1, $med1, $high1, $snr, $low2, $med2, $high2);
 my ($low, $med, $high, $lowavg, $medavg, $highavg, $tot, $ss);
 
@@ -28,7 +28,8 @@ GetOptions
 	 "v" => \$verbose, "verbose"  => \$verbose,
 	 "w=s" => \$opt_w, "warning=s"  => \$opt_w,
 	 "c=s" => \$opt_c, "critical=s" => \$opt_c,
-	 "H=s" => \$opt_H, "hostname=s" => \$opt_H);
+	 "H=s" => \$opt_H, "hostname=s" => \$opt_H,
+	 "C=s" => \$opt_C, "community=s" => \$opt_C);
 
 if ($opt_V) {
 	print_revision($PROGNAME,'@NP_VERSION@'); #'
@@ -41,6 +42,7 @@ if ($opt_h) {
 }
 
 $opt_H = shift unless ($opt_H);
+$opt_C = "public" unless ($opt_C);
 print_usage() unless ($opt_H);
 my $host = $1 if ($opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0]+(\.[a-zA-Z][-a-zA-Z0]+)*)$/);
 print_usage() unless ($host);
@@ -51,34 +53,34 @@ my $critical = $1 if ($opt_c =~ /([0-9]+
 ($opt_w) || ($opt_w = shift) || ($opt_w = 60);
 my $warning = $1 if ($opt_w =~ /([0-9]+)/);
 
-$low1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
+$low1 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
 @test = split(/ /,$low1);
 $low1 = $test[2];
 
-$med1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
+$med1 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
 @test = split(/ /,$med1);
 $med1 = $test[2];
 
-$high1 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
+$high1 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
 @test = split(/ /,$high1);
 $high1 = $test[2];
 
 sleep(2);
 
-$snr = `snmpget $host public .1.3.6.1.4.1.762.2.5.2.1.17.1`;
+$snr = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.762.2.5.2.1.17.1`;
 @test = split(/ /,$snr);
 $snr = $test[2];
 $snr = int($snr*25);
 
-$low2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
+$low2 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.8.1`;
 @test = split(/ /,$low2);
 $low2 = $test[2];
 
-$med2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
+$med2 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.9.1`;
 @test = split(/ /,$med2);
 $med2 = $test[2];
 
-$high2 = `snmpget $host public .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
+$high2 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.10.1`;
 @test = split(/ /,$high2);
 $high2 = $test[2];
 
@@ -109,7 +111,7 @@ if ($ss<$critical) {
 
 
 sub print_usage () {
-	print "Usage: $PROGNAME -H <host> [-w <warn>] [-c <crit>]\n";
+	print "Usage: $PROGNAME -H <host> [-C <community>] [-w <warn>] [-c <crit>]\n";
 }
 
 sub print_help () {

File Added: pkgsrc/net/nagios-plugins/patches/Attic/patch-plugins_check__radius.c
$NetBSD: patch-plugins_check__radius.c,v 1.1 2017/07/04 19:45:18 jperkin Exp $

Support radius config.

--- plugins/check_radius.c.orig	2017-01-16 17:24:03.000000000 +0000
+++ plugins/check_radius.c
@@ -86,7 +86,7 @@ char *password = NULL;
 char *nasid = NULL;
 char *nasipaddress = NULL;
 char *expect = NULL;
-char *config_file = NULL;
+char *config_file = "@SYSCONFDIR@/radiusclient-ng/radiusclient.conf";
 unsigned short port = PW_AUTH_UDP_PORT;
 int retries = 1;
 int verbose = FALSE;