From 174ac452a3fcff50d89ea8fbc5beefc9174ae252 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 27 Apr 2021 21:19:12 +0200 Subject: [PATCH] dnsdist: make dnstap support (and with it the libfstrm dep) optional Signed-off-by: Peter van Dijk --- net/dnsdist/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/net/dnsdist/Makefile b/net/dnsdist/Makefile index 10dd021de..9c60ada6e 100644 --- a/net/dnsdist/Makefile +++ b/net/dnsdist/Makefile @@ -74,6 +74,12 @@ menu "Configuration" help "Enable RE2 support for dnsdist" default y + + config DNSDIST_DNSTAP + bool "DNSTAP support" + help + "Enable DNSTAP support for dnsdist" + default y endmenu endef @@ -88,10 +94,10 @@ define Package/dnsdist +DNSDIST_OPENSSL:libopenssl \ +DNSDIST_NET_SNMP:libnetsnmp \ +DNSDIST_RE2:re2 \ + +DNSDIST_DNSTAP:libfstrm \ +libatomic \ +libcap \ +libedit \ - +libfstrm \ +libsodium \ +libstdcpp \ +lmdb \ @@ -125,10 +131,10 @@ TARGET_CXX+=-std=c++17 CONFIGURE_ARGS+= \ --enable-option-checking=fatal \ --enable-dnscrypt \ - --enable-dnstap \ --with-libsodium \ --with-pic \ --with-lua=lua \ + $(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 \ $(if $(CONFIG_DNSDIST_GNUTLS),--with,--without)-gnutls \