1 |
commit: 201bccdc104330bf20c98da94f367dc67d71700a |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 22 22:45:47 2021 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 24 10:39:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=201bccdc |
7 |
|
8 |
net-dns/unbound: drop 1.13.0-r4, 1.13.0-r5 |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
12 |
|
13 |
net-dns/unbound/Manifest | 1 - |
14 |
net-dns/unbound/unbound-1.13.0-r4.ebuild | 201 ------------------------------ |
15 |
net-dns/unbound/unbound-1.13.0-r5.ebuild | 205 ------------------------------- |
16 |
3 files changed, 407 deletions(-) |
17 |
|
18 |
diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest |
19 |
index c9c098f4a8f1..db6d10aad7ec 100644 |
20 |
--- a/net-dns/unbound/Manifest |
21 |
+++ b/net-dns/unbound/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
-DIST unbound-1.13.0.tar.gz 5950063 BLAKE2B 742eed33845079452a942837a64e80f89ec7ec73459d0045c70ff83d3ba982fae6bade9feb56ef6faa9fca4859222ea00ac587c65c8ad722bef4a6b66a276ade SHA512 d4f3c5a7df5d46f8b1ee32b61e68bdc0d63030820d236ecc51bc3ac356d15248acb9a5e0b6009e1936b03b751e8dd05a071a95ab239fdbbbb308442a59642ad5 |
24 |
DIST unbound-1.13.1.tar.gz 5976957 BLAKE2B 5fabb9205773a1983842e41cf7a4d6c3878fa8beb7c8ccc71ae1edf7738cb9506c3d7bb32cf887b305317ca695bf876d9f5bf9aeb0129b0e9e926d437b3e6eb3 SHA512 f4d26dca28dbcc33a5e65a55147fa01077c331292e88b6a87798cb6c3d4edb0515015d131fd893c92b74d22d9998a640f0adce404e6192d61ebe69a6a599287c |
25 |
DIST unbound-1.13.2.tar.gz 6127915 BLAKE2B 71806edc86b323ff1f9f2d7bd3f699b15da2cd1cfefe9ca6008d74915dd6c7b45690026fb0244531ae563a3ca1b142f21fc8aed97ba4bb0015d8ab9196ff045a SHA512 1e89441446e7a25c6a49bded645f8b348c1758c3be54e3a986041cb1f00c45d152fd469dc52666fb820574db9d51b16f1627dc8afcb9519508d4833ca358191a |
26 |
|
27 |
diff --git a/net-dns/unbound/unbound-1.13.0-r4.ebuild b/net-dns/unbound/unbound-1.13.0-r4.ebuild |
28 |
deleted file mode 100644 |
29 |
index 22dc5675ff0b..000000000000 |
30 |
--- a/net-dns/unbound/unbound-1.13.0-r4.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,201 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI="7" |
37 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
38 |
- |
39 |
-inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd |
40 |
- |
41 |
-MY_P=${PN}-${PV/_/} |
42 |
-DESCRIPTION="A validating, recursive and caching DNS resolver" |
43 |
-HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/" |
44 |
-SRC_URI="https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz" |
45 |
- |
46 |
-LICENSE="BSD GPL-2" |
47 |
-SLOT="0/8" # ABI version of libunbound.so |
48 |
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 x86" |
49 |
-IUSE="debug dnscrypt dnstap +ecdsa ecs gost +http2 python redis selinux static-libs systemd test threads" |
50 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
-RESTRICT="!test? ( test )" |
52 |
- |
53 |
-# Note: expat is needed by executable only but the Makefile is custom |
54 |
-# and doesn't make it possible to easily install the library without |
55 |
-# the executables. MULTILIB_USEDEP may be dropped once build system |
56 |
-# is fixed. |
57 |
- |
58 |
-CDEPEND="acct-group/unbound |
59 |
- acct-user/unbound |
60 |
- >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] |
61 |
- >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}] |
62 |
- >=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 |
- dev-libs/openssl:0[-bindist(-)] |
70 |
- ) |
71 |
- http2? ( net-libs/nghttp2:=[${MULTILIB_USEDEP}] ) |
72 |
- python? ( ${PYTHON_DEPS} ) |
73 |
- redis? ( dev-libs/hiredis:= )" |
74 |
- |
75 |
-BDEPEND="virtual/pkgconfig" |
76 |
- |
77 |
-DEPEND="${CDEPEND} |
78 |
- python? ( dev-lang/swig ) |
79 |
- test? ( |
80 |
- net-dns/ldns-utils[examples] |
81 |
- dev-util/splint |
82 |
- app-text/wdiff |
83 |
- ) |
84 |
- systemd? ( sys-apps/systemd )" |
85 |
- |
86 |
-RDEPEND="${CDEPEND} |
87 |
- net-dns/dnssec-root |
88 |
- selinux? ( sec-policy/selinux-bind )" |
89 |
- |
90 |
-# bug #347415 |
91 |
-RDEPEND="${RDEPEND} |
92 |
- net-dns/dnssec-root" |
93 |
- |
94 |
-PATCHES=( |
95 |
- "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch |
96 |
- "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch |
97 |
- "${FILESDIR}"/${PN}-1.10.1-find-ar.patch |
98 |
-) |
99 |
- |
100 |
-S=${WORKDIR}/${MY_P} |
101 |
- |
102 |
-pkg_setup() { |
103 |
- use python && python-single-r1_pkg_setup |
104 |
-} |
105 |
- |
106 |
-src_prepare() { |
107 |
- default |
108 |
- |
109 |
- eautoreconf |
110 |
- |
111 |
- # required for the python part |
112 |
- multilib_copy_sources |
113 |
-} |
114 |
- |
115 |
-src_configure() { |
116 |
- [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack |
117 |
- multilib-minimal_src_configure |
118 |
-} |
119 |
- |
120 |
-multilib_src_configure() { |
121 |
- econf \ |
122 |
- $(use_enable debug) \ |
123 |
- $(use_enable gost) \ |
124 |
- $(use_enable dnscrypt) \ |
125 |
- $(use_enable dnstap) \ |
126 |
- $(use_enable ecdsa) \ |
127 |
- $(use_enable ecs subnet) \ |
128 |
- $(multilib_native_use_enable redis cachedb) \ |
129 |
- $(use_enable static-libs static) \ |
130 |
- $(use_enable systemd) \ |
131 |
- $(multilib_native_use_with python pythonmodule) \ |
132 |
- $(multilib_native_use_with python pyunbound) \ |
133 |
- $(use_with threads pthreads) \ |
134 |
- $(use_with http2 libnghttp2) \ |
135 |
- --disable-flto \ |
136 |
- --disable-rpath \ |
137 |
- --enable-event-api \ |
138 |
- --enable-ipsecmod \ |
139 |
- --enable-tfo-client \ |
140 |
- --enable-tfo-server \ |
141 |
- --with-libevent="${EPREFIX}"/usr \ |
142 |
- $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \ |
143 |
- --with-pidfile="${EPREFIX}"/run/unbound.pid \ |
144 |
- --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \ |
145 |
- --with-ssl="${EPREFIX}"/usr \ |
146 |
- --with-libexpat="${EPREFIX}"/usr |
147 |
- |
148 |
- # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html |
149 |
- # $(use_enable debug lock-checks) \ |
150 |
- # $(use_enable debug alloc-checks) \ |
151 |
- # $(use_enable debug alloc-lite) \ |
152 |
- # $(use_enable debug alloc-nonregional) \ |
153 |
-} |
154 |
- |
155 |
-multilib_src_install_all() { |
156 |
- use python && python_optimize |
157 |
- |
158 |
- newinitd "${FILESDIR}"/unbound-r1.initd unbound |
159 |
- newconfd "${FILESDIR}"/unbound-r1.confd unbound |
160 |
- |
161 |
- systemd_dounit "${FILESDIR}"/unbound.service |
162 |
- systemd_dounit "${FILESDIR}"/unbound.socket |
163 |
- systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service" |
164 |
- systemd_dounit "${FILESDIR}"/unbound-anchor.service |
165 |
- |
166 |
- dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} |
167 |
- |
168 |
- # bug #315519 |
169 |
- dodoc contrib/unbound_munin_ |
170 |
- |
171 |
- docinto selinux |
172 |
- dodoc contrib/selinux/* |
173 |
- |
174 |
- exeinto /usr/share/${PN} |
175 |
- doexe contrib/update-anchor.sh |
176 |
- |
177 |
- # create space for auto-trust-anchor-file... |
178 |
- keepdir /etc/unbound/var |
179 |
- fowners root:unbound /etc/unbound/var |
180 |
- fperms 0770 /etc/unbound/var |
181 |
- # ... and point example config to it |
182 |
- sed -i \ |
183 |
- -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \ |
184 |
- "${ED}/etc/unbound/unbound.conf" \ |
185 |
- || die |
186 |
- |
187 |
- # Used to store cache data |
188 |
- keepdir /var/lib/${PN} |
189 |
- fowners root:unbound /var/lib/${PN} |
190 |
- fperms 0770 /var/lib/${PN} |
191 |
- |
192 |
- find "${ED}" -name '*.la' -delete || die |
193 |
- if ! use static-libs ; then |
194 |
- find "${ED}" -name "*.a" -delete || die |
195 |
- fi |
196 |
-} |
197 |
- |
198 |
-pkg_postinst() { |
199 |
- if [[ ! -f "${EROOT}/etc/unbound/unbound_control.key" ]] ; then |
200 |
- einfo "Trying to create unbound control key ..." |
201 |
- if ! unbound-control-setup &>/dev/null ; then |
202 |
- ewarn "Failed to create unbound control key!" |
203 |
- fi |
204 |
- fi |
205 |
- |
206 |
- if [[ ! -f "${EROOT}/etc/unbound/var/root-anchors.txt" ]] ; then |
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 |
- fi |
217 |
- |
218 |
- # Our user is not available on prefix |
219 |
- use prefix && return |
220 |
- |
221 |
- local _perm_check_testfile=$(mktemp --dry-run "${EPREFIX}"/etc/unbound/var/.pkg_postinst-perm-check.XXXXXXXXX) |
222 |
- su -s /bin/sh -c "touch ${_perm_check_testfile}" unbound &>/dev/null |
223 |
- if [ $? -ne 0 ] ; then |
224 |
- ewarn "WARNING: unbound user cannot write to \"${EPREFIX}/etc/unbound/var\"!" |
225 |
- ewarn "Run the following commands to restore default permission:" |
226 |
- ewarn "" |
227 |
- ewarn " chown root:unbound ${EPREFIX}/etc/unbound/var" |
228 |
- ewarn " chmod 0770 ${EPREFIX}/etc/unbound/var" |
229 |
- else |
230 |
- # Cleanup -- no reason to die here! |
231 |
- rm -f "${_perm_check_testfile}" |
232 |
- fi |
233 |
-} |
234 |
|
235 |
diff --git a/net-dns/unbound/unbound-1.13.0-r5.ebuild b/net-dns/unbound/unbound-1.13.0-r5.ebuild |
236 |
deleted file mode 100644 |
237 |
index 599a521515cc..000000000000 |
238 |
--- a/net-dns/unbound/unbound-1.13.0-r5.ebuild |
239 |
+++ /dev/null |
240 |
@@ -1,205 +0,0 @@ |
241 |
-# Copyright 1999-2021 Gentoo Authors |
242 |
-# Distributed under the terms of the GNU General Public License v2 |
243 |
- |
244 |
-EAPI="7" |
245 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
246 |
- |
247 |
-inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd |
248 |
- |
249 |
-MY_P=${PN}-${PV/_/} |
250 |
-DESCRIPTION="A validating, recursive and caching DNS resolver" |
251 |
-HOMEPAGE="https://unbound.net/ https://nlnetlabs.nl/projects/unbound/about/" |
252 |
-SRC_URI="https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz" |
253 |
- |
254 |
-LICENSE="BSD GPL-2" |
255 |
-SLOT="0/8" # ABI version of libunbound.so |
256 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
257 |
-IUSE="debug dnscrypt dnstap +ecdsa ecs gost +http2 python redis selinux static-libs systemd test threads" |
258 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
259 |
-RESTRICT="!test? ( test )" |
260 |
- |
261 |
-# Note: expat is needed by executable only but the Makefile is custom |
262 |
-# and doesn't make it possible to easily install the library without |
263 |
-# the executables. MULTILIB_USEDEP may be dropped once build system |
264 |
-# is fixed. |
265 |
- |
266 |
-CDEPEND="acct-group/unbound |
267 |
- acct-user/unbound |
268 |
- >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] |
269 |
- >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}] |
270 |
- >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] |
271 |
- dnscrypt? ( dev-libs/libsodium:=[${MULTILIB_USEDEP}] ) |
272 |
- dnstap? ( |
273 |
- dev-libs/fstrm[${MULTILIB_USEDEP}] |
274 |
- >=dev-libs/protobuf-c-1.0.2-r1:=[${MULTILIB_USEDEP}] |
275 |
- ) |
276 |
- ecdsa? ( |
277 |
- dev-libs/openssl:0[-bindist(-)] |
278 |
- ) |
279 |
- http2? ( net-libs/nghttp2:=[${MULTILIB_USEDEP}] ) |
280 |
- python? ( ${PYTHON_DEPS} ) |
281 |
- redis? ( dev-libs/hiredis:= )" |
282 |
- |
283 |
-BDEPEND="virtual/pkgconfig" |
284 |
- |
285 |
-DEPEND="${CDEPEND} |
286 |
- python? ( dev-lang/swig ) |
287 |
- test? ( |
288 |
- net-dns/ldns-utils[examples] |
289 |
- dev-util/splint |
290 |
- app-text/wdiff |
291 |
- ) |
292 |
- systemd? ( sys-apps/systemd )" |
293 |
- |
294 |
-RDEPEND="${CDEPEND} |
295 |
- net-dns/dnssec-root |
296 |
- selinux? ( sec-policy/selinux-bind )" |
297 |
- |
298 |
-# bug #347415 |
299 |
-RDEPEND="${RDEPEND} |
300 |
- net-dns/dnssec-root" |
301 |
- |
302 |
-PATCHES=( |
303 |
- "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch |
304 |
- "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch |
305 |
- "${FILESDIR}"/${PN}-1.10.1-find-ar.patch |
306 |
-) |
307 |
- |
308 |
-S=${WORKDIR}/${MY_P} |
309 |
- |
310 |
-pkg_setup() { |
311 |
- use python && python-single-r1_pkg_setup |
312 |
-} |
313 |
- |
314 |
-src_prepare() { |
315 |
- default |
316 |
- |
317 |
- eautoreconf |
318 |
- |
319 |
- # required for the python part |
320 |
- multilib_copy_sources |
321 |
-} |
322 |
- |
323 |
-src_configure() { |
324 |
- [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack |
325 |
- multilib-minimal_src_configure |
326 |
-} |
327 |
- |
328 |
-multilib_src_configure() { |
329 |
- econf \ |
330 |
- $(use_enable debug) \ |
331 |
- $(use_enable gost) \ |
332 |
- $(use_enable dnscrypt) \ |
333 |
- $(use_enable dnstap) \ |
334 |
- $(use_enable ecdsa) \ |
335 |
- $(use_enable ecs subnet) \ |
336 |
- $(multilib_native_use_enable redis cachedb) \ |
337 |
- $(use_enable static-libs static) \ |
338 |
- $(use_enable systemd) \ |
339 |
- $(multilib_native_use_with python pythonmodule) \ |
340 |
- $(multilib_native_use_with python pyunbound) \ |
341 |
- $(use_with threads pthreads) \ |
342 |
- $(use_with http2 libnghttp2) \ |
343 |
- --disable-flto \ |
344 |
- --disable-rpath \ |
345 |
- --enable-event-api \ |
346 |
- --enable-ipsecmod \ |
347 |
- --enable-tfo-client \ |
348 |
- --enable-tfo-server \ |
349 |
- --with-libevent="${EPREFIX}"/usr \ |
350 |
- $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \ |
351 |
- --with-pidfile="${EPREFIX}"/run/unbound.pid \ |
352 |
- --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \ |
353 |
- --with-ssl="${EPREFIX}"/usr \ |
354 |
- --with-libexpat="${EPREFIX}"/usr |
355 |
- |
356 |
- # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html |
357 |
- # $(use_enable debug lock-checks) \ |
358 |
- # $(use_enable debug alloc-checks) \ |
359 |
- # $(use_enable debug alloc-lite) \ |
360 |
- # $(use_enable debug alloc-nonregional) \ |
361 |
-} |
362 |
- |
363 |
-multilib_src_install() { |
364 |
- emake DESTDIR="${D}" install |
365 |
- systemd_dounit contrib/unbound.service |
366 |
- systemd_dounit contrib/unbound.socket |
367 |
-} |
368 |
- |
369 |
-multilib_src_install_all() { |
370 |
- use python && python_optimize |
371 |
- |
372 |
- newinitd "${FILESDIR}"/unbound-r1.initd unbound |
373 |
- newconfd "${FILESDIR}"/unbound-r1.confd unbound |
374 |
- |
375 |
- systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service" |
376 |
- systemd_dounit "${FILESDIR}"/unbound-anchor.service |
377 |
- |
378 |
- dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} |
379 |
- |
380 |
- # bug #315519 |
381 |
- dodoc contrib/unbound_munin_ |
382 |
- |
383 |
- docinto selinux |
384 |
- dodoc contrib/selinux/* |
385 |
- |
386 |
- exeinto /usr/share/${PN} |
387 |
- doexe contrib/update-anchor.sh |
388 |
- |
389 |
- # create space for auto-trust-anchor-file... |
390 |
- keepdir /etc/unbound/var |
391 |
- fowners root:unbound /etc/unbound/var |
392 |
- fperms 0770 /etc/unbound/var |
393 |
- # ... and point example config to it |
394 |
- sed -i \ |
395 |
- -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \ |
396 |
- "${ED}/etc/unbound/unbound.conf" \ |
397 |
- || die |
398 |
- |
399 |
- # Used to store cache data |
400 |
- keepdir /var/lib/${PN} |
401 |
- fowners root:unbound /var/lib/${PN} |
402 |
- fperms 0770 /var/lib/${PN} |
403 |
- |
404 |
- find "${ED}" -name '*.la' -delete || die |
405 |
- if ! use static-libs ; then |
406 |
- find "${ED}" -name "*.a" -delete || die |
407 |
- fi |
408 |
-} |
409 |
- |
410 |
-pkg_postinst() { |
411 |
- if [[ ! -f "${EROOT}/etc/unbound/unbound_control.key" ]] ; then |
412 |
- einfo "Trying to create unbound control key ..." |
413 |
- if ! unbound-control-setup &>/dev/null ; then |
414 |
- ewarn "Failed to create unbound control key!" |
415 |
- fi |
416 |
- fi |
417 |
- |
418 |
- if [[ ! -f "${EROOT}/etc/unbound/var/root-anchors.txt" ]] ; then |
419 |
- einfo "" |
420 |
- einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation" |
421 |
- einfo "set 'auto-trust-anchor-file: ${EROOT}/etc/unbound/var/root-anchors.txt' in ${EROOT}/etc/unbound/unbound.conf" |
422 |
- einfo "and run" |
423 |
- einfo "" |
424 |
- einfo " su -s /bin/sh -c '${EROOT}/usr/sbin/unbound-anchor -a ${EROOT}/etc/unbound/var/root-anchors.txt' unbound" |
425 |
- einfo "" |
426 |
- einfo "as root to create it initially before starting unbound for the first time after enabling this." |
427 |
- einfo "" |
428 |
- fi |
429 |
- |
430 |
- # Our user is not available on prefix |
431 |
- use prefix && return |
432 |
- |
433 |
- local _perm_check_testfile=$(mktemp --dry-run "${EPREFIX}"/etc/unbound/var/.pkg_postinst-perm-check.XXXXXXXXX) |
434 |
- su -s /bin/sh -c "touch ${_perm_check_testfile}" unbound &>/dev/null |
435 |
- if [ $? -ne 0 ] ; then |
436 |
- ewarn "WARNING: unbound user cannot write to \"${EPREFIX}/etc/unbound/var\"!" |
437 |
- ewarn "Run the following commands to restore default permission:" |
438 |
- ewarn "" |
439 |
- ewarn " chown root:unbound ${EPREFIX}/etc/unbound/var" |
440 |
- ewarn " chmod 0770 ${EPREFIX}/etc/unbound/var" |
441 |
- else |
442 |
- # Cleanup -- no reason to die here! |
443 |
- rm -f "${_perm_check_testfile}" |
444 |
- fi |
445 |
-} |