Advertisement
giuseppe1977

Untitled

Jul 28th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. Remove automagic dependency on SNMP. Gentoo bug 911114.
  2. https://bugs.gentoo.org/911114
  3.  
  4. --- a/CMakeLists.txt
  5. +++ b/CMakeLists.txt
  6. @@ -145,6 +145,10 @@
  7. set (OPENVAS_RUN_DIR "/run/ospd")
  8. endif (NOT OPENVAS_RUN_DIR)
  9.  
  10. +if (NOT BUILD_WITH_SNMP)
  11. + set (BUILD_WITH_SNMP "TRUE")
  12. +endif (NOT BUILD_WITH_SNMP)
  13. +
  14. set (OPENVAS_DATA_DIR "${DATADIR}/openvas")
  15. set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas")
  16.  
  17. --- a/nasl/CMakeLists.txt
  18. +++ b/nasl/CMakeLists.txt
  19. @@ -70,14 +70,16 @@
  20. OUTPUT_STRIP_TRAILING_WHITESPACE)
  21. endif (NOT GPGME_FOUND)
  22.  
  23. -message (STATUS "Looking for netsnmp...")
  24. -find_library (SNMP netsnmp)
  25. -message (STATUS "Looking for netsnmp... ${SNMP}")
  26. -if (SNMP)
  27. - execute_process (COMMAND net-snmp-config --libs
  28. - OUTPUT_VARIABLE SNMP_LDFLAGS
  29. - OUTPUT_STRIP_TRAILING_WHITESPACE)
  30. -endif (SNMP)
  31. +if (BUILD_WITH_SNMP)
  32. + message (STATUS "Looking for netsnmp...")
  33. + find_library (SNMP netsnmp)
  34. + message (STATUS "Looking for netsnmp... ${SNMP}")
  35. + if (SNMP)
  36. + execute_process (COMMAND net-snmp-config --libs
  37. + OUTPUT_VARIABLE SNMP_LDFLAGS
  38. + OUTPUT_STRIP_TRAILING_WHITESPACE)
  39. + endif (SNMP)
  40. +endif (BUILD_WITH_SNMP)
  41.  
  42. message (STATUS "Looking for libgcrypt...")
  43. find_library (GCRYPT gcrypt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement