Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Tue, 29 Dec 2020 21:15:50
Message-Id: 1609274984.2d7d43dc3221dbca1f58cb84570043522a4b5702.sam@gentoo
1 commit: 2d7d43dc3221dbca1f58cb84570043522a4b5702
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Fri Dec 18 10:11:22 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 20:49:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d7d43dc
7
8 net-dns/knot: bump to 2.9.8 and 3.0.3
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/18703
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 2 +
16 net-dns/knot/knot-2.9.8.ebuild | 102 +++++++++++++++++++++++++++++++++++++++++
17 net-dns/knot/knot-3.0.3.ebuild | 102 +++++++++++++++++++++++++++++++++++++++++
18 3 files changed, 206 insertions(+)
19
20 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
21 index b0d293950bd..aed7ed61e7b 100644
22 --- a/net-dns/knot/Manifest
23 +++ b/net-dns/knot/Manifest
24 @@ -1,2 +1,4 @@
25 DIST knot-2.9.7.tar.xz 1188904 BLAKE2B f20355f211db316a1e39321a1200130e2af4e895eff92eca36c93d5b8f78fcd9dd8fa1ec25edf7a0fa9bae4aa2a92b2fca890be1da4134b894792235de0b546e SHA512 399b48491c000aa3f16b87b1e313f2ea5fe369d19da0c81222ed43ca155bf4d4d1a561ef84bc08844eaf24d3dd07ded9a6ec3d831dd5f6ffb174ae773ae12931
26 +DIST knot-2.9.8.tar.xz 1194284 BLAKE2B c4329e5b2fc499851112d008af10c1a73bbe50cd07a4b5af984e99f389606b6f11c0b321dc26c14f872eb7cc70a99290a033f9aa9ff23a2b3694427605ffc704 SHA512 8104c3bdef2db4a79d6cd0fa4a30be1aa6edfa01363b97738d873445198cd031b4f5ab581d1a5277de49a8a042bb5340334be0579ceefa4b614e34c2cd454904
27 DIST knot-3.0.2.tar.xz 1313864 BLAKE2B f2ff8c75a9b239b924af2eecc5e5afed27030fc9be6e112a4f61479f40247396c1d2905f58329fa84907c6ce796bc9a56d6f8e1cc83b737e15713844e0add32f SHA512 677de7a80688d4820d56c020af1bb1da97546f44a616e2d72d7e0301fca4a7ab682994cf66e8c37403e65ddb45ea3e0eb37b3304739c1239364115588c589699
28 +DIST knot-3.0.3.tar.xz 1322748 BLAKE2B a0b9a99b66d1f02d0e631226c328376d2ca780b19522040525a7a4e9ec24bd22e0f0094ee98a01a75695727619b60b28d72484b3da4f5c92b63c368665aa637a SHA512 4a4de22f8324d8459a7012faa49fb1503ad3b2f23af434a82381a73bf3f43a66f096bba7b0dfc8a61f416d9e02ce97c449ed1590a8a899279ac793798423c339
29
30 diff --git a/net-dns/knot/knot-2.9.8.ebuild b/net-dns/knot/knot-2.9.8.ebuild
31 new file mode 100644
32 index 00000000000..2cc9e9753df
33 --- /dev/null
34 +++ b/net-dns/knot/knot-2.9.8.ebuild
35 @@ -0,0 +1,102 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit systemd
42 +
43 +DESCRIPTION="High-performance authoritative-only DNS server"
44 +HOMEPAGE="https://www.knot-dns.cz/"
45 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +KNOT_MODULES=(
52 + "+cookies"
53 + "+dnsproxy"
54 + "dnstap"
55 + "geoip"
56 + "+noudp"
57 + "+onlinesign"
58 + "+queryacl"
59 + "+rrl"
60 + "+stats"
61 + "+synthrecord"
62 + "+whoami"
63 +)
64 +IUSE="doc caps +fastparser idn +libidn2 systemd +utils ${KNOT_MODULES[@]}"
65 +
66 +RDEPEND="
67 + acct-group/knot
68 + acct-user/knot
69 + dev-db/lmdb
70 + dev-libs/libedit
71 + dev-libs/userspace-rcu:=
72 + dev-python/lmdb
73 + net-libs/gnutls:=
74 + caps? ( sys-libs/libcap-ng )
75 + dnstap? (
76 + dev-libs/fstrm
77 + dev-libs/protobuf-c:=
78 + )
79 + geoip? ( dev-libs/libmaxminddb:= )
80 + idn? (
81 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
82 + libidn2? ( net-dns/libidn2:= )
83 + )
84 + systemd? ( sys-apps/systemd:= )
85 +"
86 +DEPEND="${RDEPEND}"
87 +BDEPEND="
88 + virtual/pkgconfig
89 + doc? ( dev-python/sphinx )
90 +"
91 +
92 +S="${WORKDIR}/${P/_/-}"
93 +
94 +src_configure() {
95 + local u
96 + local my_conf=(
97 + --with-storage="${EPREFIX}/var/lib/${PN}"
98 + --with-rundir="${EPREFIX}/var/run/${PN}"
99 + $(use_enable fastparser)
100 + $(use_enable dnstap)
101 + $(use_enable doc documentation)
102 + $(use_enable utils utilities)
103 + --enable-systemd=$(usex systemd)
104 + $(use_with idn libidn)
105 + )
106 +
107 + for u in "${KNOT_MODULES[@]#+}"; do
108 + my_conf+=("$(use_with ${u} module-${u})")
109 + done
110 +
111 + econf "${my_conf[@]}"
112 +}
113 +
114 +src_compile() {
115 + default
116 +
117 + use doc && emake -C doc html
118 +}
119 +
120 +src_test() {
121 + emake check
122 +}
123 +
124 +src_install() {
125 + use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
126 +
127 + default
128 +
129 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
130 +
131 + newinitd "${FILESDIR}/knot.init" knot
132 + if use systemd; then
133 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
134 + fi
135 +
136 + find "${D}" -name '*.la' -delete || die
137 +}
138
139 diff --git a/net-dns/knot/knot-3.0.3.ebuild b/net-dns/knot/knot-3.0.3.ebuild
140 new file mode 100644
141 index 00000000000..2cc9e9753df
142 --- /dev/null
143 +++ b/net-dns/knot/knot-3.0.3.ebuild
144 @@ -0,0 +1,102 @@
145 +# Copyright 1999-2020 Gentoo Authors
146 +# Distributed under the terms of the GNU General Public License v2
147 +
148 +EAPI=7
149 +
150 +inherit systemd
151 +
152 +DESCRIPTION="High-performance authoritative-only DNS server"
153 +HOMEPAGE="https://www.knot-dns.cz/"
154 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
155 +
156 +LICENSE="GPL-3"
157 +SLOT="0"
158 +KEYWORDS="~amd64 ~x86"
159 +
160 +KNOT_MODULES=(
161 + "+cookies"
162 + "+dnsproxy"
163 + "dnstap"
164 + "geoip"
165 + "+noudp"
166 + "+onlinesign"
167 + "+queryacl"
168 + "+rrl"
169 + "+stats"
170 + "+synthrecord"
171 + "+whoami"
172 +)
173 +IUSE="doc caps +fastparser idn +libidn2 systemd +utils ${KNOT_MODULES[@]}"
174 +
175 +RDEPEND="
176 + acct-group/knot
177 + acct-user/knot
178 + dev-db/lmdb
179 + dev-libs/libedit
180 + dev-libs/userspace-rcu:=
181 + dev-python/lmdb
182 + net-libs/gnutls:=
183 + caps? ( sys-libs/libcap-ng )
184 + dnstap? (
185 + dev-libs/fstrm
186 + dev-libs/protobuf-c:=
187 + )
188 + geoip? ( dev-libs/libmaxminddb:= )
189 + idn? (
190 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
191 + libidn2? ( net-dns/libidn2:= )
192 + )
193 + systemd? ( sys-apps/systemd:= )
194 +"
195 +DEPEND="${RDEPEND}"
196 +BDEPEND="
197 + virtual/pkgconfig
198 + doc? ( dev-python/sphinx )
199 +"
200 +
201 +S="${WORKDIR}/${P/_/-}"
202 +
203 +src_configure() {
204 + local u
205 + local my_conf=(
206 + --with-storage="${EPREFIX}/var/lib/${PN}"
207 + --with-rundir="${EPREFIX}/var/run/${PN}"
208 + $(use_enable fastparser)
209 + $(use_enable dnstap)
210 + $(use_enable doc documentation)
211 + $(use_enable utils utilities)
212 + --enable-systemd=$(usex systemd)
213 + $(use_with idn libidn)
214 + )
215 +
216 + for u in "${KNOT_MODULES[@]#+}"; do
217 + my_conf+=("$(use_with ${u} module-${u})")
218 + done
219 +
220 + econf "${my_conf[@]}"
221 +}
222 +
223 +src_compile() {
224 + default
225 +
226 + use doc && emake -C doc html
227 +}
228 +
229 +src_test() {
230 + emake check
231 +}
232 +
233 +src_install() {
234 + use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
235 +
236 + default
237 +
238 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
239 +
240 + newinitd "${FILESDIR}/knot.init" knot
241 + if use systemd; then
242 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
243 + fi
244 +
245 + find "${D}" -name '*.la' -delete || die
246 +}