Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install config to CMAKE_INSTALL_SYSCONFDIR #164

Merged
merged 1 commit into from Jan 12, 2021

Conversation

dvzrv
Copy link
Contributor

@dvzrv dvzrv commented Jan 8, 2021

CMakeLists.txt:
Include GNUInstallDirs and use CMAKE_INSTALL_SYSCONFDIR to install the
example configuration (defaults to /etc/umurmur/umurmur.conf). The
configuration is installed with 0640 permissions as it may contain
passwords and therefore should not be world readable.
Remove prior checks to the system for umurmur.conf as the merging or
backup of configuration files is historically taken care of by a package
management system on a target system.

CMakeLists.txt:
Include GNUInstallDirs and use CMAKE_INSTALL_SYSCONFDIR to install the
example configuration (defaults to /etc/umurmur/umurmur.conf). The
configuration is installed with 0640 permissions as it may contain
passwords and therefore should not be world readable.
Remove prior checks to the system for umurmur.conf as the merging or
backup of configuration files is historically taken care of by a package
management system on a target system.
@fatbob313 fatbob313 merged commit 0b424a9 into umurmur:master Jan 12, 2021
@fatbob313
Copy link
Member

Merged. Thanks!

@fatbob313
Copy link
Member

So, I was a bit too quick there... Any particular reason that the config is installed in the 'umurmur' subdir? As it is, umurmurd looks for it in /etc/ by default.

@dvzrv
Copy link
Contributor Author

dvzrv commented Jan 14, 2021

@fatbob313 Not really besides "we use it like this on Arch Linux". Sorry, I was not aware of the fact, that umurmur picks up a config by default from /etc/umurmur.conf!

If you want I can change this in a new pull request (and then in our package on Arch as well).
As a sidenote: I was actually about to offer the hardened systemd service that we use in the package as a pull request, too. If this can drop the -c flag for the config, all the better!

@dvzrv
Copy link
Contributor Author

dvzrv commented Jan 14, 2021

As an add-on: I did this pull request because the cmake setup tried to do guess work about existing configuration files and by default the config ended up in /usr/etc/umurmur.conf (which does not adhere to FHS).

dvzrv added a commit to dvzrv/umurmur that referenced this pull request Jan 14, 2021
CMakeLists.txt:
The changes introduced in umurmur#164 install the configuration to
/etc/umurmur/umurmur.conf by default. However, umurmurd is picking up
the configuration from /etc/umurmur.conf automatically, which makes that
location a more logical default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants