diff --git a/CMakeLists.txt b/CMakeLists.txt index 91ad4b0d4..9b8a2b526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,7 +132,7 @@ if (SYSCONF_INSTALL_DIR) endif (SYSCONF_INSTALL_DIR) if (NOT SYSCONFDIR) - set (SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc") + set (SYSCONFDIR "/etc") endif (NOT SYSCONFDIR) if (NOT EXEC_PREFIX) @@ -161,7 +161,7 @@ if (NOT LIBDIR) endif (NOT LIBDIR) if (NOT LOCALSTATEDIR) - set (LOCALSTATEDIR "${CMAKE_INSTALL_PREFIX}/var") + set (LOCALSTATEDIR "/var") endif (NOT LOCALSTATEDIR) if (NOT DATADIR) @@ -169,16 +169,17 @@ if (NOT DATADIR) endif (NOT DATADIR) if (NOT OPENVAS_RUN_DIR) - set (OPENVAS_RUN_DIR "${LOCALSTATEDIR}/run") + set (OPENVAS_RUN_DIR "/run/ospd") endif (NOT OPENVAS_RUN_DIR) +set (OPENVAS_DATA_DIR "${DATADIR}/openvas") +set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") + if (NOT OPENVAS_FEED_LOCK_PATH) - set (OPENVAS_FEED_LOCK_PATH "${OPENVAS_RUN_DIR}/feed-update.lock") + set (OPENVAS_FEED_LOCK_PATH "${OPENVAS_STATE_DIR}/feed-update.lock") endif (NOT OPENVAS_FEED_LOCK_PATH) add_definitions (-DOPENVAS_FEED_LOCK_PATH="${OPENVAS_FEED_LOCK_PATH}") -set (OPENVAS_DATA_DIR "${DATADIR}/openvas") -set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") if (NOT GVM_LOG_DIR) set (GVM_LOG_DIR "${LOCALSTATEDIR}/log/gvm") endif (NOT GVM_LOG_DIR)