forked from mirrors/nixpkgs
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
|
||||
, 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;
|
||||
|
|
Loading…
Reference in a new issue