net-dns/knot: Add all app modules in USE flags
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Wed, 16 Aug 2017 11:44:10 +0000 (13:44 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 22 Aug 2017 09:07:02 +0000 (11:07 +0200)
net-dns/knot/knot-2.5.3-r1.ebuild
net-dns/knot/metadata.xml

index 5d116b1a44c43725c5e0c1c66252d27584eaaebd..1913ab2364d96bf19fdc53f42b880eccef2b1c9d 100644 (file)
@@ -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() {
index b0de8ecf77e7aac03b4a3078e639f695505f2100..35d8e8065306780c7cdb29a8493c24f11ce7c7fa 100644 (file)
                <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>