diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 06:33:49 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-19 06:33:49 +0000 |
commit | 78634f348a30a55cc55606ee1ecde032241ceaeb (patch) | |
tree | 528e39df571e37b31bfca1811c69bcc06c4af22f /net-analyzer/zmap/files | |
parent | 434fbe89e81a1fe06d92676be72ab7f862cc3f53 (diff) |
gentoo auto-resync : 19:03:2023 - 06:33:49
Diffstat (limited to 'net-analyzer/zmap/files')
-rw-r--r-- | net-analyzer/zmap/files/zmap-2.1.1-always-install-config.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-analyzer/zmap/files/zmap-2.1.1-always-install-config.patch b/net-analyzer/zmap/files/zmap-2.1.1-always-install-config.patch new file mode 100644 index 000000000000..b3a8f9003dc5 --- /dev/null +++ b/net-analyzer/zmap/files/zmap-2.1.1-always-install-config.patch @@ -0,0 +1,20 @@ +We always want to install configs as the host machine may be different from +the one where zmap is installed to. Plus we have CONFIG_PROTECT in Gentoo +for protecting the user's existing configuration. + +Bug: https://bugs.gentoo.org/885707 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -135,11 +135,7 @@ message(STATUS "Default ZMap configuration file location is /etc/zmap") + foreach(EACH_CONF ${CONF_FILES}) + get_filename_component(CONF_BASENAME ${EACH_CONF} NAME) + message(STATUS "Checking if ${CONF_BASENAME} exists there...") +- if(NOT EXISTS "/etc/zmap/${CONF_BASENAME}") +- install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION}) +- else() +- message(WARNING "Existing configuration file detected at /etc/zmap/${CONF_BASENAME}, ${CONF_BASENAME} from sources will NOT be installed. Please check and install manually!") +- endif() ++ install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION}) + endforeach() + + # Allow Debian Packaging |