diff --git a/net/knot-resolver/Config.in b/net/knot-resolver/Config.in index 082c887616f4a4..8cea73809ce393 100644 --- a/net/knot-resolver/Config.in +++ b/net/knot-resolver/Config.in @@ -1,12 +1,14 @@ -menu "Configuration" - config PACKAGE_knot-resolver_dnstap - bool "Build with dnstap support" - default n - help - knot-resolver dnstap module supports logging DNS responses - to a unix socket in dnstap format using fstrm framing library. - This logging is useful if you need effectivelly log all - DNS traffic. - The unix socket and the socket reader must be present before - starting resolver instances. -endmenu +if PACKAGE_knot-resolver + +config KNOT_RESOLVER_DNSTAP + bool "Build with dnstap support" + default y + help + knot-resolver dnstap module supports logging DNS responses + to a unix socket in dnstap format using fstrm framing library. + This logging is useful if you need effectivelly log all + DNS traffic. + The unix socket and the socket reader must be present before + starting resolver instances. + +endif diff --git a/net/knot-resolver/Makefile b/net/knot-resolver/Makefile index 612b328194f823..6a072903770576 100644 --- a/net/knot-resolver/Makefile +++ b/net/knot-resolver/Makefile @@ -21,6 +21,9 @@ PKG_MAINTAINER:=Jan Pavlinec PKG_LICENSE:=GPL-3.0-later PKG_LICENSE_FILES:=COPYING +PKG_CONFIG_DEPENDS := \ + CONFIG_KNOT_RESOLVER_DNSTAP + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/meson.mk @@ -55,7 +58,7 @@ define Package/knot-resolver/config endef MESON_ARGS+= \ - $(if $(CONFIG_PACKAGE_knot-resolver_dnstap), -Ddnstap=enabled,-Ddnstap=disabled) \ + $(if $(CONFIG_KNOT_RESOLVER_DNSTAP), -Ddnstap=enabled,-Ddnstap=disabled) \ -Dcapng=disabled \ -Dclient=disabled \ -Dconfig_tests=disabled \