Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Tue, 01 Nov 2022 17:59:32
Message-Id: 1667325527.7ba913aca3ddf5e0f2338bd0ce3df260052fb082.matthew@gentoo
1 commit: 7ba913aca3ddf5e0f2338bd0ce3df260052fb082
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Tue Nov 1 10:51:03 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 17:58:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ba913ac
7
8 net-dns/knot: add 3.2.2
9
10 Closes: https://bugs.gentoo.org/878297
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
13
14 net-dns/knot/Manifest | 1 +
15 net-dns/knot/knot-3.2.2.ebuild | 121 +++++++++++++++++++++++++++++++++++++++++
16 net-dns/knot/metadata.xml | 3 +
17 3 files changed, 125 insertions(+)
18
19 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
20 index 2208988e0d1b..89fe24b1b728 100644
21 --- a/net-dns/knot/Manifest
22 +++ b/net-dns/knot/Manifest
23 @@ -4,3 +4,4 @@ DIST knot-3.1.8.tar.xz 1439912 BLAKE2B bcc089d547a7cad8150e93d70da036273a60b0e74
24 DIST knot-3.1.9.tar.xz 1441408 BLAKE2B 383829107bef6b35cbef3c531bc91050e7742ca930bf6645c25cab04203ee360837808c3b5342089ce9ba9ee704290ab95b2f76172577d251c6a9c18796245a0 SHA512 e4ba1c006edcde2dc820e74c39df7a8b8983dfb2d8b8845ac759c6c67dfaabc5aae38282995ed92879a683665c0c179502858631c89ad53c2738f79df951eef7
25 DIST knot-3.2.0.tar.xz 1665720 BLAKE2B 851f8278e2936459ca8bf4f06332d6a49e89152e634aaa94235d180c91a073c648797f8e42e371f563bbeb708289fdf3839f66508fbd41b7e045efbbe5d72374 SHA512 e007d633f1debb559d47a7646b055dc970502be11a1849063da3e3d28355f77e6cba41e34f06726bc5945e4e2ba3ecb84a4b39813a8079514d3bf584d7d565a2
26 DIST knot-3.2.1.tar.xz 1626796 BLAKE2B f530438bc0e970abe5a6ed148dfb88e1a384ff54c91694af98d261aa3efc73201e60dc9e5f29c1a96b6d406a34fb4ea6cbde0c28dfdc772aa53836fb47e3f2f7 SHA512 2f12750dc0db06fd915c1b322626780c1d66e10c0b8170dea57559e514f66ee105ed8dbbc0a5f8084fcf772e82c242a8b09ae449631960abf4d60af4a13a1ea0
27 +DIST knot-3.2.2.tar.xz 1632748 BLAKE2B 185567dc883f946570fe60cd7d01d96162c5f13ac84330e5551c293b5011c162401fd25ddbdb43bf9242e13c3cdc8225be107dc579619fe54c05335601cd27ae SHA512 29fadb96c1ea525c6183f9e7552f4ad370579b67d74aec1910a92d561cc2c5656fd7876015f29161d279a07c23643f6584308bf9fa0e74d351b17af54e5e9a7f
28
29 diff --git a/net-dns/knot/knot-3.2.2.ebuild b/net-dns/knot/knot-3.2.2.ebuild
30 new file mode 100644
31 index 000000000000..29120ab563c0
32 --- /dev/null
33 +++ b/net-dns/knot/knot-3.2.2.ebuild
34 @@ -0,0 +1,121 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +inherit flag-o-matic systemd
41 +
42 +# subslot: libknot major.libdnssec major.libzscanner major
43 +KNOT_SUBSLOT="13.9.4"
44 +
45 +DESCRIPTION="High-performance authoritative-only DNS server"
46 +HOMEPAGE="https://www.knot-dns.cz/"
47 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
48 +
49 +LICENSE="GPL-3+"
50 +SLOT="0/${KNOT_SUBSLOT}"
51 +KEYWORDS="~amd64"
52 +
53 +KNOT_MODULES=(
54 + "+cookies"
55 + "+dnsproxy"
56 + "dnstap"
57 + "geoip"
58 + "+noudp"
59 + "+onlinesign"
60 + "+queryacl"
61 + "+rrl"
62 + "+stats"
63 + "+synthrecord"
64 + "+whoami"
65 +)
66 +IUSE="doc caps doh +fastparser idn +libidn2 quic systemd +utils xdp ${KNOT_MODULES[@]}"
67 +
68 +RDEPEND="
69 + acct-group/knot
70 + acct-user/knot
71 + dev-db/lmdb:=
72 + dev-libs/libedit
73 + dev-libs/userspace-rcu:=
74 + dev-python/lmdb:=
75 + net-libs/gnutls:=
76 + caps? ( sys-libs/libcap-ng )
77 + dnstap? (
78 + dev-libs/fstrm
79 + dev-libs/protobuf-c:=
80 + )
81 + doh? ( net-libs/nghttp2:= )
82 + geoip? ( dev-libs/libmaxminddb:= )
83 + idn? (
84 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
85 + libidn2? ( net-dns/libidn2:= )
86 + )
87 + quic? ( net-libs/ngtcp2:=[gnutls] )
88 + systemd? ( sys-apps/systemd:= )
89 + xdp? (
90 + dev-libs/libbpf:=
91 + net-libs/libmnl:=
92 + )
93 +"
94 +DEPEND="${RDEPEND}"
95 +BDEPEND="
96 + virtual/pkgconfig
97 + doc? ( dev-python/sphinx )
98 +"
99 +
100 +S="${WORKDIR}/${P/_/-}"
101 +
102 +src_configure() {
103 + local u
104 + local my_conf=(
105 + --with-storage="${EPREFIX}/var/lib/${PN}"
106 + --with-rundir="${EPREFIX}/var/run/${PN}"
107 + $(use_enable caps cap_ng)
108 + $(use_enable fastparser)
109 + $(use_enable dnstap)
110 + $(use_enable doc documentation)
111 + $(use_enable quic)
112 + $(use_enable utils utilities)
113 + $(use_enable xdp)
114 + --enable-systemd=$(usex systemd)
115 + $(use_with idn libidn)
116 + $(use_with doh libnghttp2)
117 + )
118 +
119 + for u in "${KNOT_MODULES[@]#+}"; do
120 + my_conf+=("$(use_with ${u} module-${u})")
121 + done
122 +
123 + if use riscv; then
124 + append-libs -latomic
125 + fi
126 +
127 + econf "${my_conf[@]}"
128 +}
129 +
130 +src_compile() {
131 + default
132 +
133 + use doc && emake -C doc html
134 +}
135 +
136 +src_test() {
137 + emake check
138 +}
139 +
140 +src_install() {
141 + use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
142 +
143 + default
144 +
145 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
146 +
147 + newinitd "${FILESDIR}/knot.init" knot
148 + if use systemd; then
149 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
150 + fi
151 +
152 + find "${D}" -name '*.la' -delete || die
153 +
154 + keepdir /var/lib/knot
155 +}
156
157 diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
158 index 56b218b58761..6fc839da3260 100644
159 --- a/net-dns/knot/metadata.xml
160 +++ b/net-dns/knot/metadata.xml
161 @@ -45,6 +45,9 @@
162 <flag name="queryacl">
163 Enable the module for query access control
164 </flag>
165 + <flag name="quic">
166 + Enable the DNS over QUIC (DoQ) module using libngtcp2
167 + </flag>
168 <flag name="rrl">
169 Enable the response rate limiting module
170 </flag>