Skip to content

Commit

Permalink
change menuconfig (WiP)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Hák <[email protected]>
  • Loading branch information
Payne-X6 committed Sep 20, 2024
1 parent 59253a4 commit 5e7adc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
26 changes: 14 additions & 12 deletions net/knot-resolver/Config.in
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion net/knot-resolver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ PKG_MAINTAINER:=Jan Pavlinec <[email protected]>
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

Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 5e7adc7

Please sign in to comment.