Marcel Telka
2024-02-13 8ed4254a9c497388f52452371d0d7f4b025ed11c
net-snmp: add missing Perl dependencies for snmpcheck

27 files modified
184 ■■■■ changed files
components/sysutils/net-snmp/Makefile 11 ●●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/manifests/sample-manifest.p5m 4 ●●● patch | view | raw | blame | history
components/sysutils/net-snmp/net-snmp-addons.p5m 4 ●●● patch | view | raw | blame | history
components/sysutils/net-snmp/net-snmp-base.p5m 8 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/net-snmp-demo.p5m 6 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/002.pkcs.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/008.ip-mib.patch 10 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/009.ltmain.sh.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/011.Makefile.in.patch 12 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/012.Makefile.PL.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/015.6956251.vmstat_solaris2.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/016.6934478.vmstat_solaris2.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/023.6438650.python.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/024.7119673,7127371.kernel_sunos5.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/028.7069199.doxygen.conf.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/029.7097655.ipAddressTable_container.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/031.17658764.kernel_sunos5.patch 8 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/054.20479968.net-snmp-config.in.patch 5 ●●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/060.20461627.17502158.kernel_sunos5.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/068.27699498.scapi-fips-enable-des.patch 14 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/069.27686289.scapi-fips-enable-md5.patch 12 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/070.28626839.scapi_md5.patch 12 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/071.28691151.scapi_des.patch 14 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/075.29795396.createuser.patch 4 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/076.21442153.sysconf.patch 10 ●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/patches/077.configure.patch 5 ●●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/pkg5 5 ●●●●● patch | view | raw | blame | history
components/sysutils/net-snmp/Makefile
@@ -33,6 +33,7 @@
COMPONENT_NAME=        net-snmp
COMPONENT_VERSION=    5.9.4
COMPONENT_REVISION=    1
COMPONENT_SUMMARY=    Net-SNMP Agent files and libraries
COMPONENT_PROJECT_URL=    http://www.net-snmp.org/
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
@@ -41,15 +42,12 @@
COMPONENT_ARCHIVE_URL=    https://sourceforge.net/projects/net-snmp/files/net-snmp/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI=        system/management/snmp/net-snmp
COMPONENT_CLASSIFICATION= System/Enterprise Management
COMPONENT_LICENSE=    BSD, BSD-like
COMPONENT_LICENSE_FILE=    COPYING
include $(WS_MAKE_RULES)/common.mk
# Our build server doesn't like parallel builds of this package:
COMPONENT_BUILD_ARGS=-j1
PKG_MACROS += PERL_ARCH=$(PERL_ARCH)
PATH= $(VPATH):$(PATH.gnu)
PATH= $(PATH.gnu)
DOXYGEN= /usr/bin/doxygen
@@ -155,4 +153,3 @@
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/libpcap
REQUIRED_PACKAGES += system/library/math
components/sysutils/net-snmp/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -639,6 +639,7 @@
file path=usr/share/doc/net-snmp/html/check__varbind_8c_source.html
file path=usr/share/doc/net-snmp/html/check__varbind_8h_source.html
file path=usr/share/doc/net-snmp/html/classes.html
file path=usr/share/doc/net-snmp/html/clipboard.js
file path=usr/share/doc/net-snmp/html/closed.png
file path=usr/share/doc/net-snmp/html/closedir_8c_source.html
file path=usr/share/doc/net-snmp/html/config__api_8h_source.html
@@ -684,6 +685,7 @@
file path=usr/share/doc/net-snmp/html/docd.svg
file path=usr/share/doc/net-snmp/html/doxygen.css
file path=usr/share/doc/net-snmp/html/doxygen.svg
file path=usr/share/doc/net-snmp/html/doxygen_crawl.html
file path=usr/share/doc/net-snmp/html/ds__agent_8h_source.html
file path=usr/share/doc/net-snmp/html/dummy_8c_source.html
file path=usr/share/doc/net-snmp/html/dynsections.js
components/sysutils/net-snmp/net-snmp-addons.p5m
@@ -28,11 +28,9 @@
set name=com.oracle.info.description value="the Net-SNMP addon libraries"
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=org.opensolaris.arc-caseid value=LSARC/2008/355 value=PSARC/2014/169 \
    value=PSARC/2019/050
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file $(MACH64)/sun/agent/modules/seaExtensions/libseaExtensions.so \
    path=usr/lib/$(MACH64)/libseaExtensions.so
