nsd: add configFile parameter

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
This commit is contained in:
Christoph Hrdinka 2017-12-28 14:05:53 +01:00
parent f3949a2e8e
commit 02694384c0
No known key found for this signature in database
GPG Key ID: 39391E2F20458287

View File

@ -10,6 +10,8 @@
, rootServer ? false
, rrtypes ? false
, zoneStats ? false
, configFile ? "etc/nsd/nsd.conf"
}:
stdenv.mkDerivation rec {
@ -39,7 +41,15 @@ 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;