Unverified Commit 64e3b623 authored by TQ Hirsch's avatar TQ Hirsch Committed by Nick Cao
Browse files

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.
parent 4b69420a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 = {
+6 −0
Original line number Diff line number Diff line
@@ -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;