license COPYING license="BSD, BSD-like"
components/sysutils/net-snmp/net-snmp-base.p5m
@@ -23,7 +23,11 @@
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license COPYING license="BSD, BSD-like"
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
# snmpcheck needs additional Perl modules
depend type=require fmri=library/perl-5/termreadkey-$(PLV)
depend type=require fmri=library/perl-5/tk-$(PLV)
file $(MACH64)/sun/snmpd.conf path=etc/net-snmp/snmp/snmpd.conf mode=0600 \
    overlay=allow preserve=renamenew
@@ -729,6 +733,7 @@
file path=usr/share/doc/net-snmp/html/check__varbind_8c_source.html
file path=usr/share/doc/net-snmp/html/check__varbind_8h_source.html
file path=usr/share/doc/net-snmp/html/classes.html
file path=usr/share/doc/net-snmp/html/clipboard.js
file path=usr/share/doc/net-snmp/html/closed.png
file path=usr/share/doc/net-snmp/html/closedir_8c_source.html
file path=usr/share/doc/net-snmp/html/config__api_8h_source.html
@@ -774,6 +779,7 @@
file path=usr/share/doc/net-snmp/html/docd.svg
file path=usr/share/doc/net-snmp/html/doxygen.css
file path=usr/share/doc/net-snmp/html/doxygen.svg
file path=usr/share/doc/net-snmp/html/doxygen_crawl.html
file path=usr/share/doc/net-snmp/html/ds__agent_8h_source.html
file path=usr/share/doc/net-snmp/html/dummy_8c_source.html
file path=usr/share/doc/net-snmp/html/dynsections.js
components/sysutils/net-snmp/net-snmp-demo.p5m
@@ -33,9 +33,10 @@
set name=pkg.linted.pkglint.manifest004 value=true
set name=com.oracle.info.description value="the Net-SNMP demo module files"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=org.opensolaris.arc-caseid value=LSARC/2008/355 value=PSARC/2014/169 \
    value=PSARC/2019/050
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file build/$(MACH64)/sun/sdk/demo/demo_module_1/Makefile \
    path=usr/demo/net-snmp/demo_module_1/Makefile
file build/$(MACH64)/sun/sdk/demo/demo_module_1/README_demo_module_1 \
@@ -196,6 +197,5 @@
    path=usr/demo/net-snmp/demo_module_9/set_demo_module_9
file build/$(MACH64)/sun/sdk/demo/demo_module_9/walk_demo_module_9 \
    path=usr/demo/net-snmp/demo_module_9/walk_demo_module_9
license COPYING license="BSD, BSD-like"
depend type=optional \
    fmri=system/management/snmp/net-snmp/documentation@5.7.3
components/sysutils/net-snmp/patches/002.pkcs.patch
@@ -3,8 +3,8 @@
(Upstream Bug) #2374 net-snmp is coring when stopped
=====================================================================
--- net-snmp-5.4.1/snmplib/pkcs.c    Tue Mar  5 17:29:50 2013
+++ net-snmp-5.4.1/snmplib/pkcs.mod.c    Tue Mar  5 17:35:30 2013
--- net-snmp-5.9.4/snmplib/pkcs.c.orig
+++ net-snmp-5.9.4/snmplib/pkcs.c
@@ -1,5 +1,5 @@
 /*
- * Copyright Copyright 2003 Sun Microsystems, Inc. All rights reserved.
components/sysutils/net-snmp/patches/008.ip-mib.patch
@@ -1,8 +1,8 @@
--- net-snmp-5.4.1/agent/mibgroup/mibII.h    (revision 16428)
+++ net-snmp-5.4.1-patch/agent/mibgroup/mibII.h    (working copy)
@@ -30,3 +30,10 @@
 #if defined( linux )
 config_require(ip-mib ip-forward-mib tcp-mib udp-mib)
--- net-snmp-5.9.4/agent/mibgroup/mibII.h.orig
+++ net-snmp-5.9.4/agent/mibgroup/mibII.h
@@ -56,3 +56,10 @@
  * ip-mib/ipv6ScopeZoneIndexTable
  */
 #endif
