summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-04-19 21:27:24 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-04-19 21:27:57 +0200
commit4f909a141527d151f75554eaa481cf96612aff29 (patch)
tree7f43bfcaad84a808e7de5eeae657d5d7cc81fd55 /net-dns
parentnet-dns/knot: add missing keepdir (diff)
downloadgentoo-4f909a141527d151f75554eaa481cf96612aff29.tar.gz
gentoo-4f909a141527d151f75554eaa481cf96612aff29.tar.bz2
gentoo-4f909a141527d151f75554eaa481cf96612aff29.zip
net-dns/knot: add doh and xdp use flag
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/knot/knot-3.1.7.ebuild11
-rw-r--r--net-dns/knot/metadata.xml6
2 files changed, 15 insertions, 2 deletions
diff --git a/net-dns/knot/knot-3.1.7.ebuild b/net-dns/knot/knot-3.1.7.ebuild
index f94f823b4198..307ad4216af5 100644
--- a/net-dns/knot/knot-3.1.7.ebuild
+++ b/net-dns/knot/knot-3.1.7.ebuild
@@ -26,7 +26,7 @@ KNOT_MODULES=(
"+synthrecord"
"+whoami"
)
-IUSE="doc caps +fastparser idn +libidn2 systemd +utils ${KNOT_MODULES[@]}"
+IUSE="doc caps doh +fastparser idn +libidn2 systemd +utils xdp ${KNOT_MODULES[@]}"
RDEPEND="
acct-group/knot
@@ -34,19 +34,24 @@ RDEPEND="
dev-db/lmdb
dev-libs/libedit
dev-libs/userspace-rcu:=
- dev-python/lmdb
+ dev-python/lmdb:=
net-libs/gnutls:=
caps? ( sys-libs/libcap-ng )
dnstap? (
dev-libs/fstrm
dev-libs/protobuf-c:=
)
+ doh? ( net-libs/nghttp2:= )
geoip? ( dev-libs/libmaxminddb:= )
idn? (
!libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
libidn2? ( net-dns/libidn2:= )
)
systemd? ( sys-apps/systemd:= )
+ xdp? (
+ dev-libs/libbpf:=
+ net-libs/libmnl:=
+ )
"
DEPEND="${RDEPEND}"
BDEPEND="
@@ -65,8 +70,10 @@ src_configure() {
$(use_enable dnstap)
$(use_enable doc documentation)
$(use_enable utils utilities)
+ $(use_enable xdp)
--enable-systemd=$(usex systemd)
$(use_with idn libidn)
+ $(use_with doh libnghttp2)
)
for u in "${KNOT_MODULES[@]#+}"; do
diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
index 17a31725bf20..8c39b17e75fa 100644
--- a/net-dns/knot/metadata.xml
+++ b/net-dns/knot/metadata.xml
@@ -13,6 +13,9 @@
<flag name="cookies">
Enable the DNS cookie module (RFC 7873)
</flag>
+ <flag name="doh">
+ Enable DNS over HTTP (DoH) using libnghttp2
+ </flag>
<flag name="dnsproxy">
Enable the tiny DNS proxy module
</flag>
@@ -57,5 +60,8 @@
<flag name="whoami">
Enable the whoami response module
</flag>
+ <flag name="xdp">
+ Enable eXpress Data Path
+ </flag>
</use>
</pkgmetadata>