From 013ae32427f75fb7dc6ed68015cc865fce7adc23 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 27 Apr 2021 21:50:53 +0200 Subject: [PATCH] dnsdist: make sodium optional Signed-off-by: Peter van Dijk --- net/dnsdist/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/net/dnsdist/Makefile b/net/dnsdist/Makefile index 9c60ada6e..5dfe18334 100644 --- a/net/dnsdist/Makefile +++ b/net/dnsdist/Makefile @@ -80,6 +80,12 @@ menu "Configuration" help "Enable DNSTAP support for dnsdist" default y + + config DNSDIST_SODIUM + bool "Build with libsodium + help + "Build with libsodium - for encrypted console connections, and DNSCrypt" + default y endmenu endef @@ -95,10 +101,10 @@ define Package/dnsdist +DNSDIST_NET_SNMP:libnetsnmp \ +DNSDIST_RE2:re2 \ +DNSDIST_DNSTAP:libfstrm \ + +DNSDIST_SODIUM:libsodium \ +libatomic \ +libcap \ +libedit \ - +libsodium \ +libstdcpp \ +lmdb \ +liblua \ @@ -130,10 +136,9 @@ TARGET_CXX+=-std=c++17 CONFIGURE_ARGS+= \ --enable-option-checking=fatal \ - --enable-dnscrypt \ - --with-libsodium \ --with-pic \ --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_RE2),--with,--without)-re2 \ $(if $(CONFIG_DNSDIST_NET_SNMP),--with,--without)-net-snmp \