Skip to content

Commit

Permalink
Namespace default configuration file location
Browse files Browse the repository at this point in the history
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 umurmur#169
  • Loading branch information
dvzrv committed Feb 24, 2021
1 parent f2f4d05 commit 4f3ed41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
2 changes: 1 addition & 1 deletion src/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f3ed41

Please sign in to comment.