From c4b2f9e03b50f98d72a492e0c6b303b5c5f0ae4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 19 Apr 2023 09:53:37 +0200 Subject: [PATCH] Change: Don't install sync scripts by default The shell based greenbone-feed-sync script got replaced by a Python version that can be found at https://github.com/greenbone/greenbone-feed-sync/ The new python based version is easier to maintain, more flexible and can be released independently. The old sync scripts are kept only for backwards compatibility reasons and may be installed by setting the cmake parameter `INSTALL_OLD_SYNC_SCRIPTS` (for example `cmake -DINSTALL_OLD_SYNC_SCRIPTS=ON`). (cherry picked from commit 6a8583bdf4fe11bf239cd3d0c956cf015435677c) --- CMakeLists.txt | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29155fb0c..641416648 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,8 @@ endif (NOT CMAKE_BUILD_TYPE) OPTION (ENABLE_COVERAGE "Enable support for coverage analysis" OFF) OPTION (DEBUG_FUNCTION_NAMES "Print function names on entry and exit" OFF) +# the shell based scripts got replaced by https://github.com/greenbone/greenbone-feed-sync/ +OPTION (INSTALL_OLD_SYNC_SCRIPTS "Install shell based feed sync scripts" OFF) ## Retrieve git revision (at configure time) include (GetGit) @@ -394,20 +396,22 @@ install (FILES tools/cert_bund_getbyname.xsl tools/dfn_cert_getbyname.xsl DESTINATION ${GVM_CERT_RES_DIR} PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) -install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-feed-sync - DESTINATION ${SBINDIR} - PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE - GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) - -install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-scapdata-sync - DESTINATION ${SBINDIR} - PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE - GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) - -install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-certdata-sync - DESTINATION ${SBINDIR} - PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE - GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) +if (INSTALL_OLD_SYNC_SCRIPTS) + install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-feed-sync + DESTINATION ${SBINDIR} + PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE + GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + + install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-scapdata-sync + DESTINATION ${SBINDIR} + PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE + GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + + install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-certdata-sync + DESTINATION ${SBINDIR} + PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE + GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) +endif (INSTALL_OLD_SYNC_SCRIPTS) install (FILES ${CMAKE_SOURCE_DIR}/tools/gvm-lsc-deb-creator ${CMAKE_SOURCE_DIR}/tools/gvm-lsc-exe-creator