From 4f3ed41357bb6fcb7afddd5343b59cfef54d65a4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 24 Feb 2021 12:59:47 +0100 Subject: [PATCH] Namespace default configuration file location src/config.h.in: Namespace the default configuration file location with the project's name "umurmur", as in that location also the required certificates are expected by default and using a namespaced location makes sense as to not clutter the SYSCONFDIR (e.g. /etc/) with more files, as a namespace is necessary anyways. CMakeLists.txt: Install the default configuration file to a "umurmur" namespaced location. Fixes #169 --- CMakeLists.txt | 2 +- src/config.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70fe661..adec1a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ add_subdirectory(src) install( FILES "umurmur.conf.example" - DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/" + DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/umurmur" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ RENAME "umurmur.conf" ) diff --git a/src/config.h.in b/src/config.h.in index 0547a10..980e705 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -8,6 +8,6 @@ #cmakedefine USE_SHAREDMEMORY_API -#define DEFAULT_CONFIG "${CMAKE_INSTALL_FULL_SYSCONFDIR}/umurmur.conf" +#define DEFAULT_CONFIG "${CMAKE_INSTALL_FULL_SYSCONFDIR}/umurmur/umurmur.conf" #endif // CONFIG_H