Marcus Meissner
d10b528e62
- Update to net-snmp-5.8. Fixes included: * Fix remote DoS in agent/helpers/table.c (bsc#1111122, CVE-2018-18065) * Fix agentx freezing on timeout (bsc#1027353) * swintst_rpm: Protect against unspecified Group name (bsc#1102775) - Add tsm and tlstm MIBs and the USM security module. (bsc#1081164) - Rename and refactor patches and remove those that are already included inside the new version. Added: * net-snmp-5.8-socket-path.patch * net-snmp-5.8-testing-empty-arptable.patch * net-snmp-5.8-pie.patch * net-snmp-5.8-net-snmp-config-headercheck.patch * net-snmp-5.8-perl-tk-warning.patch * net-snmp-5.8-velocity-mib.patch * net-snmp-5.8-netgroups.patch * net-snmp-5.8-snmpstatus-suppress-output.patch * net-snmp-5.8-fix-Makefile.PL.patch * net-snmp-5.8-modern-rpm-api.patch * net-snmp-5.8-fix-python3.patch Removed: * net-snmp-5.7.3-socket-path.patch * net-snmp-5.7.3-testing-empty-arptable.patch * net-snmp-5.7.3-pie.patch * net-snmp-5.7.3-net-snmp-config-headercheck.patch * net-snmp-5.7.3-perl-tk-warning.patch * net-snmp-5.7.3-velocity-mib.patch * net-snmp-5.7.3-fix-snmpd-crashing-when-an-agentx-disconnects.patch * net-snmp-5.7.3-netgroups.patch * net-snmp-5.7.3-snmpstatus-suppress-output.patch OBS-URL: https://build.opensuse.org/request/show/641283 OBS-URL: https://build.opensuse.org/package/show/network:utilities/net-snmp?expand=0&rev=16
85 lines
2.5 KiB
Diff
85 lines
2.5 KiB
Diff
diff -Nurp net-snmp-5.8-orig/net-snmp-config.in net-snmp-5.8/net-snmp-config.in
|
|
--- net-snmp-5.8-orig/net-snmp-config.in 2018-10-10 09:45:14.947075442 +0000
|
|
+++ net-snmp-5.8/net-snmp-config.in 2018-10-10 09:48:04.792631474 +0000
|
|
@@ -41,6 +41,14 @@ count()
|
|
echo $#
|
|
}
|
|
|
|
+check_devel_files()
|
|
+{
|
|
+ if [ ! -e "${NSC_INCDIR}/net-snmp/net-snmp-config.h" ] ; then
|
|
+ echo "Can not find \"${NSC_INCDIR}/net-snmp/net-snmp-config.h\". The net-snmp development files seems to be missing. Exiting" >&2
|
|
+ # exit 2
|
|
+ fi
|
|
+}
|
|
+
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
includedir=@includedir@
|
|
@@ -140,9 +148,11 @@ else
|
|
;;
|
|
#################################################### compile
|
|
--base-cflags)
|
|
+ check_devel_files
|
|
echo @CFLAGS@ @CPPFLAGS@ -I${NSC_INCLUDEDIR}
|
|
;;
|
|
--cflags|--cf*)
|
|
+ check_devel_files
|
|
echo @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@ -I. -I${NSC_INCLUDEDIR}
|
|
;;
|
|
--srcdir)
|
|
@@ -153,6 +163,7 @@ else
|
|
echo $NSC_LIBDIR
|
|
;;
|
|
--ldflags|--ld*)
|
|
+ check_devel_files
|
|
echo $NSC_LDFLAGS
|
|
;;
|
|
--build-lib-dirs)
|
|
@@ -190,29 +201,37 @@ else
|
|
#################################################### client lib
|
|
--libs)
|
|
# use this one == --netsnmp-libs + --external-libs
|
|
+ check_devel_files
|
|
echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS
|
|
;;
|
|
--netsnmp-libs)
|
|
+ check_devel_files
|
|
echo $NSC_LIBDIR $NSC_BASE_SNMP_LIBS
|
|
;;
|
|
--external-libs)
|
|
+ check_devel_files
|
|
echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS @PERLLDOPTS_FOR_APPS@
|
|
;;
|
|
#################################################### agent lib
|
|
--base-agent-libs)
|
|
+ check_devel_files
|
|
echo $NSC_BASE_AGENT_LIBS
|
|
;;
|
|
--base-subagent-libs)
|
|
+ check_devel_files
|
|
echo $NSC_BASE_SUBAGENT_LIBS
|
|
;;
|
|
--agent-libs)
|
|
# use this one == --netsnmp-agent-libs + --external-libs
|
|
+ check_devel_files
|
|
echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_AGENTLIBS $NSC_LIBS
|
|
;;
|
|
--netsnmp-agent-libs)
|
|
+ check_devel_files
|
|
echo $NSC_LIBDIR $NSC_BASE_AGENT_LIBS
|
|
;;
|
|
--external-agent-libs)
|
|
+ check_devel_files
|
|
echo $NSC_LDFLAGS $NSC_LMIBLIBS $NSC_LAGENTLIBS $NSC_LNETSNMPLIBS $NSC_LIBS
|
|
;;
|
|
####################################################
|
|
@@ -238,6 +257,7 @@ else
|
|
|
|
####################################################
|
|
--compile-subagent)
|
|
+ check_devel_files
|
|
shift
|
|
shifted=1
|
|
while test "x$done" = "x" -a "x$1" != "x" ; do
|