dnsdist: make sodium optional
Signed-off-by: Peter van Dijk <peter.van.dijk@powerdns.com>
This commit is contained in:
parent
174ac452a3
commit
013ae32427
1 changed files with 8 additions and 3 deletions
|
@ -80,6 +80,12 @@ menu "Configuration"
|
||||||
help
|
help
|
||||||
"Enable DNSTAP support for dnsdist"
|
"Enable DNSTAP support for dnsdist"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config DNSDIST_SODIUM
|
||||||
|
bool "Build with libsodium
|
||||||
|
help
|
||||||
|
"Build with libsodium - for encrypted console connections, and DNSCrypt"
|
||||||
|
default y
|
||||||
endmenu
|
endmenu
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -95,10 +101,10 @@ define Package/dnsdist
|
||||||
+DNSDIST_NET_SNMP:libnetsnmp \
|
+DNSDIST_NET_SNMP:libnetsnmp \
|
||||||
+DNSDIST_RE2:re2 \
|
+DNSDIST_RE2:re2 \
|
||||||
+DNSDIST_DNSTAP:libfstrm \
|
+DNSDIST_DNSTAP:libfstrm \
|
||||||
|
+DNSDIST_SODIUM:libsodium \
|
||||||
+libatomic \
|
+libatomic \
|
||||||
+libcap \
|
+libcap \
|
||||||
+libedit \
|
+libedit \
|
||||||
+libsodium \
|
|
||||||
+libstdcpp \
|
+libstdcpp \
|
||||||
+lmdb \
|
+lmdb \
|
||||||
+liblua \
|
+liblua \
|
||||||
|
@ -130,10 +136,9 @@ TARGET_CXX+=-std=c++17
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--enable-option-checking=fatal \
|
--enable-option-checking=fatal \
|
||||||
--enable-dnscrypt \
|
|
||||||
--with-libsodium \
|
|
||||||
--with-pic \
|
--with-pic \
|
||||||
--with-lua=lua \
|
--with-lua=lua \
|
||||||
|
$(if $(CONFIG_DNSDIST_SODIUM),--enable-dnscrypt --with-libsodium,--disable-dnscrypt --without-libsodium) \
|
||||||
$(if $(CONFIG_DNSDIST_DNSTAP),--enable-dnstap=yes,--enable-dnstap=no) \
|
$(if $(CONFIG_DNSDIST_DNSTAP),--enable-dnstap=yes,--enable-dnstap=no) \
|
||||||
$(if $(CONFIG_DNSDIST_RE2),--with,--without)-re2 \
|
$(if $(CONFIG_DNSDIST_RE2),--with,--without)-re2 \
|
||||||
$(if $(CONFIG_DNSDIST_NET_SNMP),--with,--without)-net-snmp \
|
$(if $(CONFIG_DNSDIST_NET_SNMP),--with,--without)-net-snmp \
|
||||||
|
|
Loading…
Reference in a new issue