1 |
commit: 0d21b683dcb275a34d88cf515677e9f20a9c6976 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 3 21:54:08 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 3 22:23:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d21b683 |
7 |
|
8 |
net-dns/unbound: bump to v1.9.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
net-dns/unbound/Manifest | 1 + |
14 |
net-dns/unbound/unbound-1.9.3.ebuild | 182 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 183 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest |
18 |
index e92ceae8032..0247c0173a0 100644 |
19 |
--- a/net-dns/unbound/Manifest |
20 |
+++ b/net-dns/unbound/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST unbound-1.9.0.tar.gz 5662176 BLAKE2B dff42ca4155df1c364bcfeb37c0f9516e7f167cc59bebd1fcf264db6471ad99804323c59e485662e03ab095932f1ca3fe25693a9ba840e9c0ecad69cf31b1a2d SHA512 7dfa8e078507fc24a2d0938eea590389453bacfcac023f1a41af19350ea1f7b87d0c82d7eead121a11068921292a96865e177274ff27ed8b8868445f80f7baf6 |
23 |
DIST unbound-1.9.1.tar.gz 5665254 BLAKE2B 68a643cd17139b34e3651e0e72053b0faacf83ae975fff97493c78742ffa7f0d3dbc0028e96e581e125a3591467ec78ae245a718424c2fb32ea7db23ae945f44 SHA512 5dfac7ce3892f73109fdfe0f81863643b1f4c10cee2d4e2d1a28132f1b9ea4d4f89242e4e6348fdadf998f1c75d53577cbf4f719e98faa1342fc3c5de2e8903d |
24 |
DIST unbound-1.9.2.tar.gz 5676395 BLAKE2B fa42e6afaf7e7fc98dba35fb6ec4513f7f392194e9124f7a4625c9a51f4b2b58bb63ca40a083b9f3583af3636399df02f92ef7cb0ae10404b7258cddfce82adc SHA512 118f0e53ee2d5cfb53ce1f792ca680cc01b5825bf81575e36bd3b24f3bdbe14e6631401bf1bf85eb2ac2a3fa0ee2ee3eb6a28b245d06d48d9975ce4cc260f764 |
25 |
+DIST unbound-1.9.3.tar.gz 5686017 BLAKE2B f96636f4070e48cc5e3eadfb59e28f2ab2fc95a8c5a78af095743ea6d32149aadc486f8da62ea1b38c856f4ba9c2cf041407dceb33396a47c59a19816d67f8c6 SHA512 21e14dc1577adbe502a262d7fbe9aae0cd389cd9c0b822246beadf00f0ee875e268eeb3ce820433cbb01495d6b182c334b34b63b1bc33b08589a230810ccfe90 |
26 |
|
27 |
diff --git a/net-dns/unbound/unbound-1.9.3.ebuild b/net-dns/unbound/unbound-1.9.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e4d1ceae7af |
30 |
--- /dev/null |
31 |
+++ b/net-dns/unbound/unbound-1.9.3.ebuild |
32 |
@@ -0,0 +1,182 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
38 |
+ |
39 |
+inherit autotools flag-o-matic multilib-minimal python-single-r1 systemd user |
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 libressl python redis selinux static-libs systemd test threads" |
50 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
+ |
52 |
+# Note: expat is needed by executable only but the Makefile is custom |
53 |
+# and doesn't make it possible to easily install the library without |
54 |
+# the executables. MULTILIB_USEDEP may be dropped once build system |
55 |
+# is fixed. |
56 |
+ |
57 |
+CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] |
58 |
+ >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}] |
59 |
+ libressl? ( >=dev-libs/libressl-2.2.4:0[${MULTILIB_USEDEP}] ) |
60 |
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
61 |
+ dnscrypt? ( dev-libs/libsodium[${MULTILIB_USEDEP}] ) |
62 |
+ dnstap? ( |
63 |
+ dev-libs/fstrm[${MULTILIB_USEDEP}] |
64 |
+ >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}] |
65 |
+ ) |
66 |
+ ecdsa? ( |
67 |
+ !libressl? ( dev-libs/openssl:0[-bindist] ) |
68 |
+ ) |
69 |
+ python? ( ${PYTHON_DEPS} ) |
70 |
+ redis? ( dev-libs/hiredis:= )" |
71 |
+ |
72 |
+BDEPEND="virtual/pkgconfig" |
73 |
+ |
74 |
+DEPEND="${CDEPEND} |
75 |
+ python? ( dev-lang/swig ) |
76 |
+ test? ( |
77 |
+ net-dns/ldns-utils[examples] |
78 |
+ dev-util/splint |
79 |
+ app-text/wdiff |
80 |
+ ) |
81 |
+ systemd? ( sys-apps/systemd )" |
82 |
+ |
83 |
+RDEPEND="${CDEPEND} |
84 |
+ net-dns/dnssec-root |
85 |
+ selinux? ( sec-policy/selinux-bind )" |
86 |
+ |
87 |
+# bug #347415 |
88 |
+RDEPEND="${RDEPEND} |
89 |
+ net-dns/dnssec-root" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch |
93 |
+ "${FILESDIR}"/${PN}-1.6.3-pkg-config.patch |
94 |
+) |
95 |
+ |
96 |
+S=${WORKDIR}/${MY_P} |
97 |
+ |
98 |
+pkg_setup() { |
99 |
+ enewgroup unbound |
100 |
+ enewuser unbound -1 -1 /etc/unbound unbound |
101 |
+ # improve security on existing installs (bug #641042) |
102 |
+ # as well as new installs where unbound homedir has just been created |
103 |
+ if [[ -d "${ROOT}/etc/unbound" ]]; then |
104 |
+ chown --no-dereference --from=unbound root "${ROOT}/etc/unbound" |
105 |
+ fi |
106 |
+ |
107 |
+ use python && python-single-r1_pkg_setup |
108 |
+} |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ default |
112 |
+ |
113 |
+ eautoreconf |
114 |
+ |
115 |
+ # required for the python part |
116 |
+ multilib_copy_sources |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack |
121 |
+ multilib-minimal_src_configure |
122 |
+} |
123 |
+ |
124 |
+multilib_src_configure() { |
125 |
+ econf \ |
126 |
+ $(use_enable debug) \ |
127 |
+ $(use_enable gost) \ |
128 |
+ $(use_enable dnscrypt) \ |
129 |
+ $(use_enable dnstap) \ |
130 |
+ $(use_enable ecdsa) \ |
131 |
+ $(use_enable ecs subnet) \ |
132 |
+ $(multilib_native_use_enable redis cachedb) \ |
133 |
+ $(use_enable static-libs static) \ |
134 |
+ $(use_enable systemd) \ |
135 |
+ $(multilib_native_use_with python pythonmodule) \ |
136 |
+ $(multilib_native_use_with python pyunbound) \ |
137 |
+ $(use_with threads pthreads) \ |
138 |
+ --disable-flto \ |
139 |
+ --disable-rpath \ |
140 |
+ --enable-event-api \ |
141 |
+ --enable-ipsecmod \ |
142 |
+ --enable-tfo-client \ |
143 |
+ --enable-tfo-server \ |
144 |
+ --with-libevent="${EPREFIX%/}"/usr \ |
145 |
+ $(multilib_native_usex redis --with-libhiredis="${EPREFIX%/}/usr" --without-libhiredis) \ |
146 |
+ --with-pidfile="${EPREFIX%/}"/run/unbound.pid \ |
147 |
+ --with-rootkey-file="${EPREFIX%/}"/etc/dnssec/root-anchors.txt \ |
148 |
+ --with-ssl="${EPREFIX%/}"/usr \ |
149 |
+ --with-libexpat="${EPREFIX%/}"/usr |
150 |
+ |
151 |
+ # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html |
152 |
+ # $(use_enable debug lock-checks) \ |
153 |
+ # $(use_enable debug alloc-checks) \ |
154 |
+ # $(use_enable debug alloc-lite) \ |
155 |
+ # $(use_enable debug alloc-nonregional) \ |
156 |
+} |
157 |
+ |
158 |
+multilib_src_install_all() { |
159 |
+ use python && python_optimize |
160 |
+ |
161 |
+ newinitd "${FILESDIR}"/unbound-r1.initd unbound |
162 |
+ newconfd "${FILESDIR}"/unbound-r1.confd unbound |
163 |
+ |
164 |
+ systemd_dounit "${FILESDIR}"/unbound.service |
165 |
+ systemd_dounit "${FILESDIR}"/unbound.socket |
166 |
+ systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service" |
167 |
+ systemd_dounit "${FILESDIR}"/unbound-anchor.service |
168 |
+ |
169 |
+ dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} |
170 |
+ |
171 |
+ # bug #315519 |
172 |
+ dodoc contrib/unbound_munin_ |
173 |
+ |
174 |
+ docinto selinux |
175 |
+ dodoc contrib/selinux/* |
176 |
+ |
177 |
+ exeinto /usr/share/${PN} |
178 |
+ doexe contrib/update-anchor.sh |
179 |
+ |
180 |
+ # create space for auto-trust-anchor-file... |
181 |
+ keepdir /etc/unbound/var |
182 |
+ # ... and point example config to it |
183 |
+ sed -i \ |
184 |
+ -e '/# auto-trust-anchor-file:/s,/etc/dnssec/root-anchors.txt,/etc/unbound/var/root-anchors.txt,' \ |
185 |
+ "${ED%/}/etc/unbound/unbound.conf" || \ |
186 |
+ die |
187 |
+ |
188 |
+ # Used to store cache data |
189 |
+ keepdir /var/lib/${PN} |
190 |
+ fowners root:unbound /var/lib/${PN} |
191 |
+ fperms 0750 /var/lib/${PN} |
192 |
+ |
193 |
+ find "${ED}" -name '*.la' -delete || die |
194 |
+ if ! use static-libs ; then |
195 |
+ find "${ED}" -name "*.a" -delete || die |
196 |
+ fi |
197 |
+} |
198 |
+ |
199 |
+pkg_postinst() { |
200 |
+ # make var/ writable by unbound |
201 |
+ if [[ -d "${EROOT%/}/etc/unbound/var" ]]; then |
202 |
+ chown --no-dereference --from=root unbound: "${EROOT%/}/etc/unbound/var" |
203 |
+ fi |
204 |
+ |
205 |
+ einfo "" |
206 |
+ einfo "If you want unbound to automatically update the root-anchor file for DNSSEC validation" |
207 |
+ einfo "set 'auto-trust-anchor-file: ${EROOT%/}/etc/unbound/var/root-anchors.txt' in ${EROOT%/}/etc/unbound/unbound.conf" |
208 |
+ einfo "and run" |
209 |
+ einfo "" |
210 |
+ einfo " su -s /bin/sh -c '${EROOT%/}/usr/sbin/unbound-anchor -a ${EROOT%/}/etc/unbound/var/root-anchors.txt' unbound" |
211 |
+ einfo "" |
212 |
+ einfo "as root to create it initially before starting unbound for the first time after enabling this." |
213 |
+ einfo "" |
214 |
+} |