diff options
| author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2022-08-11 11:27:39 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-12 01:24:27 -0700 |
| commit | bf4a826c7de51dcdac87f81fa2bd2301629d50db (patch) | |
| tree | 9d0d80ad5ec2b55b0b309b767dd6bd00433db363 /meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | |
| parent | 284f38a12b3c19387f2b92a0d4fcd75011b66716 (diff) | |
| download | meta-openembedded-bf4a826c7de51dcdac87f81fa2bd2301629d50db.tar.gz | |
net-snmp: upgrade 5.9.1 -> 5.9.3
Upgrade summary:
----------------
- drop 0002-configure-fix-a-cc-check-issue.patch, as it was replaced with
upstream commit https://github.com/net-snmp/net-snmp/commit/dbb49acfa2af
- drop 0001-snmpd-always-exit-after-displaying-usage.patch backport
- rebase net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch manually
- refresh patches with devtool to get rid of fuzz
Changelog:
----------
*5.9.3*:
security:
- These two CVEs can be exploited by a user with read-only credentials:
- CVE-2022-24805 A buffer overflow in the handling of the INDEX of
NET-SNMP-VACM-MIB can cause an out-of-bounds memory access.
- CVE-2022-24809 A malformed OID in a GET-NEXT to the nsVacmAccessTable
can cause a NULL pointer dereference.
- These CVEs can be exploited by a user with read-write credentials:
- CVE-2022-24806 Improper Input Validation when SETing malformed
OIDs in master agent and subagent simultaneously
- CVE-2022-24807 A malformed OID in a SET request to
SNMP-VIEW-BASED-ACM-MIB::vacmAccessTable can cause an
out-of-bounds memory access.
- CVE-2022-24808 A malformed OID in a SET request to
NET-SNMP-AGENT-MIB::nsLogTable can cause a NULL pointer dereference
- CVE-2022-24810 A malformed OID in a SET to the nsVacmAccessTable
can cause a NULL pointer dereference.
- To avoid these flaws, use strong SNMPv3 credentials and do not share them.
If you must use SNMPv1 or SNMPv2c, use a complex community string
and enhance the protection by restricting access to a given IP address
range.
- Thanks are due to Yu Zhang of VARAS@IIE and Nanyu Zhong of VARAS@IIE for
reporting the following CVEs that have been fixed in this release, and
to Arista Networks for providing fixes.
Windows:
- WinExtDLL: Fix multiple compiler warnings
- WinExtDLL: Make long strings occupy a single line Make it easier to
look up error messages in the source code by making long strings
occupy a single source code line.
- WinExtDLL: Restore MIB-II support Make winExtDLL work on 64-bit
Windows systems") caused snmpd to skip MIB-II on 64-bit systems.
IF-MIB: Update ifTable entries even if the interface name has changed
At least on Linux a network interface index may be reused for a
network interface with a different name. Hence this patch that
enables replacing network interface information even if the network
interface name has changed.
unspecified:
- Moved transport code into a separate subdirectory in snmplib
- Snmplib: remove inline versions of container funcs".
misc:
- snmp-create-v3-user: Fix the snmpd.conf path @datadir@ is
expanded in ${datarootdir} so datarootdir must be set before
@datadir@ is used.
*5.9.2*:
skipped due to a last minute library versioning found bug -- use 5.9.3 instead
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb')
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | 292 |
1 files changed, 292 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb new file mode 100644 index 0000000000..7af5147566 --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | |||
| @@ -0,0 +1,292 @@ | |||
| 1 | SUMMARY = "Various tools relating to the Simple Network Management Protocol" | ||
| 2 | HOMEPAGE = "http://www.net-snmp.org/" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "BSD-3-Clause & MIT" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=9d100a395a38584f2ec18a8275261687" | ||
| 7 | |||
| 8 | DEPENDS = "openssl" | ||
| 9 | DEPENDS:append:class-target = " pciutils" | ||
| 10 | |||
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ | ||
| 12 | file://init \ | ||
| 13 | file://snmpd.conf \ | ||
| 14 | file://snmptrapd.conf \ | ||
| 15 | file://snmpd.service \ | ||
| 16 | file://snmptrapd.service \ | ||
| 17 | file://net-snmp-add-knob-whether-nlist.h-are-checked.patch \ | ||
| 18 | file://fix-libtool-finish.patch \ | ||
| 19 | file://net-snmp-testing-add-the-output-format-for-ptest.patch \ | ||
| 20 | file://run-ptest \ | ||
| 21 | file://0001-config_os_headers-Error-Fix.patch \ | ||
| 22 | file://0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch \ | ||
| 23 | file://0001-get_pid_from_inode-Include-limit.h.patch \ | ||
| 24 | file://0004-configure-fix-incorrect-variable.patch \ | ||
| 25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ | ||
| 26 | file://net-snmp-fix-for-disable-des.patch \ | ||
| 27 | file://reproducibility-have-printcap.patch \ | ||
| 28 | file://0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch \ | ||
| 29 | " | ||
| 30 | SRC_URI[sha256sum] = "2097f29b7e1bf3f1300b4bae52fa2308d0bb8d5d3998dbe02f9462a413a2ef0a" | ||
| 31 | |||
| 32 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/net-snmp/files/net-snmp/" | ||
| 33 | UPSTREAM_CHECK_REGEX = "/net-snmp/(?P<pver>\d+(\.\d+)+)/" | ||
| 34 | |||
| 35 | inherit autotools-brokensep update-rc.d siteinfo systemd pkgconfig perlnative ptest multilib_script multilib_header | ||
| 36 | |||
| 37 | EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${BUILD_CPPFLAGS}'" | ||
| 38 | |||
| 39 | PARALLEL_MAKE = "" | ||
| 40 | CCACHE = "" | ||
| 41 | CLEANBROKEN = "1" | ||
| 42 | |||
| 43 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 44 | |||
| 45 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} des smux" | ||
| 46 | PACKAGECONFIG[des] = "--enable-des, --disable-des" | ||
| 47 | PACKAGECONFIG[elfutils] = "--with-elf, --without-elf, elfutils" | ||
| 48 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6" | ||
| 49 | PACKAGECONFIG[libnl] = "--with-nl, --without-nl, libnl" | ||
| 50 | PACKAGECONFIG[perl] = "--enable-embedded-perl --with-perl-modules=yes, --disable-embedded-perl --with-perl-modules=no, perl" | ||
| 51 | PACKAGECONFIG[smux] = "" | ||
| 52 | PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd" | ||
| 53 | |||
| 54 | EXTRA_OECONF = " \ | ||
| 55 | --enable-shared \ | ||
| 56 | --disable-manuals \ | ||
| 57 | --with-defaults \ | ||
| 58 | --with-install-prefix=${D} \ | ||
| 59 | --with-persistent-directory=${localstatedir}/lib/net-snmp \ | ||
| 60 | --with-endianness=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \ | ||
| 61 | --with-mib-modules='${MIB_MODULES}' \ | ||
| 62 | " | ||
| 63 | |||
| 64 | MIB_MODULES = "" | ||
| 65 | MIB_MODULES:append = " ${@bb.utils.filter('PACKAGECONFIG', 'smux', d)}" | ||
| 66 | |||
| 67 | CACHED_CONFIGUREVARS = " \ | ||
| 68 | ac_cv_header_valgrind_valgrind_h=no \ | ||
| 69 | ac_cv_header_valgrind_memcheck_h=no \ | ||
| 70 | ac_cv_ETC_MNTTAB=/etc/mtab \ | ||
| 71 | lt_cv_shlibpath_overrides_runpath=yes \ | ||
| 72 | ac_cv_path_UNAMEPROG=${base_bindir}/uname \ | ||
| 73 | ac_cv_path_PSPROG=${base_bindir}/ps \ | ||
| 74 | ac_cv_file__etc_printcap=no \ | ||
| 75 | NETSNMP_CONFIGURE_OPTIONS= \ | ||
| 76 | " | ||
| 77 | PERLPROG = "${bindir}/env perl" | ||
| 78 | PERLPROG:class-native = "${bindir_native}/env perl" | ||
| 79 | PERLPROG:append = "${@bb.utils.contains('PACKAGECONFIG', 'perl', ' -I${WORKDIR}', '', d)}" | ||
| 80 | export PERLPROG | ||
| 81 | |||
| 82 | HAS_PERL = "${@bb.utils.contains('PACKAGECONFIG', 'perl', '1', '0', d)}" | ||
| 83 | |||
| 84 | PTEST_BUILD_HOST_FILES += "net-snmp-config gen-variables" | ||
| 85 | |||
| 86 | do_configure:prepend() { | ||
| 87 | sed -i -e "s|I/usr/include|I${STAGING_INCDIR}|g" \ | ||
| 88 | "${S}"/configure \ | ||
| 89 | "${S}"/configure.d/config_os_libs2 | ||
| 90 | |||
| 91 | if [ "${HAS_PERL}" = "1" ]; then | ||
| 92 | # this may need to be changed when package perl has any change. | ||
| 93 | cp -f ${STAGING_DIR_TARGET}/usr/lib*/perl?/*/Config.pm ${WORKDIR}/ | ||
| 94 | cp -f ${STAGING_DIR_TARGET}/usr/lib*/perl?/*/*/Config_heavy.pl ${WORKDIR}/ | ||
| 95 | sed -e "s@libpth => '/usr/lib.*@libpth => '${STAGING_DIR_TARGET}/${libdir} ${STAGING_DIR_TARGET}/${base_libdir}',@g" \ | ||
| 96 | -e "s@privlibexp => '/usr@privlibexp => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 97 | -e "s@scriptdir => '/usr@scriptdir => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 98 | -e "s@sitearchexp => '/usr@sitearchexp => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 99 | -e "s@sitelibexp => '/usr@sitearchexp => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 100 | -e "s@vendorarchexp => '/usr@vendorarchexp => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 101 | -e "s@vendorlibexp => '/usr@vendorlibexp => '${STAGING_DIR_TARGET}/usr@g" \ | ||
| 102 | -i ${WORKDIR}/Config.pm | ||
| 103 | fi | ||
| 104 | |||
| 105 | } | ||
| 106 | |||
| 107 | do_configure:append() { | ||
| 108 | sed -e "s@^NSC_INCLUDEDIR=.*@NSC_INCLUDEDIR=${STAGING_DIR_TARGET}\$\{includedir\}@g" \ | ||
| 109 | -e "s@^NSC_LIBDIR=-L.*@NSC_LIBDIR=-L${STAGING_DIR_TARGET}\$\{libdir\}@g" \ | ||
| 110 | -e "s@^NSC_LDFLAGS=\"-L.* @NSC_LDFLAGS=\"-L${STAGING_DIR_TARGET}\$\{libdir\} @g" \ | ||
| 111 | -i ${B}/net-snmp-config | ||
| 112 | } | ||
| 113 | |||
| 114 | do_install:append() { | ||
| 115 | install -d ${D}${sysconfdir}/snmp | ||
| 116 | install -d ${D}${sysconfdir}/init.d | ||
| 117 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/snmpd | ||
| 118 | install -m 644 ${WORKDIR}/snmpd.conf ${D}${sysconfdir}/snmp/ | ||
| 119 | install -m 644 ${WORKDIR}/snmptrapd.conf ${D}${sysconfdir}/snmp/ | ||
| 120 | install -d ${D}${systemd_unitdir}/system | ||
| 121 | install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system | ||
| 122 | install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system | ||
| 123 | sed -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \ | ||
| 124 | -i ${D}${bindir}/net-snmp-create-v3-user | ||
| 125 | sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \ | ||
| 126 | -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \ | ||
| 127 | -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \ | ||
| 128 | -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \ | ||
| 129 | -e 's@[^ ]*--sysroot=[^ "]*@@g' \ | ||
| 130 | -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \ | ||
| 131 | -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \ | ||
| 132 | -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \ | ||
| 133 | -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \ | ||
| 134 | -i ${D}${bindir}/net-snmp-config | ||
| 135 | |||
| 136 | sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \ | ||
| 137 | -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \ | ||
| 138 | -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \ | ||
| 139 | -i ${D}${libdir}/pkgconfig/netsnmp*.pc | ||
| 140 | |||
| 141 | # ${STAGING_DIR_HOST} is empty for native builds, and the sed command below | ||
| 142 | # will result in errors if run for native. | ||
| 143 | if [ "${STAGING_DIR_HOST}" ]; then | ||
| 144 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 145 | -i ${D}${bindir}/net-snmp-config ${D}${libdir}/pkgconfig/netsnmp*.pc | ||
| 146 | fi | ||
| 147 | |||
| 148 | sed -e "s@^NSC_INCLUDEDIR=.*@NSC_INCLUDEDIR=\$\{includedir\}@g" \ | ||
| 149 | -e "s@^NSC_LIBDIR=-L.*@NSC_LIBDIR=-L\$\{libdir\}@g" \ | ||
| 150 | -e "s@^NSC_LDFLAGS=\"-L.* @NSC_LDFLAGS=\"-L\$\{libdir\} @g" \ | ||
| 151 | -i ${D}${bindir}/net-snmp-config | ||
| 152 | |||
| 153 | oe_multilib_header net-snmp/net-snmp-config.h | ||
| 154 | |||
| 155 | if [ "${HAS_PERL}" = "1" ]; then | ||
| 156 | find ${D}${libdir}/ -type f -name "perllocal.pod" | xargs rm -f | ||
| 157 | fi | ||
| 158 | } | ||
| 159 | |||
| 160 | do_install_ptest() { | ||
| 161 | install -d ${D}${PTEST_PATH} | ||
| 162 | for i in ${S}/dist ${S}/include ${B}/include ${S}/mibs ${S}/configure \ | ||
| 163 | ${B}/net-snmp-config ${S}/testing; do | ||
| 164 | if [ -e "$i" ]; then | ||
| 165 | cp -R --no-dereference --preserve=mode,links -v "$i" ${D}${PTEST_PATH} | ||
| 166 | fi | ||
| 167 | done | ||
| 168 | echo `autoconf -V|awk '/autoconf/{print $NF}'` > ${D}${PTEST_PATH}/dist/autoconf-version | ||
| 169 | |||
| 170 | rmdlist="${D}${PTEST_PATH}/dist/net-snmp-solaris-build" | ||
| 171 | for i in $rmdlist; do | ||
| 172 | if [ -d "$i" ]; then | ||
| 173 | rm -rf "$i" | ||
| 174 | fi | ||
| 175 | done | ||
| 176 | } | ||
| 177 | |||
| 178 | SYSROOT_PREPROCESS_FUNCS += "net_snmp_sysroot_preprocess" | ||
| 179 | SNMP_DBGDIR = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | ||
| 180 | |||
| 181 | net_snmp_sysroot_preprocess () { | ||
| 182 | if [ -e ${D}${bindir}/net-snmp-config ]; then | ||
| 183 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | ||
| 184 | install -m 755 ${D}${bindir}/net-snmp-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | ||
| 185 | sed -e "s@-I/usr/include@-I${STAGING_INCDIR}@g" \ | ||
| 186 | -e "s@^prefix=.*@prefix=${STAGING_DIR_HOST}${prefix}@g" \ | ||
| 187 | -e "s@^exec_prefix=.*@exec_prefix=${STAGING_EXECPREFIXDIR}@g" \ | ||
| 188 | -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \ | ||
| 189 | -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \ | ||
| 190 | -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \ | ||
| 191 | -e "s@-ffile-prefix-map=${SNMP_DBGDIR}@-ffile-prefix-map=${WORKDIR}=${SNMP_DBGDIR}@g" \ | ||
| 192 | -e "s@-fdebug-prefix-map=${SNMP_DBGDIR}@-fdebug-prefix-map=${WORKDIR}=${SNMP_DBGDIR}@g" \ | ||
| 193 | -e "s@-fdebug-prefix-map= -fdebug-prefix-map=@-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | ||
| 194 | -fdebug-prefix-map=${STAGING_DIR_HOST}=@g" \ | ||
| 195 | -e "s@--sysroot=@--sysroot=${STAGING_DIR_HOST}@g" \ | ||
| 196 | -e "s@--with-libtool-sysroot=@--with-libtool-sysroot=${STAGING_DIR_HOST}@g" \ | ||
| 197 | -e "s@--with-install-prefix=@--with-install-prefix=${D}@g" \ | ||
| 198 | -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config | ||
| 199 | fi | ||
| 200 | } | ||
| 201 | |||
| 202 | PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \ | ||
| 203 | ${PN}-server-snmpd ${PN}-server-snmptrapd \ | ||
| 204 | ${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \ | ||
| 205 | ${PN}-lib-mibs ${PN}-lib-trapd" | ||
| 206 | |||
| 207 | # perl module | ||
| 208 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'perl', '${PN}-perl-modules', '', d)}" | ||
| 209 | |||
| 210 | ALLOW_EMPTY:${PN} = "1" | ||
| 211 | ALLOW_EMPTY:${PN}-server = "1" | ||
| 212 | ALLOW_EMPTY:${PN}-libs = "1" | ||
| 213 | |||
| 214 | FILES:${PN}-perl-modules = "${libdir}/perl?/*" | ||
| 215 | RDEPENDS:${PN}-perl-modules = "perl" | ||
| 216 | |||
| 217 | FILES:${PN}-libs = "" | ||
| 218 | FILES:${PN}-mibs = "${datadir}/snmp/mibs" | ||
| 219 | FILES:${PN}-server-snmpd = "${sbindir}/snmpd \ | ||
| 220 | ${sysconfdir}/snmp/snmpd.conf \ | ||
| 221 | ${sysconfdir}/init.d \ | ||
| 222 | ${systemd_unitdir}/system/snmpd.service \ | ||
| 223 | " | ||
| 224 | |||
| 225 | FILES:${PN}-server-snmptrapd = "${sbindir}/snmptrapd \ | ||
| 226 | ${sysconfdir}/snmp/snmptrapd.conf \ | ||
| 227 | ${systemd_unitdir}/system/snmptrapd.service \ | ||
| 228 | " | ||
| 229 | |||
| 230 | FILES:${PN}-lib-netsnmp = "${libdir}/libnetsnmp${SOLIBS}" | ||
| 231 | FILES:${PN}-lib-agent = "${libdir}/libnetsnmpagent${SOLIBS}" | ||
| 232 | FILES:${PN}-lib-helpers = "${libdir}/libnetsnmphelpers${SOLIBS}" | ||
| 233 | FILES:${PN}-lib-mibs = "${libdir}/libnetsnmpmibs${SOLIBS}" | ||
| 234 | FILES:${PN}-lib-trapd = "${libdir}/libnetsnmptrapd${SOLIBS}" | ||
| 235 | |||
| 236 | FILES:${PN} = "" | ||
| 237 | FILES:${PN}-client = "${bindir}/* ${datadir}/snmp/" | ||
| 238 | FILES:${PN}-dbg += "${libdir}/.debug/ ${sbindir}/.debug/ ${bindir}/.debug/" | ||
| 239 | FILES:${PN}-dev += "${bindir}/mib2c \ | ||
| 240 | ${bindir}/mib2c-update \ | ||
| 241 | ${bindir}/net-snmp-config \ | ||
| 242 | ${bindir}/net-snmp-create-v3-user \ | ||
| 243 | " | ||
| 244 | |||
| 245 | CONFFILES:${PN}-server-snmpd = "${sysconfdir}/snmp/snmpd.conf" | ||
| 246 | CONFFILES:${PN}-server-snmptrapd = "${sysconfdir}/snmp/snmptrapd.conf" | ||
| 247 | |||
| 248 | INITSCRIPT_PACKAGES = "${PN}-server-snmpd" | ||
| 249 | INITSCRIPT_NAME:${PN}-server-snmpd = "snmpd" | ||
| 250 | INITSCRIPT_PARAMS:${PN}-server-snmpd = "start 90 2 3 4 5 . stop 60 0 1 6 ." | ||
| 251 | |||
| 252 | SYSTEMD_PACKAGES = "${PN}-server-snmpd \ | ||
| 253 | ${PN}-server-snmptrapd" | ||
| 254 | |||
| 255 | SYSTEMD_SERVICE:${PN}-server-snmpd = "snmpd.service" | ||
| 256 | SYSTEMD_SERVICE:${PN}-server-snmptrapd = "snmptrapd.service" | ||
| 257 | |||
| 258 | RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'net-snmp-perl-modules', '', d)}" | ||
| 259 | RDEPENDS:${PN} += "net-snmp-client" | ||
| 260 | RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs" | ||
| 261 | RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd" | ||
| 262 | RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd" | ||
| 263 | RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs" | ||
| 264 | RDEPENDS:${PN}-libs += "libpci \ | ||
| 265 | ${PN}-lib-netsnmp \ | ||
| 266 | ${PN}-lib-agent \ | ||
| 267 | ${PN}-lib-helpers \ | ||
| 268 | ${PN}-lib-mibs \ | ||
| 269 | " | ||
| 270 | RDEPENDS:${PN}-ptest += "perl \ | ||
| 271 | perl-module-test \ | ||
| 272 | perl-module-file-basename \ | ||
| 273 | perl-module-getopt-long \ | ||
| 274 | perl-module-file-temp \ | ||
| 275 | perl-module-data-dumper \ | ||
| 276 | " | ||
| 277 | RDEPENDS:${PN}-dev = "net-snmp-client (= ${EXTENDPKGV}) net-snmp-server (= ${EXTENDPKGV})" | ||
| 278 | RRECOMMENDS:${PN}-dbg = "net-snmp-client (= ${EXTENDPKGV}) net-snmp-server (= ${EXTENDPKGV})" | ||
| 279 | |||
| 280 | RPROVIDES:${PN}-server-snmpd += "${PN}-server-snmpd-systemd" | ||
| 281 | RREPLACES:${PN}-server-snmpd += "${PN}-server-snmpd-systemd" | ||
| 282 | RCONFLICTS:${PN}-server-snmpd += "${PN}-server-snmpd-systemd" | ||
| 283 | |||
| 284 | RPROVIDES:${PN}-server-snmptrapd += "${PN}-server-snmptrapd-systemd" | ||
| 285 | RREPLACES:${PN}-server-snmptrapd += "${PN}-server-snmptrapd-systemd" | ||
| 286 | RCONFLICTS:${PN}-server-snmptrapd += "${PN}-server-snmptrapd-systemd" | ||
| 287 | |||
| 288 | LEAD_SONAME = "libnetsnmp.so" | ||
| 289 | |||
| 290 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/net-snmp-config" | ||
| 291 | |||
| 292 | BBCLASSEXTEND = "native" | ||