+
+/*
components/sysutils/net-snmp/patches/009.ltmain.sh.patch
@@ -1,8 +1,8 @@
# RPATH issues when upgrading net-snmp to version 5.4.1
#
# Developed in-house. Solaris-specific; not suitable for upstream
--- net-snmp-5.9.1/ltmain.sh.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/ltmain.sh    2022-12-25 13:02:08.376343062 +0000
--- net-snmp-5.9.4/ltmain.sh.orig
+++ net-snmp-5.9.4/ltmain.sh
@@ -6828,7 +6828,9 @@
       if test rpath = "$prev"; then
         case "$rpath " in
components/sysutils/net-snmp/patches/011.Makefile.in.patch
@@ -5,8 +5,8 @@
# -zdefs, which should work. One such example is FMA in ON gate. 
# Solaris-specific; not suitable for upstream
#
--- net-snmp-5.9.3/agent/Makefile.in.~1~    2022-07-13 23:14:14.000000000 +0000
+++ net-snmp-5.9.3/agent/Makefile.in    2022-12-25 14:36:34.896892074 +0000
--- net-snmp-5.9.4/agent/Makefile.in.orig
+++ net-snmp-5.9.4/agent/Makefile.in
@@ -280,9 +280,13 @@
 FTOBJS        = $(LLIBAGENTFTS)  $(FTMIBOBJS) $(FTAGENTOBJS) \
           mib_modules.ft auto_nlist.ft
@@ -33,8 +33,8 @@
 miblib: $(MIBLIB)
 
 libs: $(AGENTLIB) $(MIBLIB)
--- net-snmp-5.9.3/agent/helpers/Makefile.in.orig    2022-12-25 14:36:34.898238825 +0000
+++ net-snmp-5.9.3/agent/helpers/Makefile.in    2022-12-25 14:41:23.387064549 +0000
--- net-snmp-5.9.4/agent/helpers/Makefile.in.orig
+++ net-snmp-5.9.4/agent/helpers/Makefile.in
@@ -29,8 +29,11 @@
 
 LOBJS = dummy.lo
@@ -49,8 +49,8 @@
-    $(RANLIB) $@
+    $(LIB_LD_CMD) $@ $(LIB_LD_ADD_PATH) $(LOBJS) $(LDFLAGS) $(LIB_LD_LIBS) $(LIB_LD_ADD)
+    $(RANLIB) $@ $(LIB_LD_ADD)
--- net-snmp-5.9.3/snmplib/Makefile.in.~1~    2022-07-13 23:14:14.000000000 +0000
+++ net-snmp-5.9.3/snmplib/Makefile.in    2022-12-25 14:36:34.899875158 +0000
--- net-snmp-5.9.4/snmplib/Makefile.in.orig
+++ net-snmp-5.9.4/snmplib/Makefile.in
@@ -221,6 +221,9 @@
 # just in case someone wants to remove libtool, change this to OBJS.
 TOBJS=$(LOBJS)
components/sysutils/net-snmp/patches/012.Makefile.PL.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.9.1/perl/agent/Makefile.PL.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/perl/agent/Makefile.PL    2022-12-25 13:12:48.480816285 +0000
--- net-snmp-5.9.4/perl/agent/Makefile.PL.orig
+++ net-snmp-5.9.4/perl/agent/Makefile.PL
@@ -88,7 +88,7 @@
                 " -L" . abs_path("../../agent") .
                 " " . $Params{'LIBS'};
components/sysutils/net-snmp/patches/015.6956251.vmstat_solaris2.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c    2022-12-25 13:16:37.186868234 +0000
--- net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c
@@ -590,6 +590,13 @@
             cpu_sum += (css_new->css_cpu[i] - css_old->css_cpu[i]);
         }
components/sysutils/net-snmp/patches/016.6934478.vmstat_solaris2.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig    2022-12-25 13:16:37.186868234 +0000
+++ net-snmp-5.9.1/agent/mibgroup/ucd-snmp/vmstat_solaris2.c    2022-12-25 13:17:42.686926921 +0000
--- net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/ucd-snmp/vmstat_solaris2.c
@@ -710,7 +710,12 @@
     case CPUIDLE:
         return ((u_char *) (&cpu_perc[CPU_IDLE]));
components/sysutils/net-snmp/patches/023.6438650.python.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.9.3/Makefile.in.orig    2022-07-13 23:14:14.000000000 +0000
+++ net-snmp-5.9.3/Makefile.in    2022-12-25 20:07:45.576346291 +0000
--- net-snmp-5.9.4/Makefile.in.orig
+++ net-snmp-5.9.4/Makefile.in
@@ -234,7 +234,7 @@
         fi
 
components/sysutils/net-snmp/patches/024.7119673,7127371.kernel_sunos5.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.9.1/agent/mibgroup/kernel_sunos5.c.orig    2022-12-25 13:03:38.889396309 +0000
+++ net-snmp-5.9.1/agent/mibgroup/kernel_sunos5.c    2022-12-25 13:20:20.255771354 +0000
--- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c
@@ -1087,18 +1087,21 @@
 static int
 _dlpi_open(const char *devname)
components/sysutils/net-snmp/patches/028.7069199.doxygen.conf.patch
@@ -1,5 +1,5 @@
--- net-snmp-5.4.1/doxygen.conf.orig    2012-09-27 11:27:49.421496871 -0700
+++ net-snmp-5.4.1/doxygen.conf    2012-09-27 11:29:25.510013537 -0700
--- net-snmp-5.9.4/doxygen.conf.orig
+++ net-snmp-5.9.4/doxygen.conf
@@ -422,6 +422,12 @@
 
 HTML_STYLESHEET        = 
components/sysutils/net-snmp/patches/029.7097655.ipAddressTable_container.patch
@@ -6,8 +6,8 @@
# Developed in-house. Bug submitted upstream
# https://sourceforge.net/p/net-snmp/bugs/2589
#
--- net-snmp-5.9.3/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c.~1~    2022-07-13 23:14:14.000000000 +0000
+++ net-snmp-5.9.3/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c    2022-12-25 14:43:54.178517905 +0000
--- net-snmp-5.9.4/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c
@@ -370,6 +370,8 @@
      * missing addresses to be deleted. Also, prune interfaces in
      * ipaddress_container, so only the new interfaces remain.
components/sysutils/net-snmp/patches/031.17658764.kernel_sunos5.patch
@@ -1,6 +1,6 @@
--- net-snmp-5.8.old/agent/mibgroup/kernel_sunos5.c    2019-03-20 02:09:02.300743680 +0000
+++ net-snmp-5.8/agent/mibgroup/kernel_sunos5.c    2019-03-06 04:08:44.088123434 +0000
@@ -82,15 +85,15 @@
--- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c
@@ -82,15 +82,15 @@
 static
 mibcache        Mibcache[MIBCACHE_SIZE+1] = {
     {MIB_SYSTEM, 0, (void *) -1, 0, 0, 0, 0},
@@ -20,7 +20,7 @@
      300, 0, 0},
     {MIB_ICMP, sizeof(mib2_icmp_t), (void *) -1, 0, 60, 0, 0},
     {MIB_TCP, sizeof(mib2_tcp_t), (void *) -1, 0, 60, 0, 0},
@@ -105,13 +108,13 @@
@@ -105,13 +105,13 @@
     {MIB_SNMP, 0, (void *) -1, 0, 0, 0, 0},
 #ifdef SOLARIS_HAVE_IPV6_MIB_SUPPORT
 #ifdef SOLARIS_HAVE_RFC4293_SUPPORT
components/sysutils/net-snmp/patches/054.20479968.net-snmp-config.in.patch
@@ -1,6 +1,5 @@
diff -Nru net-snmp-5.9.4.orig/net-snmp-create-v3-user.in net-snmp-5.9.4/net-snmp-create-v3-user.in
--- net-snmp-5.9.4.orig/net-snmp-create-v3-user.in    2023-08-15 22:32:01.000000000 +0200
+++ net-snmp-5.9.4/net-snmp-create-v3-user.in    2023-10-08 15:48:18.448638501 +0200
--- net-snmp-5.9.4/net-snmp-create-v3-user.in.orig
+++ net-snmp-5.9.4/net-snmp-create-v3-user.in
@@ -3,7 +3,7 @@
 # this shell script is designed to add new SNMPv3 users
 # to Net-SNMP config file.
components/sysutils/net-snmp/patches/060.20461627.17502158.kernel_sunos5.patch
@@ -6,8 +6,8 @@
The details can be found in the following location
https://sourceforge.net/p/net-snmp/bugs/2605/
--- net-snmp-5.9.3/agent/mibgroup/kernel_sunos5.c.~3~    2022-12-25 14:43:54.219000322 +0000
+++ net-snmp-5.9.3/agent/mibgroup/kernel_sunos5.c    2022-12-25 14:43:54.312888822 +0000
--- net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c.orig
+++ net-snmp-5.9.4/agent/mibgroup/kernel_sunos5.c
@@ -1739,8 +1739,8 @@
     if (ifp->ifAdminStatus == 1) {
         int i_tmp;
components/sysutils/net-snmp/patches/068.27699498.scapi-fips-enable-des.patch
@@ -1,6 +1,6 @@
--- net-snmp-5.9.1/snmplib/scapi.c.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/snmplib/scapi.c    2022-12-25 14:11:22.618794767 +0000
@@ -204,6 +204,16 @@
--- net-snmp-5.9.4/snmplib/scapi.c.orig
+++ net-snmp-5.9.4/snmplib/scapi.c
@@ -205,6 +205,16 @@
 };
 
 
@@ -17,7 +17,7 @@
 /*
  * sc_get_priv_alg(oid *privoid, u_int len)
  *
@@ -780,7 +790,6 @@
@@ -781,7 +791,6 @@
     if (NULL == hashfn) {
         QUITFUN(SNMPERR_GENERR, sc_generate_keyed_hash_quit);
     }
@@ -25,7 +25,7 @@
     HMAC(hashfn, key, keylen, message, msglen, buf, &buf_len);
     if (buf_len != properlength) {
         QUITFUN(rval, sc_generate_keyed_hash_quit);
@@ -1262,43 +1271,10 @@
@@ -1263,43 +1272,10 @@
 
 #ifndef NETSNMP_DISABLE_DES
     if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) {
@@ -73,7 +73,7 @@
         }
     }
 #endif
@@ -1517,13 +1493,11 @@
@@ -1518,13 +1494,11 @@
     memset(my_iv, 0, sizeof(my_iv));
 #ifndef NETSNMP_DISABLE_DES
     if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) {
@@ -92,7 +92,7 @@
     }
 #endif
 #if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_AES)
@@ -1850,4 +1824,87 @@
@@ -1851,4 +1825,87 @@
     return rc;
 }
 #endif /* NETSNMP_USE_INTERNAL_CRYPTO */
