1 |
commit: e9e4d030449d2e82d8bef978b230ab4933644501 |
2 |
Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re> |
3 |
AuthorDate: Sat Apr 20 08:35:07 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 27 14:12:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9e4d030 |
7 |
|
8 |
net-dns/knot: bump to 2.8.1 and 2.7.7 |
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/11756 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
net-dns/knot/Manifest | 2 + |
16 |
net-dns/knot/knot-2.7.7.ebuild | 107 +++++++++++++++++++++++++++++++++++++++++ |
17 |
net-dns/knot/knot-2.8.1.ebuild | 107 +++++++++++++++++++++++++++++++++++++++++ |
18 |
3 files changed, 216 insertions(+) |
19 |
|
20 |
diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest |
21 |
index c4c7313c1d5..74e5344ff0c 100644 |
22 |
--- a/net-dns/knot/Manifest |
23 |
+++ b/net-dns/knot/Manifest |
24 |
@@ -1,2 +1,4 @@ |
25 |
DIST knot-2.7.6.tar.xz 1151068 BLAKE2B aba7b9f89d98ddabe5596198b0767b6d88cab2278eda33bea2738bcc2f62bc3b7463ee517488f8d2efa40b11859b3aefaa212999968654e5e5580969a173ec8e SHA512 6b6a727d57337da01e2d44abec7fde4504d112604769b118fe6254b0317f149ed4e9fab321a04517eccedb08e409818d1817fc1136c27d1fd351538e6816022a |
26 |
+DIST knot-2.7.7.tar.xz 1156996 BLAKE2B aa31233cf9af9f8060a40788529593d35912992472d5b9d892e632ba4cbf08a0f0adec6ed00d1152bf6cd443e3a659fa88050355e65a71cc2a3aac3c453bdc44 SHA512 95c341ce7c8cc2e65429d6e3bf009844fbd82ca5a0e36019f0e019ce35fc3ba8b68c159d34637380f6a3ad3dc2291ed5adc37e91515b2b6ecf61f7078ddad841 |
27 |
DIST knot-2.8.0.tar.xz 1168900 BLAKE2B e6d54709ce0bbc5411918de337fd2eb1cb939bbaf1b0dec149b169c2a93c6c0f4719028e35ff9a07d940d5e30470a4661e847a83c73ba0baaf89a520d8ee4fc3 SHA512 0cf2840d908bbab3197bff82d37e4a754204a3b79efa7e982719bc19028519d3ff0b2177780dada54e1b070f5f7aa28dab7bbfcc2d2ea086817f3a29b746228e |
28 |
+DIST knot-2.8.1.tar.xz 1169260 BLAKE2B 0a02394d5dfdce98d5f909f04a8902778f152d366d76f449ee57dfe99ad6168d7848454fbf21e01ce47dde1721af5293445f450f45949c21c3715f3f32fd5af9 SHA512 b1f97171efae85b5d6f845e57d933170e8f81b30e8b5a1a6157bb0f6bf5e1e545e7b3d2d51eedf0061166e9842ab01eb6c5e84b1ef9e98e20eda9a806e3e5d4b |
29 |
|
30 |
diff --git a/net-dns/knot/knot-2.7.7.ebuild b/net-dns/knot/knot-2.7.7.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..5ccc7dcad7c |
33 |
--- /dev/null |
34 |
+++ b/net-dns/knot/knot-2.7.7.ebuild |
35 |
@@ -0,0 +1,107 @@ |
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 user |
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 |
+ dev-db/lmdb |
68 |
+ dev-libs/libedit |
69 |
+ dev-libs/userspace-rcu:= |
70 |
+ dev-python/lmdb |
71 |
+ net-libs/gnutls:= |
72 |
+ caps? ( sys-libs/libcap-ng ) |
73 |
+ dnstap? ( |
74 |
+ dev-libs/fstrm |
75 |
+ dev-libs/protobuf-c:= |
76 |
+ ) |
77 |
+ geoip? ( dev-libs/libmaxminddb:= ) |
78 |
+ idn? ( |
79 |
+ !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 ) |
80 |
+ libidn2? ( net-dns/libidn2:= ) |
81 |
+ ) |
82 |
+ systemd? ( sys-apps/systemd:= ) |
83 |
+" |
84 |
+DEPEND="${RDEPEND}" |
85 |
+BDEPEND=" |
86 |
+ virtual/pkgconfig |
87 |
+ doc? ( dev-python/sphinx ) |
88 |
+" |
89 |
+ |
90 |
+S="${WORKDIR}/${P/_/-}" |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local u |
94 |
+ local my_conf=( |
95 |
+ --with-storage="${EPREFIX}/var/lib/${PN}" |
96 |
+ --with-rundir="${EPREFIX}/var/run/${PN}" |
97 |
+ $(use_enable fastparser) |
98 |
+ $(use_enable dnstap) |
99 |
+ $(use_enable doc documentation) |
100 |
+ $(use_enable utils utilities) |
101 |
+ --enable-systemd=$(usex systemd) |
102 |
+ $(use_with idn libidn) |
103 |
+ ) |
104 |
+ |
105 |
+ for u in "${KNOT_MODULES[@]#+}"; do |
106 |
+ my_conf+=("$(use_with ${u} module-${u})") |
107 |
+ done |
108 |
+ |
109 |
+ econf "${my_conf[@]}" |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ default |
114 |
+ |
115 |
+ if use doc; then |
116 |
+ emake -C doc html |
117 |
+ HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) |
118 |
+ fi |
119 |
+} |
120 |
+ |
121 |
+src_test() { |
122 |
+ emake check |
123 |
+} |
124 |
+ |
125 |
+src_install() { |
126 |
+ default |
127 |
+ |
128 |
+ rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die |
129 |
+ keepdir /var/lib/${PN} |
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 |
+pkg_postinst() { |
140 |
+ enewgroup knot 53 |
141 |
+ enewuser knot 53 -1 /var/lib/knot knot |
142 |
+} |
143 |
|
144 |
diff --git a/net-dns/knot/knot-2.8.1.ebuild b/net-dns/knot/knot-2.8.1.ebuild |
145 |
new file mode 100644 |
146 |
index 00000000000..5ccc7dcad7c |
147 |
--- /dev/null |
148 |
+++ b/net-dns/knot/knot-2.8.1.ebuild |
149 |
@@ -0,0 +1,107 @@ |
150 |
+# Copyright 1999-2019 Gentoo Authors |
151 |
+# Distributed under the terms of the GNU General Public License v2 |
152 |
+ |
153 |
+EAPI=7 |
154 |
+ |
155 |
+inherit systemd user |
156 |
+ |
157 |
+DESCRIPTION="High-performance authoritative-only DNS server" |
158 |
+HOMEPAGE="https://www.knot-dns.cz/" |
159 |
+SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz" |
160 |
+ |
161 |
+LICENSE="GPL-3" |
162 |
+SLOT="0" |
163 |
+KEYWORDS="~amd64 ~x86" |
164 |
+ |
165 |
+KNOT_MODULES=( |
166 |
+ "+cookies" |
167 |
+ "+dnsproxy" |
168 |
+ "dnstap" |
169 |
+ "geoip" |
170 |
+ "+noudp" |
171 |
+ "+onlinesign" |
172 |
+ "+queryacl" |
173 |
+ "+rrl" |
174 |
+ "+stats" |
175 |
+ "+synthrecord" |
176 |
+ "+whoami" |
177 |
+) |
178 |
+IUSE="doc caps +fastparser idn +libidn2 systemd +utils ${KNOT_MODULES[@]}" |
179 |
+ |
180 |
+RDEPEND=" |
181 |
+ dev-db/lmdb |
182 |
+ dev-libs/libedit |
183 |
+ dev-libs/userspace-rcu:= |
184 |
+ dev-python/lmdb |
185 |
+ net-libs/gnutls:= |
186 |
+ caps? ( sys-libs/libcap-ng ) |
187 |
+ dnstap? ( |
188 |
+ dev-libs/fstrm |
189 |
+ dev-libs/protobuf-c:= |
190 |
+ ) |
191 |
+ geoip? ( dev-libs/libmaxminddb:= ) |
192 |
+ idn? ( |
193 |
+ !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 ) |
194 |
+ libidn2? ( net-dns/libidn2:= ) |
195 |
+ ) |
196 |
+ systemd? ( sys-apps/systemd:= ) |
197 |
+" |
198 |
+DEPEND="${RDEPEND}" |
199 |
+BDEPEND=" |
200 |
+ virtual/pkgconfig |
201 |
+ doc? ( dev-python/sphinx ) |
202 |
+" |
203 |
+ |
204 |
+S="${WORKDIR}/${P/_/-}" |
205 |
+ |
206 |
+src_configure() { |
207 |
+ local u |
208 |
+ local my_conf=( |
209 |
+ --with-storage="${EPREFIX}/var/lib/${PN}" |
210 |
+ --with-rundir="${EPREFIX}/var/run/${PN}" |
211 |
+ $(use_enable fastparser) |
212 |
+ $(use_enable dnstap) |
213 |
+ $(use_enable doc documentation) |
214 |
+ $(use_enable utils utilities) |
215 |
+ --enable-systemd=$(usex systemd) |
216 |
+ $(use_with idn libidn) |
217 |
+ ) |
218 |
+ |
219 |
+ for u in "${KNOT_MODULES[@]#+}"; do |
220 |
+ my_conf+=("$(use_with ${u} module-${u})") |
221 |
+ done |
222 |
+ |
223 |
+ econf "${my_conf[@]}" |
224 |
+} |
225 |
+ |
226 |
+src_compile() { |
227 |
+ default |
228 |
+ |
229 |
+ if use doc; then |
230 |
+ emake -C doc html |
231 |
+ HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) |
232 |
+ fi |
233 |
+} |
234 |
+ |
235 |
+src_test() { |
236 |
+ emake check |
237 |
+} |
238 |
+ |
239 |
+src_install() { |
240 |
+ default |
241 |
+ |
242 |
+ rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die |
243 |
+ keepdir /var/lib/${PN} |
244 |
+ |
245 |
+ newinitd "${FILESDIR}/knot.init" knot |
246 |
+ if use systemd; then |
247 |
+ systemd_newunit "${FILESDIR}/knot-1.service" knot.service |
248 |
+ fi |
249 |
+ |
250 |
+ find "${D}" -name '*.la' -delete || die |
251 |
+} |
252 |
+ |
253 |
+pkg_postinst() { |
254 |
+ enewgroup knot 53 |
255 |
+ enewuser knot 53 -1 /var/lib/knot knot |
256 |
+} |