summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/knot')
-rw-r--r--net-dns/knot/knot-2.5.3-r1.ebuild7
-rw-r--r--net-dns/knot/metadata.xml4
2 files changed, 9 insertions, 2 deletions
diff --git a/net-dns/knot/knot-2.5.3-r1.ebuild b/net-dns/knot/knot-2.5.3-r1.ebuild
index 82772faaabbc..1c8e08233e89 100644
--- a/net-dns/knot/knot-2.5.3-r1.ebuild
+++ b/net-dns/knot/knot-2.5.3-r1.ebuild
@@ -24,7 +24,7 @@ KNOT_MODULES=(
"+synthrecord"
"+whoami"
)
-IUSE="doc caps +fastparser idn systemd +utils ${KNOT_MODULES[@]}"
+IUSE="doc caps +fastparser idn libidn2 systemd +utils ${KNOT_MODULES[@]}"
RDEPEND="
>=net-libs/gnutls-3.3:=
@@ -36,7 +36,10 @@ RDEPEND="
dev-libs/fstrm
dev-libs/protobuf-c
)
- idn? ( || ( net-dns/libidn >=net-dns/libidn2-2.0.0 ) )
+ idn? (
+ !libidn2? ( net-dns/libidn )
+ libidn2? ( >=net-dns/libidn2-2.0.0 )
+ )
dev-libs/libedit
systemd? ( >=sys-apps/systemd-229 )
"
diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
index 35d8e8065306..9245494df34e 100644
--- a/net-dns/knot/metadata.xml
+++ b/net-dns/knot/metadata.xml
@@ -21,6 +21,10 @@
Use a zone file parser that is faster, but requires
more memory and CPU time to compile
</flag>
+ <flag name="libidn2">
+ If IDN support is enabled, use net-dns/libidn2 instead
+ of net-dns/libidn
+ </flag>
<flag name="noudp">
Enable the module which can send empty truncated
responses to UDP queries