components/sysutils/net-snmp/patches/069.27686289.scapi-fips-enable-md5.patch
@@ -1,6 +1,6 @@
--- net-snmp-5.9.1/snmplib/scapi.c.orig    2022-12-25 14:11:22.618794767 +0000
+++ net-snmp-5.9.1/snmplib/scapi.c    2022-12-25 14:13:51.041657458 +0000
@@ -206,6 +206,10 @@
--- net-snmp-5.9.4/snmplib/scapi.c.orig
+++ net-snmp-5.9.4/snmplib/scapi.c
@@ -207,6 +207,10 @@
 
 #ifdef NETSNMP_USE_OPENSSL
 static
@@ -11,7 +11,7 @@
 int EVP_decrypt(const EVP_CIPHER *type, u_char * key,
                 u_int keylen, u_char * iv, u_char * ciphertext,
                 u_int ctlen, u_char * plaintext);
@@ -743,7 +747,7 @@
@@ -744,7 +748,7 @@
     size_t          properlength;
     u_char          buf[SNMP_MAXBUF_SMALL];
 #if  defined(NETSNMP_USE_OPENSSL) || defined(NETSNMP_USE_PKCS11)
@@ -20,7 +20,7 @@
 #endif
 #ifdef NETSNMP_USE_OPENSSL
     const EVP_MD   *hashfn;
