diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-09-09 15:49:25 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2019-09-09 15:49:25 +0200 |
commit | 66d7f743af1d362cfffcf14a39e524030445289c (patch) | |
tree | 095ce95f1132b825d9dbe2726e32119fe2f9d5a7 | |
parent | 5aa2d50ab67d37f3e2118d6ce107d65f88c997da (diff) |
Fix setting of socket directory
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 80a68aa..ce870ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ add_definitions(-DCYNARA_VERSION="${CYNARA_VERSION}") set(SYSTEMD ON CACHE BOOL "should use systemd") set(DEFAULT_DB_DIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/cynara" CACHE PATH "directory path of the database") -set(DEFAULT_SOCKET_DIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}" +set(DEFAULT_SOCKET_DIR "${CMAKE_INSTALL_FULL_RUNSTATEDIR}/cynara" CACHE PATH "directory path of the sockets") set(DEFAULT_CONFIG_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/security" CACHE PATH "directory of configuration") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9b09a89..4aa6853 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,8 +51,7 @@ add_compile_definitions(_GNU_SOURCE) ########################################### ADD_LIBRARY(cynara SHARED ${LIB_SOURCES}) target_compile_definitions(cynara PRIVATE - RCYN_DEFAULT_CHECK_SOCKET_SPEC="unix:${DEFAULT_SOCKET_DIR}/cynara.check" - RCYN_DEFAULT_ADMIN_SOCKET_SPEC="unix:${DEFAULT_SOCKET_DIR}/cynara.admin" + RCYN_DEFAULT_SOCKET_DIR="${DEFAULT_SOCKET_DIR}" ) SET_TARGET_PROPERTIES(cynara PROPERTIES VERSION ${CYNARA_VERSION} @@ -73,8 +72,7 @@ target_compile_definitions(cynarad PRIVATE DEFAULT_DB_DIR="${DEFAULT_DB_DIR}" DEFAULT_SOCKET_DIR="${DEFAULT_SOCKET_DIR}" DEFAULT_INIT_FILE="${DEFAULT_INIT_FILE}" - RCYN_DEFAULT_CHECK_SOCKET_SPEC="unix:${DEFAULT_SOCKET_DIR}/cynara.check" - RCYN_DEFAULT_ADMIN_SOCKET_SPEC="unix:${DEFAULT_SOCKET_DIR}/cynara.admin" + RCYN_DEFAULT_SOCKET_DIR="${DEFAULT_SOCKET_DIR}" ) target_link_libraries(cynarad cap) install(TARGETS cynarad |