nsd: add configFile parameter

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>

Changed files
+11 -1
pkgs
servers
dns
+11 -1
pkgs/servers/dns/nsd/default.nix
···
, rootServer ? false
, rrtypes ? false
, zoneStats ? false
+
+
, configFile ? "etc/nsd/nsd.conf"
}:
stdenv.mkDerivation rec {
···
++ edf rootServer "root-server"
++ edf rrtypes "draft-rrtypes"
++ edf zoneStats "zone-stats"
-
++ [ "--with-ssl=${openssl.dev}" "--with-libevent=${libevent.dev}" ];
+
++ [ "--with-ssl=${openssl.dev}"
+
"--with-libevent=${libevent.dev}"
+
"--with-nsd_conf_file=${configFile}"
+
"--with-configdir=etc/nsd"
+
];
+
+
patchPhase = ''
+
sed 's@$(INSTALL_DATA) nsd.conf.sample $(DESTDIR)$(nsdconfigfile).sample@@g' -i Makefile.in
+
'';
meta = with stdenv.lib; {
homepage = http://www.nlnetlabs.nl;