commit:     450408c76677dce7785c35719fbea73d0f1c6367
Author:     Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
AuthorDate: Wed Aug 16 11:44:10 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 09:07:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=450408c7

net-dns/knot: Add all app modules in USE flags

 net-dns/knot/knot-2.5.3-r1.ebuild | 23 +++++++++++++++++++++--
 net-dns/knot/metadata.xml         | 36 +++++++++++++++++++++++++++++++++---
 2 files changed, 54 insertions(+), 5 deletions(-)

diff --git a/net-dns/knot/knot-2.5.3-r1.ebuild 
b/net-dns/knot/knot-2.5.3-r1.ebuild
index 5d116b1a44c..1913ab2364d 100644
--- a/net-dns/knot/knot-2.5.3-r1.ebuild
+++ b/net-dns/knot/knot-2.5.3-r1.ebuild
@@ -12,7 +12,19 @@ 
SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz";
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="dnstap doc caps +fastparser idn systemd"
+
+KNOT_MODULES=(
+       "+dnsproxy"
+       "dnstap"
+       "+noudp"
+       "+onlinesign"
+       "rosedb"
+       "+rrl"
+       "+stats"
+       "+synthrecord"
+       "+whoami"
+)
+IUSE="doc caps +fastparser idn systemd +utils ${KNOT_MODULES[@]}"
 
 RDEPEND="
        >=net-libs/gnutls-3.3:=
@@ -36,14 +48,21 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${P/_/-}"
 
 src_configure() {
+       local my_conf=()
+       for u in "${KNOT_MODULES[@]#+}"; do
+               my_conf+=("$(use_with $u module-$u)")
+       done
+
        econf \
                --with-storage="${EPREFIX}/var/lib/${PN}" \
                --with-rundir="${EPREFIX}/var/run/${PN}" \
                $(use_enable fastparser) \
                $(use_enable dnstap) \
                $(use_enable doc documentation) \
+               $(use_enable utils utilities) \
+               --enable-systemd=$(usex systemd) \
                $(use_with idn libidn) \
-               --enable-systemd=$(usex systemd)
+               "${my_conf[@]}"
 }
 
 src_compile() {

diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
index b0de8ecf77e..35d8e806530 100644
--- a/net-dns/knot/metadata.xml
+++ b/net-dns/knot/metadata.xml
@@ -10,13 +10,43 @@
                <name>Proxy Maintainers</name>
        </maintainer>
        <use>
+               <flag name="dnsproxy">
+                       Enable the tiny DNS proxy module
+               </flag>
                <flag name="dnstap">
                        Include support for the dnstap binary log format
-                       (http://dnstap.info/).
+                       (http://dnstap.info/)
                </flag>
                <flag name="fastparser">
-                       Use a zone file parser that is faster, but requires 
more memory and
-                       CPU time to compile.
+                       Use a zone file parser that is faster, but requires
+                       more memory and CPU time to compile
+               </flag>
+               <flag name="noudp">
+                       Enable the module which can send empty truncated
+                       responses to UDP queries
+               </flag>
+               <flag name="onlinesign">
+                       Enable the module that sign zones on the fly instead of
+                       pre-signing zone
+               </flag>
+               <flag name="rosedb">
+                       Enable the module that staticaly override certain
+                       responses
+               </flag>
+               <flag name="rrl">
+                       Enable the response rate limiting module
+               </flag>
+               <flag name="stats">
+                       Enable the server statistics module
+               </flag>
+               <flag name="synthrecord">
+                       Enable the automatic forward/reverse records module
+               </flag>
+               <flag name="utils">
+                       Install Knot utilities, such as kdig, kzonecheck, ...
+               </flag>
+               <flag name="whoami">
+                       Enable the whoami response module
                </flag>
        </use>
 </pkgmetadata>

Reply via email to