nsd: add configFile parameter
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
This commit is contained in:
parent
f3949a2e8e
commit
02694384c0
@ -10,6 +10,8 @@
|
|||||||
, rootServer ? false
|
, rootServer ? false
|
||||||
, rrtypes ? false
|
, rrtypes ? false
|
||||||
, zoneStats ? false
|
, zoneStats ? false
|
||||||
|
|
||||||
|
, configFile ? "etc/nsd/nsd.conf"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -39,7 +41,15 @@ stdenv.mkDerivation rec {
|
|||||||
++ edf rootServer "root-server"
|
++ edf rootServer "root-server"
|
||||||
++ edf rrtypes "draft-rrtypes"
|
++ edf rrtypes "draft-rrtypes"
|
||||||
++ edf zoneStats "zone-stats"
|
++ 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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.nlnetlabs.nl;
|
homepage = http://www.nlnetlabs.nl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user