Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Sun, 01 Sep 2019 11:19:07
Message-Id: 1567336736.2dbcf61ad6d5facfd511051120a4cfaf61032b59.juippis@gentoo
1 commit: 2dbcf61ad6d5facfd511051120a4cfaf61032b59
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Fri Jul 19 15:36:54 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 11:18:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dbcf61a
7
8 net-dns/knot: bump to 2.8.3 & 2.7.8
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.11
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/12481
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 2 +
16 net-dns/knot/knot-2.7.8.ebuild | 103 +++++++++++++++++++++++++++++++++++++++++
17 net-dns/knot/knot-2.8.3.ebuild | 103 +++++++++++++++++++++++++++++++++++++++++
18 3 files changed, 208 insertions(+)
19
20 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
21 index 6efe31493db..d7553e14fe0 100644
22 --- a/net-dns/knot/Manifest
23 +++ b/net-dns/knot/Manifest
24 @@ -1,2 +1,4 @@
25 DIST knot-2.7.7.tar.xz 1156996 BLAKE2B aa31233cf9af9f8060a40788529593d35912992472d5b9d892e632ba4cbf08a0f0adec6ed00d1152bf6cd443e3a659fa88050355e65a71cc2a3aac3c453bdc44 SHA512 95c341ce7c8cc2e65429d6e3bf009844fbd82ca5a0e36019f0e019ce35fc3ba8b68c159d34637380f6a3ad3dc2291ed5adc37e91515b2b6ecf61f7078ddad841
26 +DIST knot-2.7.8.tar.xz 1158284 BLAKE2B 513670a05d9014e990f09e525dd638cfaac00027172a09734e23302bfdc1bd8d61d145e566485410ee1277dfdc48317afeffc9064dad6e88b1938965ba862924 SHA512 e220e9d885f488119bcb8324576b981e4c45e15d710595d6acaf121fbff9442e5c1d8c723c11dcd9cbc4d26e7a5200f002d52a94c67ba8af04f5c0c82615def7
27 DIST knot-2.8.2.tar.xz 1193760 BLAKE2B 0afd70740be103d596856dfcfea629b5216aa41e8e0044f050a993967c7bf53a129fd824d1d1ec6fef4d41072f25225f06a6113bf86266d755d6f944c8b5799f SHA512 d7a045cc7b1a1f43b9536283d4202d7f8f36ac2160e0b985b40f318cc0041f3c3e977ff2db6f518dd37ea62d93d0d3f617bca1ac0dff81185bf5dcb9c1eac97b
28 +DIST knot-2.8.3.tar.xz 1206172 BLAKE2B f306b5c788bb27c8062284167378046a4f77926b805f9c2fb84b5192f51d2079547cf740b9b156673e6bfc2a5f28d6ff6762dc7d854a56a0a98d1dcac9f39fca SHA512 a5743181807b944c9b6dfce845f009c576125c114fbac7b87592129b724628466740fb77e41cabd8aaf9f046374a9337a1c97ea74b33afae1af6e39e21f8e662
29
30 diff --git a/net-dns/knot/knot-2.7.8.ebuild b/net-dns/knot/knot-2.7.8.ebuild
31 new file mode 100644
32 index 00000000000..aa3b0735e37
33 --- /dev/null
34 +++ b/net-dns/knot/knot-2.7.8.ebuild
35 @@ -0,0 +1,103 @@
36 +# Copyright 1999-2019 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 + if use doc; then
118 + emake -C doc html
119 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
120 + fi
121 +}
122 +
123 +src_test() {
124 + emake check
125 +}
126 +
127 +src_install() {
128 + default
129 +
130 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
131 +
132 + newinitd "${FILESDIR}/knot.init" knot
133 + if use systemd; then
134 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
135 + fi
136 +
137 + find "${D}" -name '*.la' -delete || die
138 +}
139
140 diff --git a/net-dns/knot/knot-2.8.3.ebuild b/net-dns/knot/knot-2.8.3.ebuild
141 new file mode 100644
142 index 00000000000..aa3b0735e37
143 --- /dev/null
144 +++ b/net-dns/knot/knot-2.8.3.ebuild
145 @@ -0,0 +1,103 @@
146 +# Copyright 1999-2019 Gentoo Authors
147 +# Distributed under the terms of the GNU General Public License v2
148 +
149 +EAPI=7
150 +
151 +inherit systemd
152 +
153 +DESCRIPTION="High-performance authoritative-only DNS server"
154 +HOMEPAGE="https://www.knot-dns.cz/"
155 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
156 +
157 +LICENSE="GPL-3"
158 +SLOT="0"
159 +KEYWORDS="~amd64 ~x86"
160 +
161 +KNOT_MODULES=(
162 + "+cookies"
163 + "+dnsproxy"
164 + "dnstap"
165 + "geoip"
166 + "+noudp"
167 + "+onlinesign"
168 + "+queryacl"
169 + "+rrl"
170 + "+stats"
171 + "+synthrecord"
172 + "+whoami"
173 +)
174 +IUSE="doc caps +fastparser idn +libidn2 systemd +utils ${KNOT_MODULES[@]}"
175 +
176 +RDEPEND="
177 + acct-group/knot
178 + acct-user/knot
179 + dev-db/lmdb
180 + dev-libs/libedit
181 + dev-libs/userspace-rcu:=
182 + dev-python/lmdb
183 + net-libs/gnutls:=
184 + caps? ( sys-libs/libcap-ng )
185 + dnstap? (
186 + dev-libs/fstrm
187 + dev-libs/protobuf-c:=
188 + )
189 + geoip? ( dev-libs/libmaxminddb:= )
190 + idn? (
191 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
192 + libidn2? ( net-dns/libidn2:= )
193 + )
194 + systemd? ( sys-apps/systemd:= )
195 +"
196 +DEPEND="${RDEPEND}"
197 +BDEPEND="
198 + virtual/pkgconfig
199 + doc? ( dev-python/sphinx )
200 +"
201 +
202 +S="${WORKDIR}/${P/_/-}"
203 +
204 +src_configure() {
205 + local u
206 + local my_conf=(
207 + --with-storage="${EPREFIX}/var/lib/${PN}"
208 + --with-rundir="${EPREFIX}/var/run/${PN}"
209 + $(use_enable fastparser)
210 + $(use_enable dnstap)
211 + $(use_enable doc documentation)
212 + $(use_enable utils utilities)
213 + --enable-systemd=$(usex systemd)
214 + $(use_with idn libidn)
215 + )
216 +
217 + for u in "${KNOT_MODULES[@]#+}"; do
218 + my_conf+=("$(use_with ${u} module-${u})")
219 + done
220 +
221 + econf "${my_conf[@]}"
222 +}
223 +
224 +src_compile() {
225 + default
226 +
227 + if use doc; then
228 + emake -C doc html
229 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
230 + fi
231 +}
232 +
233 +src_test() {
234 + emake check
235 +}
236 +
237 +src_install() {
238 + default
239 +
240 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
241 +
242 + newinitd "${FILESDIR}/knot.init" knot
243 + if use systemd; then
244 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
245 + fi
246 +
247 + find "${D}" -name '*.la' -delete || die
248 +}