diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch')
-rw-r--r-- | net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch b/net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch new file mode 100644 index 000000000000..fd3e4610f8a4 --- /dev/null +++ b/net-analyzer/openvas-scanner/files/openvas-scanner-7.0.1-disable-automagic-dep.patch @@ -0,0 +1,33 @@ +diff --git a/nasl/CMakeLists.txt b/nasl/CMakeLists.txt +index b594679c..81c5e4a9 100644 +--- a/nasl/CMakeLists.txt ++++ b/nasl/CMakeLists.txt +@@ -100,14 +100,20 @@ execute_process (COMMAND gpgme-config --cflags + OUTPUT_VARIABLE GPGME_CFLAGS + OUTPUT_STRIP_TRAILING_WHITESPACE) + +-message (STATUS "Looking for netsnmp...") +-find_library (SNMP netsnmp) +-message (STATUS "Looking for netsnmp... ${SNMP}") +-if (SNMP) +- execute_process (COMMAND net-snmp-config --libs +- OUTPUT_VARIABLE SNMP_LDFLAGS +- OUTPUT_STRIP_TRAILING_WHITESPACE) +-endif (SNMP) ++option(BUILD_WITH_SNMP "Build with SNMP Support" ON) ++if (BUILD_WITH_SNMP) ++ message (STATUS "Looking for netsnmp...") ++ find_library (SNMP netsnmp) ++ message (STATUS "Looking for netsnmp... ${SNMP}") ++ if (SNMP) ++ execute_process (COMMAND net-snmp-config --libs ++ OUTPUT_VARIABLE SNMP_LDFLAGS ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ endif (SNMP) ++ if (NOT SNMP) ++ message (SEND_ERROR " netsnmp not found") ++ endif(NOT SNMP) ++endif (BUILD_WITH_SNMP) + + message (STATUS "Looking for libgcrypt...") + find_library (GCRYPT gcrypt) |