@@ -790,7 +794,12 @@
@@ -791,7 +795,12 @@
     if (NULL == hashfn) {
         QUITFUN(SNMPERR_GENERR, sc_generate_keyed_hash_quit);
     }
@@ -34,7 +34,7 @@
     if (buf_len != properlength) {
         QUITFUN(rval, sc_generate_keyed_hash_quit);
     }
@@ -1826,6 +1835,49 @@
@@ -1827,6 +1836,49 @@
 #endif /* NETSNMP_USE_INTERNAL_CRYPTO */
 #ifdef NETSNMP_USE_OPENSSL
 static
components/sysutils/net-snmp/patches/070.28626839.scapi_md5.patch
@@ -1,6 +1,6 @@
--- net-snmp-5.9.1/snmplib/scapi.c.orig    2022-12-25 14:13:51.041657458 +0000
+++ net-snmp-5.9.1/snmplib/scapi.c    2022-12-25 14:17:00.844847777 +0000
@@ -207,8 +207,8 @@
--- net-snmp-5.9.4/snmplib/scapi.c.orig
+++ net-snmp-5.9.4/snmplib/scapi.c
@@ -208,8 +208,8 @@
 #ifdef NETSNMP_USE_OPENSSL
 static
 void EVP_hmac(const EVP_MD *evp_md, const void *key,
@@ -11,7 +11,7 @@
 static
 int EVP_decrypt(const EVP_CIPHER *type, u_char * key,
                 u_int keylen, u_char * iv, u_char * ciphertext,
@@ -796,7 +796,7 @@
@@ -797,7 +797,7 @@
     }
 #ifndef NETSNMP_DISABLE_MD5
     if (auth_type == NETSNMP_USMAUTH_HMACMD5)
@@ -20,7 +20,7 @@
     else
 #endif
         HMAC(hashfn, key, keylen, message, msglen, buf, &buf_len);
@@ -1836,8 +1836,8 @@
@@ -1837,8 +1837,8 @@
 #ifdef NETSNMP_USE_OPENSSL
 static
 void EVP_hmac(const EVP_MD *evp_md, const void *key,
@@ -31,7 +31,7 @@
 {
         EVP_MD_CTX* mdctx = NULL;
         EVP_PKEY *pkey = NULL;
@@ -1861,7 +1861,7 @@
@@ -1862,7 +1862,7 @@
             EVP_PKEY_free(pkey);
             return;
         }
components/sysutils/net-snmp/patches/071.28691151.scapi_des.patch
@@ -1,6 +1,6 @@
--- net-snmp-5.9.1/snmplib/scapi.c.orig    2022-12-25 14:17:00.844847777 +0000
+++ net-snmp-5.9.1/snmplib/scapi.c    2022-12-25 14:17:51.957349229 +0000
@@ -212,7 +212,7 @@
--- net-snmp-5.9.4/snmplib/scapi.c.orig
+++ net-snmp-5.9.4/snmplib/scapi.c
@@ -213,7 +213,7 @@
 static
 int EVP_decrypt(const EVP_CIPHER *type, u_char * key,
                 u_int keylen, u_char * iv, u_char * ciphertext,
@@ -9,7 +9,7 @@
 static
 int EVP_encrypt(const EVP_CIPHER *type, u_char * key,
                 u_int keylen, u_char * iv, const u_char * plaintext,
@@ -1504,7 +1504,7 @@
@@ -1505,7 +1505,7 @@
     if (USM_CREATE_USER_PRIV_DES == (pai->type & USM_PRIV_MASK_ALG)) {
         if(!EVP_decrypt(EVP_des_cbc(), key,
                         keylen, iv, ciphertext,
@@ -18,7 +18,7 @@
             QUITFUN(SNMPERR_GENERR, sc_decrypt_quit);
        }
     }
@@ -1899,20 +1899,36 @@
@@ -1900,20 +1900,36 @@
          return FALSE;
       }
       EVP_CIPHER_CTX_set_key_length(ctx, keylen);
@@ -55,7 +55,7 @@
       *ctlen = outlen;
 
       return TRUE;
@@ -1921,12 +1937,12 @@
@@ -1922,12 +1938,12 @@
 static
 int EVP_decrypt(const EVP_CIPHER *type, u_char * key,
                 u_int keylen, u_char * iv, u_char * ciphertext,
@@ -70,7 +70,7 @@
       if((ctx = EVP_CIPHER_CTX_new()) == NULL) {
          snmp_log(LOG_ERR, "EVP_CIPHER_CTX_new failure.\n");
          return FALSE;
@@ -1940,21 +1956,39 @@
@@ -1941,21 +1957,39 @@
           return FALSE;
       }
       EVP_CIPHER_CTX_set_key_length(ctx, keylen);
components/sysutils/net-snmp/patches/075.29795396.createuser.patch
@@ -1,8 +1,8 @@
Patch developed inhouse, submitted upstream.
Details at
https://sourceforge.net/p/net-snmp/bugs/2940/
--- net-snmp-5.9.3/net-snmp-create-v3-user.in.orig    2022-12-25 14:55:06.731078431 +0000
+++ net-snmp-5.9.3/net-snmp-create-v3-user.in    2022-12-25 14:58:07.440774009 +0000
--- net-snmp-5.9.4/net-snmp-create-v3-user.in.orig
+++ net-snmp-5.9.4/net-snmp-create-v3-user.in
@@ -122,7 +122,7 @@
 if test "x$xpassphrase" = "x" ; then
     line="createUser $user $Aalgorithm \"$apassphrase\" $Xalgorithm"
components/sysutils/net-snmp/patches/076.21442153.sysconf.patch
@@ -1,6 +1,6 @@
Solaris specific patch, not suitable for upstream.
--- net-snmp-5.9.1/man/snmptrapd.conf.5.def.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/man/snmptrapd.conf.5.def    2022-12-25 14:20:06.545656601 +0000
--- net-snmp-5.9.4/man/snmptrapd.conf.5.def.orig
+++ net-snmp-5.9.4/man/snmptrapd.conf.5.def
@@ -309,7 +309,7 @@
 The default in each case is for the feature to be turned off, so these
 directives are typically only used to enable the appropriate behaviour.
@@ -10,9 +10,9 @@
 .SH "SEE ALSO"
 snmp_config(5), snmptrapd(8), syslog(8), traptoemail(1), variables(5), netsnmp_config_api(3).
 
--- net-snmp-5.9.1/man/snmpd.conf.5.def.orig    2021-05-26 00:19:35.000000000 +0000
+++ net-snmp-5.9.1/man/snmpd.conf.5.def    2022-12-25 14:20:06.548350184 +0000
@@ -1852,7 +1852,7 @@
--- net-snmp-5.9.4/man/snmpd.conf.5.def.orig
+++ net-snmp-5.9.4/man/snmpd.conf.5.def
@@ -1865,7 +1865,7 @@
 detailed example of how the above information is used in real
 examples.
 .SH "FILES"
components/sysutils/net-snmp/patches/077.configure.patch
@@ -1,6 +1,5 @@
diff -Nru net-snmp-5.9.4.orig/configure net-snmp-5.9.4/configure
--- net-snmp-5.9.4.orig/configure    2023-08-15 22:32:24.000000000 +0200
+++ net-snmp-5.9.4/configure    2023-10-08 16:30:14.614812598 +0200
--- net-snmp-5.9.4/configure.orig
+++ net-snmp-5.9.4/configure
@@ -31670,7 +31670,7 @@
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${type}" >&5
 printf "%s\n" "${type}" >&6; }
components/sysutils/net-snmp/pkg5
@@ -9,8 +9,7 @@
        "shell/ksh93",
        "system/header/header-picl",
        "system/library",
        "system/library/libpcap",
        "system/library/math"
        "system/library/libpcap"
    ],
    "fmris": [
        "system/management/snmp/net-snmp",
@@ -18,4 +17,4 @@
        "system/management/snmp/net-snmp/demo"
    ],
    "name": "net-snmp"
}
}