mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
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:
parent
4b69420a32
commit
64e3b6239b
2 changed files with 9 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue