pdns, pdns-recurser: Look for configuration in /etc

This allows the respective management tools to find the config file
without manually specifying it on each invocation.
This commit is contained in:
TQ Hirsch 2023-02-25 16:11:53 +01:00 committed by Nick Cao
parent 4b69420a32
commit 64e3b6239b
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View file

@ -21,8 +21,11 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-reproducible"
"--enable-systemd"
"sysconfdir=/etc/powerdns-recursor"
];
installFlags = [ "sysconfdir=$(out)/etc/powerdns-recursor" ];
enableParallelBuilding = true;
passthru.tests = {

View file

@ -69,6 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
"--with-libsodium"
"--with-sqlite3"
"--with-libcrypto=${openssl.dev}"
"sysconfdir=/etc/powerdns"
];
# nix destroy with-modules arguments, when using configureFlags
@ -79,6 +80,11 @@ stdenv.mkDerivation (finalAttrs: {
)
'';
# We want the various utilities to look for the powerdns config in
# /etc/powerdns, but to actually install the sample config file in
# $out
installFlags = [ "sysconfdir=$(out)/etc/powerdns" ];
enableParallelBuilding = true;
doCheck = true;