Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/unbound/
Date: Mon, 24 Feb 2020 17:28:27
Message-Id: 1582565288.345161cf1b211703ee86bed59e662fc79e475f09.whissi@gentoo
1 commit: 345161cf1b211703ee86bed59e662fc79e475f09
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 24 17:17:11 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 24 17:28:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345161cf
7
8 net-dns/unbound: drop old
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 net-dns/unbound/Manifest | 2 -
14 net-dns/unbound/unbound-1.9.4.ebuild | 183 -----------------------------------
15 net-dns/unbound/unbound-1.9.5.ebuild | 183 -----------------------------------
16 3 files changed, 368 deletions(-)
17
18 diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest
19 index 310a9cb7edb..332d1a8ad93 100644
20 --- a/net-dns/unbound/Manifest
21 +++ b/net-dns/unbound/Manifest
22 @@ -1,4 +1,2 @@
23 DIST unbound-1.10.0.tar.gz 5727902 BLAKE2B 64285aa60a11afa84f7fd30c2727de2831a0e418186f7665a3529a2fa2150f8d616838bcdad23aa69e4e761ad0764ead47aee1cddbcf82101a64cf5974c29700 SHA512 a64514990f5d614d749045a11f5ce9bb33cf856cc31895b4db3503f2b05a98f1ca57945b17dd7ec5befbd0c356fc42a717d3e2bae3d3510a0507d0445b1f6d59
24 -DIST unbound-1.9.4.tar.gz 5686242 BLAKE2B de9e553ba6e8c3839b41776052c3b0f83890b5bd9cbdb895fbf1e413169dd4740a9dc354ccc787fa018755acb73e831f1cb2742db65e151d1e01367b35a7b9e5 SHA512 44021014c944fc01a1f5f9afd77145f5554a3282cc2bfd54526fc4f88346f497c847ddb72bafa155d7e6e5dd02b6bb031836ead4408977d4e4b5b3290dffea9c
25 -DIST unbound-1.9.5.tar.gz 5686689 BLAKE2B a685d7f74bff5d76907694877a988346f233c202121b76f7fbd0d86edc200abe06d345e77fdca41e97d2a22329e6bbc1600fefeaac2abc1784f34367413593e3 SHA512 0b198b49165b25c93899ca41fead67c479e5b6fd255f7e2af6930f4b9898c73d8a72caf376fce9a2a33199d0764db58388371c3fdbd442999ddfdb0b8b5394ea
26 DIST unbound-1.9.6.tar.gz 5680145 BLAKE2B 9aa047270694babed36395100bbfc4287c74e173abfbb6f33939a7bf1362f765b16a8d016d84d426a5c0014d244063b4c028d5b5dddb05f09ad4287d8a63f098 SHA512 39a60f51da912ed25d247bc1e882b1242d80a63b0c2b3f753d38ed558f3a24691267375136ff6d85e5945a98ca0c4ac87e43e131c97737a355374dde64259951
27
28 diff --git a/net-dns/unbound/unbound-1.9.4.ebuild b/net-dns/unbound/unbound-1.9.4.ebuild
29 deleted file mode 100644
30 index e1f4177a4b6..00000000000
31 --- a/net-dns/unbound/unbound-1.9.4.ebuild
32 +++ /dev/null
33 @@ -1,183 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI="7"
38 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
39 -
40 -inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd user
41 -
42 -MY_P=${PN}-${PV/_/}
43 -DESCRIPTION="A validating, recursive and caching DNS resolver"
44 -HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/"
45 -SRC_URI="https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz"
46 -
47 -LICENSE="BSD GPL-2"
48 -SLOT="0/8" # ABI version of libunbound.so
49 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 x86"
50 -IUSE="debug dnscrypt dnstap +ecdsa ecs gost libressl python redis selinux static-libs systemd test threads"
51 -RESTRICT="!test? ( test )"
52 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 -
54 -# Note: expat is needed by executable only but the Makefile is custom
55 -# and doesn't make it possible to easily install the library without
56 -# the executables. MULTILIB_USEDEP may be dropped once build system
57 -# is fixed.
58 -
59 -CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
60 - >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}]
61 - libressl? ( >=dev-libs/libressl-2.2.4:0[${MULTILIB_USEDEP}] )
62 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
63 - dnscrypt? ( dev-libs/libsodium[${MULTILIB_USEDEP}] )
64 - dnstap? (
65 - dev-libs/fstrm[${MULTILIB_USEDEP}]
66 - >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}]
67 - )
68 - ecdsa? (
69 - !libressl? ( dev-libs/openssl:0[-bindist] )
70 - )
71 - python? ( ${PYTHON_DEPS} )
72 - redis? ( dev-libs/hiredis:= )"
73 -
74 -BDEPEND="virtual/pkgconfig"
75 -
76 -DEPEND="${CDEPEND}
77 - python? ( dev-lang/swig )
78 - test? (
79 - net-dns/ldns-utils[examples]
80 - dev-util/splint
81 - app-text/wdiff
82 - )
83 - systemd? ( sys-apps/systemd )"
84 -
85 -RDEPEND="${CDEPEND}
86 - net-dns/dnssec-root
87 - selinux? ( sec-policy/selinux-bind )"
88 -
89 -# bug #347415
90 -RDEPEND="${RDEPEND}
91 - net-dns/dnssec-root"
92 -
93 -PATCHES=(
94 - "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch
95 - "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch
96 -)
97 -
98 -S=${WORKDIR}/${MY_P}
99 -
100 -pkg_setup() {
101 - enewgroup unbound
102 - enewuser unbound -1 -1 /etc/unbound unbound
103 - # improve security on existing installs (bug #641042)
104 - # as well as new installs where unbound homedir has just been created
105 - if [[ -d "${ROOT}/etc/unbound" ]]; then
106 - chown --no-dereference --from=unbound root "${ROOT}/etc/unbound"
107 - fi
108 -
109 - use python && python-single-r1_pkg_setup
110 -}
111 -
112 -src_prepare() {
113 - default
114 -
115 - eautoreconf
116 -
117 - # required for the python part
118 - multilib_copy_sources
119 -}
120 -
121 -src_configure() {
122 - [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
123 - multilib-minimal_src_configure
124 -}
125 -
126 -multilib_src_configure() {
127 - econf \
128 - $(use_enable debug) \
129 - $(use_enable gost) \
130 - $(use_enable dnscrypt) \
131 - $(use_enable dnstap) \
132 - $(use_enable ecdsa) \
133 - $(use_enable ecs subnet) \
134 - $(multilib_native_use_enable redis cachedb) \
135 - $(use_enable static-libs static) \
136 - $(use_enable systemd) \
137 - $(multilib_native_use_with python pythonmodule) \
138 - $(multilib_native_use_with python pyunbound) \
139 - $(use_with threads pthreads) \
140 - --disable-flto \
141 - --disable-rpath \
142 - --enable-event-api \
143 - --enable-ipsecmod \
144 - --enable-tfo-client \
145 - --enable-tfo-server \
146 - --with-libevent="${EPREFIX}"/usr \
147 - $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \
148 - --with-pidfile="${EPREFIX}"/run/unbound.pid \
149 - --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
150 - --with-ssl="${EPREFIX}"/usr \
151 - --with-libexpat="${EPREFIX}"/usr
152 -
153 - # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
154 - # $(use_enable debug lock-checks) \
155 - # $(use_enable debug alloc-checks) \
156 - # $(use_enable debug alloc-lite) \
157 - # $(use_enable debug alloc-nonregional) \
158 -}
159 -
160 -multilib_src_install_all() {
161 - use python && python_optimize
162 -
163 - newinitd "${FILESDIR}"/unbound-r1.initd unbound
164 - newconfd "${FILESDIR}"/unbound-r1.confd unbound
165 -
166 - systemd_dounit "${FILESDIR}"/unbound.service
167 - systemd_dounit "${FILESDIR}"/unbound.socket
168 - systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
169 - systemd_dounit "${FILESDIR}"/unbound-anchor.service
170 -
171 - dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
172 -
173 - # bug #315519
174 - dodoc contrib/unbound_munin_
175 -
176 - docinto selinux
177 - dodoc contrib/selinux/*
178 -
179 - exeinto /usr/share/${PN}
180 - doexe contrib/update-anchor.sh
181 -
182 - # create space for auto-trust-anchor-file...
183 - keepdir /etc/unbound/var
184 - # ... and point example config to it
185 - sed -i \
186 - -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \
187 - "${ED}/etc/unbound/unbound.conf" || \
188 - die
189 -
190 - # Used to store cache data
191 - keepdir /var/lib/${PN}
192 - fowners root:unbound /var/lib/${PN}
193 - fperms 0750 /var/lib/${PN}
194 -
195 - find "${ED}" -name '*.la' -delete || die
196 - if ! use static-libs ; then
197 - find "${ED}" -name "*.a" -delete || die
198 - fi
199 -}
200 -
201 -pkg_postinst() {
202 - # make var/ writable by unbound
203 - if [[ -d "${EROOT}/etc/unbound/var" ]]; then
204 - chown --no-dereference --from=root unbound: "${EROOT}/etc/unbound/var"
205 - fi
206 -
207 - einfo ""
208 - einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation"
209 - einfo "set 'auto-trust-anchor-file: ${EROOT}/etc/unbound/var/root-anchors.txt' in ${EROOT}/etc/unbound/unbound.conf"
210 - einfo "and run"
211 - einfo ""
212 - einfo " su -s /bin/sh -c '${EROOT}/usr/sbin/unbound-anchor -a ${EROOT}/etc/unbound/var/root-anchors.txt' unbound"
213 - einfo ""
214 - einfo "as root to create it initially before starting unbound for the first time after enabling this."
215 - einfo ""
216 -}
217
218 diff --git a/net-dns/unbound/unbound-1.9.5.ebuild b/net-dns/unbound/unbound-1.9.5.ebuild
219 deleted file mode 100644
220 index 0a689254ef9..00000000000
221 --- a/net-dns/unbound/unbound-1.9.5.ebuild
222 +++ /dev/null
223 @@ -1,183 +0,0 @@
224 -# Copyright 1999-2020 Gentoo Authors
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI="7"
228 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
229 -
230 -inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd user
231 -
232 -MY_P=${PN}-${PV/_/}
233 -DESCRIPTION="A validating, recursive and caching DNS resolver"
234 -HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/"
235 -SRC_URI="https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz"
236 -
237 -LICENSE="BSD GPL-2"
238 -SLOT="0/8" # ABI version of libunbound.so
239 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 x86"
240 -IUSE="debug dnscrypt dnstap +ecdsa ecs gost libressl python redis selinux static-libs systemd test threads"
241 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
242 -RESTRICT="!test? ( test )"
243 -
244 -# Note: expat is needed by executable only but the Makefile is custom
245 -# and doesn't make it possible to easily install the library without
246 -# the executables. MULTILIB_USEDEP may be dropped once build system
247 -# is fixed.
248 -
249 -CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
250 - >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}]
251 - libressl? ( >=dev-libs/libressl-2.2.4:0[${MULTILIB_USEDEP}] )
252 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
253 - dnscrypt? ( dev-libs/libsodium[${MULTILIB_USEDEP}] )
254 - dnstap? (
255 - dev-libs/fstrm[${MULTILIB_USEDEP}]
256 - >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}]
257 - )
258 - ecdsa? (
259 - !libressl? ( dev-libs/openssl:0[-bindist] )
260 - )
261 - python? ( ${PYTHON_DEPS} )
262 - redis? ( dev-libs/hiredis:= )"
263 -
264 -BDEPEND="virtual/pkgconfig"
265 -
266 -DEPEND="${CDEPEND}
267 - python? ( dev-lang/swig )
268 - test? (
269 - net-dns/ldns-utils[examples]
270 - dev-util/splint
271 - app-text/wdiff
272 - )
273 - systemd? ( sys-apps/systemd )"
274 -
275 -RDEPEND="${CDEPEND}
276 - net-dns/dnssec-root
277 - selinux? ( sec-policy/selinux-bind )"
278 -
279 -# bug #347415
280 -RDEPEND="${RDEPEND}
281 - net-dns/dnssec-root"
282 -
283 -PATCHES=(
284 - "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch
285 - "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch
286 -)
287 -
288 -S=${WORKDIR}/${MY_P}
289 -
290 -pkg_setup() {
291 - enewgroup unbound
292 - enewuser unbound -1 -1 /etc/unbound unbound
293 - # improve security on existing installs (bug #641042)
294 - # as well as new installs where unbound homedir has just been created
295 - if [[ -d "${ROOT}/etc/unbound" ]]; then
296 - chown --no-dereference --from=unbound root "${ROOT}/etc/unbound"
297 - fi
298 -
299 - use python && python-single-r1_pkg_setup
300 -}
301 -
302 -src_prepare() {
303 - default
304 -
305 - eautoreconf
306 -
307 - # required for the python part
308 - multilib_copy_sources
309 -}
310 -
311 -src_configure() {
312 - [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
313 - multilib-minimal_src_configure
314 -}
315 -
316 -multilib_src_configure() {
317 - econf \
318 - $(use_enable debug) \
319 - $(use_enable gost) \
320 - $(use_enable dnscrypt) \
321 - $(use_enable dnstap) \
322 - $(use_enable ecdsa) \
323 - $(use_enable ecs subnet) \
324 - $(multilib_native_use_enable redis cachedb) \
325 - $(use_enable static-libs static) \
326 - $(use_enable systemd) \
327 - $(multilib_native_use_with python pythonmodule) \
328 - $(multilib_native_use_with python pyunbound) \
329 - $(use_with threads pthreads) \
330 - --disable-flto \
331 - --disable-rpath \
332 - --enable-event-api \
333 - --enable-ipsecmod \
334 - --enable-tfo-client \
335 - --enable-tfo-server \
336 - --with-libevent="${EPREFIX}"/usr \
337 - $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \
338 - --with-pidfile="${EPREFIX}"/run/unbound.pid \
339 - --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
340 - --with-ssl="${EPREFIX}"/usr \
341 - --with-libexpat="${EPREFIX}"/usr
342 -
343 - # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
344 - # $(use_enable debug lock-checks) \
345 - # $(use_enable debug alloc-checks) \
346 - # $(use_enable debug alloc-lite) \
347 - # $(use_enable debug alloc-nonregional) \
348 -}
349 -
350 -multilib_src_install_all() {
351 - use python && python_optimize
352 -
353 - newinitd "${FILESDIR}"/unbound-r1.initd unbound
354 - newconfd "${FILESDIR}"/unbound-r1.confd unbound
355 -
356 - systemd_dounit "${FILESDIR}"/unbound.service
357 - systemd_dounit "${FILESDIR}"/unbound.socket
358 - systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
359 - systemd_dounit "${FILESDIR}"/unbound-anchor.service
360 -
361 - dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
362 -
363 - # bug #315519
364 - dodoc contrib/unbound_munin_
365 -
366 - docinto selinux
367 - dodoc contrib/selinux/*
368 -
369 - exeinto /usr/share/${PN}
370 - doexe contrib/update-anchor.sh
371 -
372 - # create space for auto-trust-anchor-file...
373 - keepdir /etc/unbound/var
374 - # ... and point example config to it
375 - sed -i \
376 - -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \
377 - "${ED}/etc/unbound/unbound.conf" || \
378 - die
379 -
380 - # Used to store cache data
381 - keepdir /var/lib/${PN}
382 - fowners root:unbound /var/lib/${PN}
383 - fperms 0750 /var/lib/${PN}
384 -
385 - find "${ED}" -name '*.la' -delete || die
386 - if ! use static-libs ; then
387 - find "${ED}" -name "*.a" -delete || die
388 - fi
389 -}
390 -
391 -pkg_postinst() {
392 - # make var/ writable by unbound
393 - if [[ -d "${EROOT}/etc/unbound/var" ]]; then
394 - chown --no-dereference --from=root unbound: "${EROOT}/etc/unbound/var"
395 - fi
396 -
397 - einfo ""
398 - einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation"
399 - einfo "set 'auto-trust-anchor-file: ${EROOT}/etc/unbound/var/root-anchors.txt' in ${EROOT}/etc/unbound/unbound.conf"
400 - einfo "and run"
401 - einfo ""
402 - einfo " su -s /bin/sh -c '${EROOT}/usr/sbin/unbound-anchor -a ${EROOT}/etc/unbound/var/root-anchors.txt' unbound"
403 - einfo ""
404 - einfo "as root to create it initially before starting unbound for the first time after enabling this."
405 - einfo ""
406 -}