Update nagios-plugins to 2.3.3diff -r1.178 -r1.179 pkgsrc/doc/CHANGES-2023
(sekiya)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: CHANGES-2023,v 1.178 2023/01/08 23:35:11 sekiya Exp $ | 1 | $NetBSD: CHANGES-2023,v 1.179 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | Changes to the packages collection and infrastructure in 2023: | 3 | Changes to the packages collection and infrastructure in 2023: | |
4 | 4 | |||
5 | Updated devel/R-cli to 3.5.0 [mef 2023-01-01] | 5 | Updated devel/R-cli to 3.5.0 [mef 2023-01-01] | |
6 | Updated devel/R-purrr to 1.0.0 [mef 2023-01-01] | 6 | Updated devel/R-purrr to 1.0.0 [mef 2023-01-01] | |
7 | Updated www/R-webfakes to 1.1.6 [mef 2023-01-01] | 7 | Updated www/R-webfakes to 1.1.6 [mef 2023-01-01] | |
8 | Updated devel/R-pkgcache to 2.0.4 [mef 2023-01-01] | 8 | Updated devel/R-pkgcache to 2.0.4 [mef 2023-01-01] | |
9 | Updated devel/R-repr to 1.1.4 [mef 2023-01-01] | 9 | Updated devel/R-repr to 1.1.4 [mef 2023-01-01] | |
10 | Updated databases/R-dbplyr to 2.2.1 [mef 2023-01-01] | 10 | Updated databases/R-dbplyr to 2.2.1 [mef 2023-01-01] | |
11 | Updated archivers/R-zip to 2.2.2 [mef 2023-01-01] | 11 | Updated archivers/R-zip to 2.2.2 [mef 2023-01-01] | |
12 | Updated misc/R-pillar to 1.8.1 [mef 2023-01-01] | 12 | Updated misc/R-pillar to 1.8.1 [mef 2023-01-01] | |
13 | Updated math/R-tibble to 3.1.8 [mef 2023-01-01] | 13 | Updated math/R-tibble to 3.1.8 [mef 2023-01-01] | |
14 | Updated databases/R-RSQLite to 2.2.20 [mef 2023-01-01] | 14 | Updated databases/R-RSQLite to 2.2.20 [mef 2023-01-01] | |
@@ -200,13 +200,14 @@ Changes to the packages collection and i | @@ -200,13 +200,14 @@ Changes to the packages collection and i | |||
200 | Updated devel/p5-Config-INI-Reader-Ordered to 0.022 [wen 2023-01-08] | 200 | Updated devel/p5-Config-INI-Reader-Ordered to 0.022 [wen 2023-01-08] | |
201 | Updated devel/p5-Config-INI to 0.028 [wen 2023-01-08] | 201 | Updated devel/p5-Config-INI to 0.028 [wen 2023-01-08] | |
202 | Updated devel/p5-Data-Alias to 1.28 [wen 2023-01-08] | 202 | Updated devel/p5-Data-Alias to 1.28 [wen 2023-01-08] | |
203 | Updated audio/jack to 1.9.21nb1 [triaxx 2023-01-08] | 203 | Updated audio/jack to 1.9.21nb1 [triaxx 2023-01-08] | |
204 | Updated emulators/PC6001VX to 3.9.1 [tsutsui 2023-01-08] | 204 | Updated emulators/PC6001VX to 3.9.1 [tsutsui 2023-01-08] | |
205 | Updated emulators/PC6001VX to 4.1.1 [tsutsui 2023-01-08] | 205 | Updated emulators/PC6001VX to 4.1.1 [tsutsui 2023-01-08] | |
206 | Updated devel/p5-Data-GUID to 0.051 [wen 2023-01-08] | 206 | Updated devel/p5-Data-GUID to 0.051 [wen 2023-01-08] | |
207 | Updated devel/p5-Data-MessagePack to 1.02 [wen 2023-01-08] | 207 | Updated devel/p5-Data-MessagePack to 1.02 [wen 2023-01-08] | |
208 | Updated net/py-dpkt to 1.9.8 [adam 2023-01-08] | 208 | Updated net/py-dpkt to 1.9.8 [adam 2023-01-08] | |
209 | Updated devel/py-traitlets to 5.8.0 [adam 2023-01-08] | 209 | Updated devel/py-traitlets to 5.8.0 [adam 2023-01-08] | |
210 | Updated net/nsd to 4.6.1 [ryoon 2023-01-08] | 210 | Updated net/nsd to 4.6.1 [ryoon 2023-01-08] | |
211 | Updated net/knot to 3.2.4 [ryoon 2023-01-08] | 211 | Updated net/knot to 3.2.4 [ryoon 2023-01-08] | |
212 | Updated net/nagios-base to 4.4.9 [sekiya 2023-01-09] | 212 | Updated net/nagios-base to 4.4.9 [sekiya 2023-01-09] | |
213 | Updated net/nagios-plugins to 2.3.3 [sekiya 2023-01-09] |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.55 2022/06/28 11:35:03 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.56 2023/01/09 00:28:41 sekiya Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | PKGREVISION= 8 | 4 | #PKGREVISION= 1 | |
5 | CATEGORIES= net sysutils | 5 | CATEGORIES= net sysutils | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= https://sourceforge.net/projects/nagiosplug/ | 8 | HOMEPAGE= https://sourceforge.net/projects/nagiosplug/ | |
9 | COMMENT= Nagios plugins | 9 | COMMENT= Nagios plugins | |
10 | LICENSE= gnu-gpl-v2 | 10 | LICENSE= gnu-gpl-v2 | |
11 | 11 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 13 | |||
14 | .include "../../net/nagios-plugins/Makefile.common" | 14 | .include "../../net/nagios-plugins/Makefile.common" | |
15 | 15 | |||
16 | USE_TOOLS+= msgfmt msgmerge intltool perl:run xgettext | 16 | USE_TOOLS+= msgfmt msgmerge intltool perl:run xgettext | |
17 | 17 | |||
@@ -32,30 +32,31 @@ PLIST.ide= yes | @@ -32,30 +32,31 @@ PLIST.ide= yes | |||
32 | .endif | 32 | .endif | |
33 | 33 | |||
34 | .if ${OPSYS} != "Darwin" | 34 | .if ${OPSYS} != "Darwin" | |
35 | PLIST.swap= yes | 35 | PLIST.swap= yes | |
36 | .endif | 36 | .endif | |
37 | 37 | |||
38 | .if ${OPSYS} == "NetBSD" | 38 | .if ${OPSYS} == "NetBSD" | |
39 | SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_ide_smart \ | 39 | SPECIAL_PERMS+= ${PREFIX}/libexec/nagios/check_ide_smart \ | |
40 | ${REAL_ROOT_USER} ${NAGIOS_GROUP} 4551 | 40 | ${REAL_ROOT_USER} ${NAGIOS_GROUP} 4551 | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | # required to enable large file support on Solaris | 43 | # required to enable large file support on Solaris | |
44 | .if ${OPSYS} == "SunOS" | 44 | .if ${OPSYS} == "SunOS" | |
45 | CPPFLAGS_LFS!= getconf LFS_CFLAGS | 45 | CPPFLAGS_LFS_CMD= getconf LFS_CFLAGS | |
46 | MAKE_ENV+= CPPFLAGS_LFS=${CPPFLAGS_LFS:Q} | 46 | CPPFLAGS_LFS= ${CPPFLAGS_LFS_CMD:sh} | |
47 | MAKE_ENV+= CPPFLAGS_LFS=${CPPFLAGS_LFS:Q} | |||
47 | .endif | 48 | .endif | |
48 | LIBS.SunOS+= -lm | 49 | LIBS.SunOS+= -lm | |
49 | 50 | |||
50 | #DEPENDS+= nagios-base-*:../../net/nagios-base | 51 | #DEPENDS+= nagios-base-*:../../net/nagios-base | |
51 | 52 | |||
52 | .if !exists(/usr/bin/ssh) | 53 | .if !exists(/usr/bin/ssh) | |
53 | DEPENDS+= {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh | 54 | DEPENDS+= {ssh{,6}-[0-9]*,openssh-[0-9]*}:../../security/openssh | |
54 | .endif | 55 | .endif | |
55 | 56 | |||
56 | .if (!exists(/usr/bin/dig) && !exists(/usr/sbin/dig)) || \ | 57 | .if (!exists(/usr/bin/dig) && !exists(/usr/sbin/dig)) || \ | |
57 | (!exists(/usr/bin/nslookup) && !exists(/usr/sbin/nslookup)) | 58 | (!exists(/usr/bin/nslookup) && !exists(/usr/sbin/nslookup)) | |
58 | DEPENDS+= bind-[0-9]*:../../net/bind916 | 59 | DEPENDS+= bind-[0-9]*:../../net/bind916 | |
59 | .endif | 60 | .endif | |
60 | 61 | |||
61 | .if ${OPSYS} == "NetBSD" | 62 | .if ${OPSYS} == "NetBSD" |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.15 2017/11/08 03:20:48 taca Exp $ | 1 | # $NetBSD: Makefile.common,v 1.16 2023/01/09 00:28:41 sekiya Exp $ | |
2 | # | 2 | # | |
3 | # used by net/nagios-plugin-ldap/Makefile | 3 | # used by net/nagios-plugin-ldap/Makefile | |
4 | # used by net/nagios-plugin-mysql/Makefile | 4 | # used by net/nagios-plugin-mysql/Makefile | |
5 | # used by net/nagios-plugin-pgsql/Makefile | 5 | # used by net/nagios-plugin-pgsql/Makefile | |
6 | # used by net/nagios-plugin-radius/Makefile | 6 | # used by net/nagios-plugin-radius/Makefile | |
7 | # used by net/nagios-plugin-snmp/Makefile | 7 | # used by net/nagios-plugin-snmp/Makefile | |
8 | # used by net/nagios-plugins/Makefile | 8 | # used by net/nagios-plugins/Makefile | |
9 | 9 | |||
10 | PLUGINSVERSION= 2.2.1 | 10 | PLUGINSVERSION= 2.3.3 | |
11 | DISTNAME= nagios-plugins-${PLUGINSVERSION} | 11 | DISTNAME= nagios-plugins-${PLUGINSVERSION} | |
12 | MASTER_SITES?= http://nagios-plugins.org/download/ | 12 | MASTER_SITES?= http://nagios-plugins.org/download/ | |
13 | 13 | |||
14 | .include "../../net/nagios-base/Makefile.common" | 14 | .include "../../net/nagios-base/Makefile.common" | |
15 | 15 | |||
16 | DISTINFO_FILE= ${.CURDIR}/../../net/nagios-plugins/distinfo | 16 | DISTINFO_FILE= ${.CURDIR}/../../net/nagios-plugins/distinfo | |
17 | PATCHDIR= ${.CURDIR}/../../net/nagios-plugins/patches | 17 | PATCHDIR= ${.CURDIR}/../../net/nagios-plugins/patches | |
18 | 18 | |||
19 | BUILD_DEFS+= NAGIOS_USER NAGIOS_GROUP | 19 | BUILD_DEFS+= NAGIOS_USER NAGIOS_GROUP | |
20 | 20 | |||
21 | CONFIGURE_ARGS.DragonFly+= fu_cv_sys_stat_statvfs=no | 21 | CONFIGURE_ARGS.DragonFly+= fu_cv_sys_stat_statvfs=no | |
22 | 22 | |||
23 | CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER:Q} | 23 | CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER:Q} |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.11 2017/07/04 19:45:18 jperkin Exp $ | 1 | @comment $NetBSD: PLIST,v 1.12 2023/01/09 00:28:41 sekiya Exp $ | |
2 | libexec/nagios/check_by_ssh | 2 | libexec/nagios/check_by_ssh | |
3 | libexec/nagios/check_clamd | 3 | libexec/nagios/check_clamd | |
4 | libexec/nagios/check_dhcp | 4 | libexec/nagios/check_dhcp | |
5 | libexec/nagios/check_dig | 5 | libexec/nagios/check_dig | |
6 | libexec/nagios/check_disk | 6 | libexec/nagios/check_disk | |
7 | libexec/nagios/check_dns | 7 | libexec/nagios/check_dns | |
8 | libexec/nagios/check_dummy | 8 | libexec/nagios/check_dummy | |
9 | libexec/nagios/check_file_age | 9 | libexec/nagios/check_file_age | |
10 | libexec/nagios/check_fping | 10 | libexec/nagios/check_fping | |
11 | libexec/nagios/check_ftp | 11 | libexec/nagios/check_ftp | |
12 | libexec/nagios/check_http | 12 | libexec/nagios/check_http | |
13 | libexec/nagios/check_icmp | 13 | libexec/nagios/check_icmp | |
14 | ${PLIST.ide}libexec/nagios/check_ide_smart | 14 | ${PLIST.ide}libexec/nagios/check_ide_smart | |
@@ -36,18 +36,19 @@ libexec/nagios/check_real | @@ -36,18 +36,19 @@ libexec/nagios/check_real | |||
36 | libexec/nagios/check_rpc | 36 | libexec/nagios/check_rpc | |
37 | libexec/nagios/check_simap | 37 | libexec/nagios/check_simap | |
38 | libexec/nagios/check_smtp | 38 | libexec/nagios/check_smtp | |
39 | libexec/nagios/check_spop | 39 | libexec/nagios/check_spop | |
40 | libexec/nagios/check_ssh | 40 | libexec/nagios/check_ssh | |
41 | libexec/nagios/check_ssmtp | 41 | libexec/nagios/check_ssmtp | |
42 | ${PLIST.swap}libexec/nagios/check_swap | 42 | ${PLIST.swap}libexec/nagios/check_swap | |
43 | libexec/nagios/check_tcp | 43 | libexec/nagios/check_tcp | |
44 | libexec/nagios/check_time | 44 | libexec/nagios/check_time | |
45 | libexec/nagios/check_udp | 45 | libexec/nagios/check_udp | |
46 | libexec/nagios/check_ups | 46 | libexec/nagios/check_ups | |
47 | libexec/nagios/check_users | 47 | libexec/nagios/check_users | |
48 | libexec/nagios/negate | 48 | libexec/nagios/negate | |
49 | libexec/nagios/remove_perfdata | |||
49 | libexec/nagios/urlize | 50 | libexec/nagios/urlize | |
50 | libexec/nagios/utils.pm | 51 | libexec/nagios/utils.pm | |
51 | libexec/nagios/utils.sh | 52 | libexec/nagios/utils.sh | |
52 | share/nagios/locale/de/LC_MESSAGES/nagios-plugins.mo | 53 | share/nagios/locale/de/LC_MESSAGES/nagios-plugins.mo | |
53 | share/nagios/locale/fr/LC_MESSAGES/nagios-plugins.mo | 54 | share/nagios/locale/fr/LC_MESSAGES/nagios-plugins.mo |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: distinfo,v 1.27 2022/04/02 10:35:35 nia Exp $ | 1 | $NetBSD: distinfo,v 1.28 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | BLAKE2s (nagios-plugins-2.2.1.tar.gz) = 976274874f96d7614ac6359b7feb9692874e947677d88a6d2daa6e569bb61ce5 | 3 | BLAKE2s (nagios-plugins-2.3.3.tar.gz) = 4eee57a0cae28eab4a115d1f518506a7c33ab0ab66e505088a7af2a65308bb22 | |
4 | SHA512 (nagios-plugins-2.2.1.tar.gz) = 6ffe313a56a305b382f62abc0f0958d7078f9050e1340f30721d6e6f71944b57b1650e90e6835c35dd7c9f3f4b4cee9f235b8382b0811db30b3729daaafc9bc3 | 4 | SHA512 (nagios-plugins-2.3.3.tar.gz) = 2128601b1098eb82f4e7d720b96a5f92d6ad75dc181a94b25c38172767de8b72f9fece3eddb74933b1cd520928ae9416a7dc665e2f059bfe362dd74041d28cd7 | |
5 | Size (nagios-plugins-2.2.1.tar.gz) = 2728818 bytes | 5 | Size (nagios-plugins-2.3.3.tar.gz) = 2782610 bytes | |
6 | SHA1 (patch-ad) = cad52f9d8c5a6b53a1b512238df1590c0fa2177d | 6 | SHA1 (patch-configure) = b37e7b7cd1fd1582a36a0906a5a1e532fd231d50 | |
7 | SHA1 (patch-af) = 12ea1194eee95ea15ecc6d7daedd10eb9541ee6e | 7 | SHA1 (patch-gl_gettext.h) = c6e4917c30a1c4cceb46d1236fe9d2ff24359586 | |
8 | SHA1 (patch-ah) = 99b5eb4896262f5aa1de60e9f42c395a59794a6b | 8 | SHA1 (patch-lib_Makefile.in) = a91faf1b6ee112152ee85b0233466d799dfe30da | |
9 | SHA1 (patch-an) = a6adf179db754f98b2da118a8c1101edda026fbc | 9 | SHA1 (patch-plugins-root_Makefile.in) = 11a249107265a26b453bba9e3ea951595d3a01fc | |
10 | SHA1 (patch-configure) = 8a805fd88735b7b1c9cb96a974a1e6216ff23d2e | 10 | SHA1 (patch-plugins-scripts_Makefile.in) = 442a0be4d4a7b5370a9a25bc5c52f0bd467bdb8c | |
11 | SHA1 (patch-gl_gettext.h) = 37d14b4472f678bd84c13183e0fb263cd17f6ac5 | 11 | SHA1 (patch-plugins-scripts_check_breeze.pl) = 80c7f889a0cf3c1f5da4f5b6564f993c25e421b6 | |
12 | SHA1 (patch-plugins-root_Makefile.in) = 46e8968df375ca35d453e36c277d4052f125897b | 12 | SHA1 (patch-plugins-scripts_check_ntp.pl) = 8101604b3227fc9977d992c1e73885b8e3dab86a | |
13 | SHA1 (patch-plugins-scripts_check__breeze.pl) = 57ffda78989fd0d0c0fa26c74b7f53bd083dab4f | 13 | SHA1 (patch-plugins-scripts_check_wave.pl) = af42b740b64906fb4c882827165054a84bbddb76 | |
14 | SHA1 (patch-plugins-scripts_check__wave.pl) = 535b008877cad780afa2ed3429ffb84e7da3ec28 | 14 | SHA1 (patch-plugins_Makefile.in) = 3509f2972feabe4806e4529c320eb5a119b5df77 | |
15 | SHA1 (patch-plugins__check_swap.c) = b822de3488ecace977a739ebcfc56229763cd945 | 15 | SHA1 (patch-plugins_check_ide_smart.c) = 6601814ad4ac91f11dbeb18613254df55e14edbd | |
16 | SHA1 (patch-plugins_check__ide__smart.c) = 34ea76bf79da83fa84b6f0ff7f425462d0aac69e | 16 | SHA1 (patch-plugins_check_nagios.c) = 922d4494c77c1764ee30f004e96ce8734ab6954f | |
17 | SHA1 (patch-plugins_check__radius.c) = 3f86bac4f7aa52931bad46d9ee4a421c2ee744f3 | 17 | SHA1 (patch-plugins_check_radius.c) = 909c78e18a969c0d0c8431151c0b6069afaaf2ae | |
18 | SHA1 (patch-plugins_check_nagios.c) = a58d12f461a4501a8066101e091307456faf32cf | 18 | SHA1 (patch-plugins_check_swap.c) = ecef90186c97256051ae1e238f95d9861c87e31b |
@@ -1,121 +1,121 @@ | @@ -1,121 +1,121 @@ | |||
1 | $NetBSD: patch-configure,v 1.4 2017/11/08 03:20:48 taca Exp $ | 1 | $NetBSD: patch-configure,v 1.5 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | Disable all the plugins which are installed by the nagios-plugin-* packages. | 3 | Disable all the plugins which are installed by the nagios-plugin-* packages. | |
4 | 4 | |||
5 | --- configure.orig 2017-04-19 16:03:27.000000000 +0000 | 5 | --- configure.orig 2020-03-12 01:58:02.000000000 +0900 | |
6 | +++ configure | 6 | +++ configure 2023-01-09 08:50:57.067773726 +0900 | |
7 | @@ -17422,7 +17422,7 @@ _ACEOF | 7 | @@ -17494,7 +17494,7 @@ | |
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 | @@ -18947,6 +18947,9 @@ cat confdefs.h >>conftest.$ac_ext | 16 | @@ -19019,6 +19019,9 @@ | |
17 | cat >>conftest.$ac_ext <<_ACEOF | 17 | cat >>conftest.$ac_ext <<_ACEOF | |
18 | /* end confdefs.h. */ | 18 | /* end confdefs.h. */ | |
19 | #ifdef HAVE_UNISTD_H | 19 | #ifdef HAVE_UNISTD_H | |
20 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | 20 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | |
21 | +#undef _FILE_OFFSET_BITS | 21 | +#undef _FILE_OFFSET_BITS | |
22 | +#endif | 22 | +#endif | |
23 | #include <unistd.h> | 23 | #include <unistd.h> | |
24 | #endif | 24 | #endif | |
25 | #include <netinet/in.h> | 25 | #include <netinet/in.h> | |
26 | @@ -21721,7 +21724,7 @@ elif test "$ac_cv_uname_s" = "SunOS"; th | 26 | @@ -21793,7 +21796,7 @@ | |
27 | ac_cv_ps_cols=9 | 27 | ac_cv_ps_cols=9 | |
28 | { $as_echo "$as_me:$LINENO: result: using nagios-plugins internal ps command (pst3) for solaris" >&5 | 28 | { $as_echo "$as_me:$LINENO: result: using nagios-plugins internal ps command (pst3) for solaris" >&5 | |
29 | $as_echo "using nagios-plugins internal ps command (pst3) for solaris" >&6; } | 29 | $as_echo "using nagios-plugins internal ps command (pst3) for solaris" >&6; } | |
30 | - if test `isainfo -b` = 64 ; then | 30 | - if test `isainfo -b` = 64 ; then | |
31 | + if test "$MACHINE_ARCH" = "x86_64" ; then | 31 | + if test "$MACHINE_ARCH" = "x86_64" ; then | |
32 | pst3_use_64bit=1 | 32 | pst3_use_64bit=1 | |
33 | { $as_echo "$as_me:$LINENO: using 64bit pst3" >&5 | 33 | { $as_echo "$as_me:$LINENO: using 64bit pst3" >&5 | |
34 | $as_echo "$as_me: using 64bit pst3" >&6;} | 34 | $as_echo "$as_me: using 64bit pst3" >&6;} | |
35 | @@ -22748,7 +22751,7 @@ fi | 35 | @@ -22856,7 +22859,7 @@ | |
36 | then | 36 | then | |
37 | { $as_echo "$as_me:$LINENO: checking for nslookup syntax" >&5 | 37 | { $as_echo "$as_me:$LINENO: checking for nslookup syntax" >&5 | |
38 | $as_echo_n "checking for nslookup syntax... " >&6; } | 38 | $as_echo_n "checking for nslookup syntax... " >&6; } | |
39 | - if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null | 39 | - if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null | |
40 | + if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep -F "Invalid option: sil" >/dev/null | 40 | + if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep -F "Invalid option: sil" >/dev/null | |
41 | then | 41 | then | |
42 | ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" | 42 | ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" | |
43 | { $as_echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5 | 43 | { $as_echo "$as_me:$LINENO: result: $ac_cv_nslookup_command" >&5 | |
44 | @@ -23137,7 +23140,7 @@ fi | 44 | @@ -23245,7 +23248,7 @@ | |
45 | 45 | |||
46 | 46 | |||
47 | # Check whether --with-snmpget_command was given. | 47 | # Check whether --with-snmpget_command was given. | |
48 | -if test "${with_snmpget_command+set}" = set; then | 48 | -if test "${with_snmpget_command+set}" = set; then | |
49 | +if false; then | 49 | +if false; then | |
50 | withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval | 50 | withval=$with_snmpget_command; PATH_TO_SNMPGET=$withval | |
51 | fi | 51 | fi | |
52 | 52 | |||
53 | @@ -23148,7 +23151,7 @@ cat >>confdefs.h <<_ACEOF | 53 | @@ -23256,7 +23259,7 @@ | |
54 | #define PATH_TO_SNMPGET "$PATH_TO_SNMPGET" | 54 | #define PATH_TO_SNMPGET "$PATH_TO_SNMPGET" | |
55 | _ACEOF | 55 | _ACEOF | |
56 | 56 | |||
57 | - EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" | 57 | - EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" | |
58 | + #EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" | 58 | + #EXTRAS="$EXTRAS check_hpjd check_snmp\$(EXEEXT)" | |
59 | else | 59 | else | |
60 | { $as_echo "$as_me:$LINENO: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5 | 60 | { $as_echo "$as_me:$LINENO: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&5 | |
61 | $as_echo "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;} | 61 | $as_echo "$as_me: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins" >&2;} | |
62 | @@ -23209,7 +23212,7 @@ _ACEOF | 62 | @@ -23317,7 +23320,7 @@ | |
63 | 63 | |||
64 | fi | 64 | fi | |
65 | 65 | |||
66 | -if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) | 66 | -if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null ) | |
67 | +if false | 67 | +if false | |
68 | then | 68 | then | |
69 | { $as_echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5 | 69 | { $as_echo "$as_me:$LINENO: checking for Net::SNMP perl module" >&5 | |
70 | $as_echo_n "checking for Net::SNMP perl module... " >&6; } | 70 | $as_echo_n "checking for Net::SNMP perl module... " >&6; } | |
71 | @@ -23361,7 +23364,7 @@ IFS=$as_save_IFS | 71 | @@ -23480,7 +23483,7 @@ | |
72 | esac | 72 | esac | |
73 | fi | 73 | fi | |
74 | PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING | 74 | PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING | |
75 | -if test -n "$PATH_TO_FPING"; then | 75 | -if test -n "$PATH_TO_FPING"; then | |
76 | +if test -n "$PATH_TO_FPING" -a "$PATH_TO_FPING" != "no"; then | 76 | +if test -n "$PATH_TO_FPING" -a "$PATH_TO_FPING" != "no"; then | |
77 | { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5 | 77 | { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5 | |
78 | $as_echo "$PATH_TO_FPING" >&6; } | 78 | $as_echo "$PATH_TO_FPING" >&6; } | |
79 | else | 79 | else | |
80 | @@ -23401,7 +23404,7 @@ IFS=$as_save_IFS | 80 | @@ -23520,7 +23523,7 @@ | |
81 | esac | 81 | esac | |
82 | fi | 82 | fi | |
83 | PATH_TO_FPING6=$ac_cv_path_PATH_TO_FPING6 | 83 | PATH_TO_FPING6=$ac_cv_path_PATH_TO_FPING6 | |
84 | -if test -n "$PATH_TO_FPING6"; then | 84 | -if test -n "$PATH_TO_FPING6"; then | |
85 | +if test -n "$PATH_TO_FPING6" -a "$PATH_TO_FPING6" != "no"; then | 85 | +if test -n "$PATH_TO_FPING6" -a "$PATH_TO_FPING6" != "no"; then | |
86 | { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING6" >&5 | 86 | { $as_echo "$as_me:$LINENO: result: $PATH_TO_FPING6" >&5 | |
87 | $as_echo "$PATH_TO_FPING6" >&6; } | 87 | $as_echo "$PATH_TO_FPING6" >&6; } | |
88 | else | 88 | else | |
89 | @@ -24034,6 +24037,10 @@ cat confdefs.h >>conftest.$ac_ext | 89 | @@ -24211,6 +24214,10 @@ | |
90 | cat >>conftest.$ac_ext <<_ACEOF | 90 | cat >>conftest.$ac_ext <<_ACEOF | |
91 | /* end confdefs.h. */ | 91 | /* end confdefs.h. */ | |
92 | 92 | |||
93 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | 93 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | |
94 | +#undef _FILE_OFFSET_BITS | 94 | +#undef _FILE_OFFSET_BITS | |
95 | +#endif | 95 | +#endif | |
96 | + | 96 | + | |
97 | #ifdef HAVE_SYS_PARAM_H | 97 | #ifdef HAVE_SYS_PARAM_H | |
98 | #include <sys/param.h> | 98 | #include <sys/param.h> | |
99 | #endif | 99 | #endif | |
100 | @@ -24096,6 +24103,10 @@ cat confdefs.h >>conftest.$ac_ext | 100 | @@ -24273,6 +24280,10 @@ | |
101 | cat >>conftest.$ac_ext <<_ACEOF | 101 | cat >>conftest.$ac_ext <<_ACEOF | |
102 | /* end confdefs.h. */ | 102 | /* end confdefs.h. */ | |
103 | 103 | |||
104 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | 104 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | |
105 | +#undef _FILE_OFFSET_BITS | 105 | +#undef _FILE_OFFSET_BITS | |
106 | +#endif | 106 | +#endif | |
107 | + | 107 | + | |
108 | #include <unistd.h> | 108 | #include <unistd.h> | |
109 | #include <sys/types.h> | 109 | #include <sys/types.h> | |
110 | #include <sys/param.h> | 110 | #include <sys/param.h> | |
111 | @@ -24213,6 +24224,10 @@ cat confdefs.h >>conftest.$ac_ext | 111 | @@ -24350,6 +24361,10 @@ | |
112 | cat >>conftest.$ac_ext <<_ACEOF | 112 | cat >>conftest.$ac_ext <<_ACEOF | |
113 | /* end confdefs.h. */ | 113 | /* end confdefs.h. */ | |
114 | 114 | |||
115 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | 115 | +#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64 | |
116 | +#undef _FILE_OFFSET_BITS | 116 | +#undef _FILE_OFFSET_BITS | |
117 | +#endif | 117 | +#endif | |
118 | + | 118 | + | |
119 | #include <sys/types.h> | 119 | #include <sys/types.h> | |
120 | #include <sys/param.h> | 120 | #include <sys/param.h> | |
121 | #include <sys/stat.h> | 121 | #include <sys/stat.h> |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | $NetBSD: patch-gl_gettext.h,v 1.1 2017/09/09 22:47:35 joerg Exp $ | 1 | $NetBSD: patch-gl_gettext.h,v 1.2 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | Avoid redefining pgettext_expr and friends on systems that have them | 3 | Avoid redefining pgettext_expr and friends on systems that have them | |
4 | already in libintl.h | 4 | already in libintl.h | |
5 | 5 | |||
6 | --- gl/gettext.h.orig 2017-09-09 21:15:30.222205401 +0000 | 6 | --- gl/gettext.h.orig 2019-12-05 06:53:08.000000000 +0900 | |
7 | +++ gl/gettext.h | 7 | +++ gl/gettext.h 2023-01-09 08:51:04.874713509 +0900 | |
8 | @@ -180,7 +180,7 @@ npgettext_aux (const char *domain, | 8 | @@ -180,7 +180,7 @@ | |
9 | /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID | 9 | /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID | |
10 | can be arbitrary expressions. But for string literals these macros are | 10 | can be arbitrary expressions. But for string literals these macros are | |
11 | less efficient than those above. */ | 11 | less efficient than those above. */ | |
12 | - | 12 | - | |
13 | +#if !defined(pgettext_expr) | 13 | +#if !defined(pgettext_expr) | |
14 | #include <string.h> | 14 | #include <string.h> | |
15 | 15 | |||
16 | #if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ | 16 | #if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ | |
17 | @@ -284,5 +284,6 @@ dcnpgettext_expr (const char *domain, | 17 | @@ -284,5 +284,6 @@ | |
18 | } | 18 | } | |
19 | return (n == 1 ? msgid : msgid_plural); | 19 | return (n == 1 ? msgid : msgid_plural); | |
20 | } | 20 | } | |
21 | +#endif | 21 | +#endif | |
22 | 22 | |||
23 | #endif /* NAGIOS_GL_GETTEXT_H_INCLUDED */ | 23 | #endif /* _LIBGETTEXT_H */ |
$NetBSD: patch-lib_Makefile.in,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Pull in CPPFLAGS_LFS.
--- lib/Makefile.in.orig 2020-03-12 01:57:59.000000000 +0900
+++ lib/Makefile.in 2023-01-09 08:50:52.418317845 +0900
@@ -166,7 +166,7 @@
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CPPFLAGS_LFS)
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
$NetBSD: patch-plugins-scripts_Makefile.in,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Exclude plugins that would require extra dependancies.
Some can be found in specific nagios plugin packages.
--- plugins-scripts/Makefile.in.orig 2020-03-12 01:58:00.000000000 +0900
+++ plugins-scripts/Makefile.in 2023-01-09 08:50:02.651881773 +0900
@@ -1348,17 +1348,12 @@
with_trusted_path = @with_trusted_path@
@RELEASE_PRESENT_TRUE@NP_VERSION = @NP_RELEASE@
SUFFIXES = .pl .sh
-libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
- check_log check_oracle check_rpc check_sensors check_wave \
- check_ifstatus check_ifoperstatus check_mailq check_file_age \
- check_ssl_validity \
- 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 \
- check_ssl_validity.pl \
- 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
EDIT = sed \
-e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \
$NetBSD: patch-plugins-scripts_check_breeze.pl,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Fix path to snmpget.
--- plugins-scripts/check_breeze.pl.orig 2017-01-17 02:24:03.000000000 +0900
+++ plugins-scripts/check_breeze.pl 2023-01-09 08:51:25.244526777 +0900
@@ -49,7 +49,7 @@
($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);
$NetBSD: patch-plugins-scripts_check_ntp.pl,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Unknown patch, please document.
--- plugins-scripts/check_ntp.pl.orig 2019-12-05 06:53:08.000000000 +0900
+++ plugins-scripts/check_ntp.pl 2023-01-09 08:50:43.177526601 +0900
@@ -312,6 +312,7 @@
} else {
$jitter_error = $ERRORS{'OK'};
}
+ last;
} else {
print "No match!\n" if $verbose;
$jitter = '(not parsed)';
$NetBSD: patch-plugins-scripts_check_wave.pl,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Fix path to snmpget.
--- plugins-scripts/check_wave.pl.orig 2019-12-05 06:53:08.000000000 +0900
+++ plugins-scripts/check_wave.pl 2023-01-09 08:59:45.230098438 +0900
@@ -9,7 +9,7 @@
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);
@@ -29,7 +29,8 @@
"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@'); #'
@@ -42,6 +43,7 @@
}
$opt_H = shift unless ($opt_H);
+$opt_C = "public" unless ($opt_C);
unless ($opt_H) { print_usage(); exit -1; }
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]+)*)$/);
unless ($host) { print_usage(); exit -1; }
@@ -52,7 +54,7 @@
($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 2>/dev/null`;
+$low1 = `$utils::PATH_TO_SNMPGET -c $opt_C $host .1.3.6.1.4.1.74.2.21.1.2.1.8.1 2>/dev/null`;
unless ($low1) {
print "UNKNOWN - Could not find the 'snmpget' command Please install\n";
print "the snmp commands (usually net-snmp) before using $PROGNAME\n";
@@ -61,30 +63,30 @@
@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];
@@ -115,7 +117,7 @@
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 () {
$NetBSD: patch-plugins_Makefile.in,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Exclude specific plugins.
--- plugins/Makefile.in.orig 2020-03-12 01:58:00.000000000 +0900
+++ plugins/Makefile.in 2023-01-09 08:50:13.328391141 +0900
@@ -33,7 +33,7 @@
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) \
@@ -2253,7 +2253,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
+# if [ -x check_ldap ] ; then rm -f check_ldaps ; ln -s check_ldap check_ldaps ; fi
clean-local:
rm -f $(check_tcp_programs)
$NetBSD: patch-plugins_check_radius.c,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Support radius config.
--- plugins/check_radius.c.orig 2019-12-05 06:53:08.000000000 +0900
+++ plugins/check_radius.c 2023-01-09 08:53:32.981542458 +0900
@@ -99,7 +99,7 @@
char *nasipaddress = NULL;
char *castid = 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;
$NetBSD: patch-plugins_check_swap.c,v 1.1 2023/01/09 00:28:41 sekiya Exp $
Disable large file support when building 32bit on SunOS.
--- plugins/check_swap.c.orig 2019-12-05 06:53:08.000000000 +0900
+++ plugins/check_swap.c 2023-01-09 08:53:18.345470217 +0900
@@ -35,6 +35,10 @@
#include "popen.h"
#include "utils.h"
+#if defined(__sun) && !defined(_LP64) && _FILE_OFFSET_BITS == 64
+#undef _FILE_OFFSET_BITS
+#endif
+
#ifdef HAVE_DECL_SWAPCTL
# ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
@@ -1,31 +1,30 @@ | @@ -1,31 +1,30 @@ | |||
1 | $NetBSD: patch-plugins-root_Makefile.in,v 1.2 2017/07/04 19:45:18 jperkin Exp $ | 1 | $NetBSD: patch-plugins-root_Makefile.in,v 1.3 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | user-destdir install fixes. | 3 | user-destdir install fixes. | |
4 | 4 | |||
5 | --- plugins-root/Makefile.in.orig 2016-02-08 13:26:51.000000000 +0100 | 5 | --- plugins-root/Makefile.in.orig 2020-03-12 01:58:00.000000000 +0900 | |
6 | +++ plugins-root/Makefile.in 2016-02-08 13:27:43.000000000 +0100 | 6 | +++ plugins-root/Makefile.in 2023-01-09 08:51:15.301292177 +0900 | |
7 | @@ -1312,10 +1312,6 @@ | 7 | @@ -1372,10 +1372,6 @@ | |
8 | p=$$f; \ | 8 | p=$$f; \ | |
9 | echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \ | 9 | echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \ | |
10 | $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \ | 10 | $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \ | |
11 | - echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \ | 11 | - echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \ | |
12 | - chown root $(DESTDIR)$(libexecdir)/$$p; \ | 12 | - chown root $(DESTDIR)$(libexecdir)/$$p; \ | |
13 | - echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \ | 13 | - echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \ | |
14 | - chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \ | 14 | - chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \ | |
15 | done | 15 | done | |
16 | 16 | |||
17 | 17 | INSTALL_NOSUID = \ | ||
18 | @@ -1748,12 +1744,7 @@ | 18 | @@ -1819,12 +1815,7 @@ | |
19 | && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \ | 19 | && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \ | |
20 | && can_create_suid_root_executable=yes; \ | 20 | && can_create_suid_root_executable=yes; \ | |
21 | rm -f $$TMPFILE; \ | 21 | rm -f $$TMPFILE; \ | |
22 | - if test $$can_create_suid_root_executable = yes; then \ | 22 | - if test $$can_create_suid_root_executable = yes; then \ | |
23 | - $(INSTALL_SUID); \ | 23 | $(INSTALL_SUID); \ | |
24 | - else \ | 24 | - else \ | |
25 | - echo "WARNING: insufficient access; not installing setuid plugins"; \ | 25 | - echo "WARNING: insufficient access; not installing setuid plugins"; \ | |
26 | - echo "NOTE: to install setuid plugins, run 'make install-root' as root"; \ | 26 | - echo "NOTE: to install setuid plugins, run 'make install-root' as root"; \ | |
27 | - fi | 27 | - fi | |
28 | + $(INSTALL_SUID); \ | |||
29 | 28 | |||
30 | clean-local: | 29 | clean-local: | |
31 | rm -f NP-VERSION-FILE | 30 | rm -f NP-VERSION-FILE |
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | $NetBSD: patch-plugins_check_nagios.c,v 1.2 2022/04/02 10:35:35 nia Exp $ | 1 | $NetBSD: patch-plugins_check_nagios.c,v 1.3 2023/01/09 00:28:41 sekiya Exp $ | |
2 | 2 | |||
3 | Crash fix: initialize variable, check bounds on string copy. | 3 | Crash fix: initialize variable, check bounds on string copy. | |
4 | 4 | |||
5 | --- plugins/check_nagios.c.orig 2017-01-19 16:01:31.000000000 +0000 | 5 | --- plugins/check_nagios.c.orig 2019-12-05 06:53:08.000000000 +0900 | |
6 | +++ plugins/check_nagios.c | 6 | +++ plugins/check_nagios.c 2023-01-09 08:53:37.895632188 +0900 | |
7 | @@ -72,7 +72,7 @@ main (int argc, char **argv) | 7 | @@ -73,7 +73,7 @@ | |
8 | #ifdef PS_USES_PROCETIME | 8 | #ifdef PS_USES_PROCETIME | |
9 | char procetime[MAX_INPUT_BUFFER]; | 9 | char procetime[MAX_INPUT_BUFFER]; | |
10 | #endif /* PS_USES_PROCETIME */ | 10 | #endif /* PS_USES_PROCETIME */ | |
11 | - char procprog[MAX_INPUT_BUFFER]; | 11 | - char procprog[MAX_INPUT_BUFFER]; | |
12 | + char procprog[MAX_INPUT_BUFFER] = { '\0' }; | 12 | + char procprog[MAX_INPUT_BUFFER] = { '\0' }; | |
13 | char *procargs; | 13 | char *procargs; | |
14 | int pos, cols; | 14 | int pos, cols; | |
15 | int expected_cols = PS_COLS - 1; | 15 | int expected_cols = PS_COLS - 1; | |
16 | @@ -144,7 +144,8 @@ main (int argc, char **argv) | 16 | @@ -145,7 +145,8 @@ | |
17 | /* Some ps return full pathname for command. This removes path */ | 17 | /* Some ps return full pathname for command. This removes path */ | |
18 | temp_string = strtok ((char *)procprog, "/"); | 18 | temp_string = strtok ((char *)procprog, "/"); | |
19 | while (temp_string) { | 19 | while (temp_string) { | |
20 | - strcpy(procprog, temp_string); | 20 | - strcpy(procprog, temp_string); | |
21 | + strncpy(procprog, temp_string, sizeof(procprog)); | 21 | + strncpy(procprog, temp_string, sizeof(procprog)); | |
22 | + procprog[sizeof(procprog) - 1] = '\0'; | 22 | + procprog[sizeof(procprog) - 1] = '\0'; | |
23 | temp_string = strtok (NULL, "/"); | 23 | temp_string = strtok (NULL, "/"); | |
24 | } | 24 | } | |
25 | 25 |
$NetBSD: patch-plugins_check_ide_smart.c,v 1.3 2023/01/09 00:28:41 sekiya Exp $
__u8 and __u16 are not defined in videoio.h in NetBSD 9.99.x.
--- plugins/check_ide_smart.c.orig 2019-12-05 06:53:08.000000000 +0900
+++ plugins/check_ide_smart.c 2023-01-09 08:53:27.415335124 +0900
@@ -56,11 +56,14 @@
#include <sys/device.h>
#include <sys/param.h>
#include <sys/sysctl.h>
-#include <sys/videoio.h> /* for __u8 and friends */
#include <sys/scsiio.h>
#include <sys/ataio.h>
#include <dev/ata/atareg.h>
#include <dev/ic/wdcreg.h>
+#include <stdint.h>
+
+#define __u8 uint8_t
+#define __u16 uint16_t
#define SMART_ENABLE WDSM_ENABLE_OPS
#define SMART_DISABLE WDSM_DISABLE_OPS