1 |
commit: 3524d179aac8aa5040cc649e7211b200d4d292a4 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 27 16:42:43 2017 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 27 16:46:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3524d179 |
7 |
|
8 |
net-dns/unbound: bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
net-dns/unbound/Manifest | 1 + |
13 |
net-dns/unbound/metadata.xml | 2 +- |
14 |
net-dns/unbound/unbound-1.6.6.ebuild | 130 +++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 132 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest |
18 |
index b2a322b2933..2b22c3129e7 100644 |
19 |
--- a/net-dns/unbound/Manifest |
20 |
+++ b/net-dns/unbound/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST unbound-1.5.1.tar.gz 4805176 SHA256 0ff82709fb2bd7ecbde8dbdcf60fa417d2b4337 |
22 |
DIST unbound-1.5.10.tar.gz 4941299 SHA256 a39b8b4fcca2a2b35a2daa53fe35150cc3f09038dc9acede09c912fc248a9486 SHA512 1c413886a12d4b626e03e076da6b9ccbcc8fd4769649fef8895eca74199bc22aec33c026e777524e8fe0327045a194f79b52282fe40674a9fb15cac58c4493f6 WHIRLPOOL 4e4ef7e4a89a6d8cd7b359a38cfb8a5cd99ea4e59a89ab894181b149346cf1e2875ec6b2af0985925cc50ff1c2f50fbfe569569ead2913127631781003c84742 |
23 |
DIST unbound-1.6.3.tar.gz 5381240 SHA256 4c7e655c1d0d2d133fdeb81bc1ab3aa5c155700f66c9f5fb53fa6a5c3ea9845f SHA512 1d84fcc4c4b2a2b5cce6540cf252ff964f4acae3b6567c61cee69b76c6cee3e00270b1f7cc7ad83a2754afb33cc199c8b6e8116e5b587811714398b1d34de8a3 WHIRLPOOL c4cc7b45686bb3e5128f8c2e28b6e87867b983e01c53d336d85f342dc84e5c9a01491a7325f8290620a02ff9323173f433892f114ee5f4350cf41e91bbc74831 |
24 |
DIST unbound-1.6.4.tar.gz 5477897 SHA256 df0a88816ec31ccb8284c9eb132e1166fbf6d9cde71fbc4b8cd08a91ee777fed SHA512 1abf50552c97b304884f07372f9fb05f9f30354647cf5299192deac81fa28a41d89d84ee092baef644a6069d0f545d36e7e814c9b8f83f21a7a53572d9a91907 WHIRLPOOL 36cadfa940ae121ab0d261fa70b91114462aeb56b0c3b1505e58a307248d4741a040b1cecd62ad42e95958798b7aa5331c45cc879d83298318d9eee184de8a17 |
25 |
+DIST unbound-1.6.6.tar.gz 5460482 SHA256 972b14dc33093e672652a7b2b5f159bab2198b0fe9c9e1c5707e1895d4d4b390 SHA512 910fd0956b8828d3db0511a85bf6ab6c4c3982f17c70ccb7123d1de1650d24c2906bc29ac4ea83fd7d95d8af29e2cbc88df666f365e51296f552292ef9753016 WHIRLPOOL 0aff265050876defa900303c152f643258dd26b9c1fd4abdd901a849fe96481b488cafdd834dbca73b769dff19971300b5ae4798e3286c17bc5b24f70beb7a83 |
26 |
|
27 |
diff --git a/net-dns/unbound/metadata.xml b/net-dns/unbound/metadata.xml |
28 |
index aa3ce165414..f12c6693d62 100644 |
29 |
--- a/net-dns/unbound/metadata.xml |
30 |
+++ b/net-dns/unbound/metadata.xml |
31 |
@@ -28,7 +28,7 @@ |
32 |
<use> |
33 |
<flag name="dnscrypt">Enable DNSCrypt support</flag> |
34 |
<flag name="dnstap">Enable dnstap support</flag> |
35 |
- <flag name="ecdsa">Enable ECDSA support</flag> |
36 |
+ <flag name="ecdsa">Enable ECDSA support</flag> |
37 |
<flag name="gost">Enable GOST support</flag> |
38 |
</use> |
39 |
</pkgmetadata> |
40 |
|
41 |
diff --git a/net-dns/unbound/unbound-1.6.6.ebuild b/net-dns/unbound/unbound-1.6.6.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..983c471e4d5 |
44 |
--- /dev/null |
45 |
+++ b/net-dns/unbound/unbound-1.6.6.ebuild |
46 |
@@ -0,0 +1,130 @@ |
47 |
+# Copyright 1999-2017 Gentoo Foundation |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=5 |
51 |
+PYTHON_COMPAT=( python2_7 ) |
52 |
+ |
53 |
+inherit eutils flag-o-matic multilib-minimal python-single-r1 systemd user |
54 |
+ |
55 |
+MY_P=${PN}-${PV/_/} |
56 |
+DESCRIPTION="A validating, recursive and caching DNS resolver" |
57 |
+HOMEPAGE="http://unbound.net/" |
58 |
+SRC_URI="http://unbound.net/downloads/${MY_P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="BSD GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" |
63 |
+IUSE="debug dnscrypt dnstap +ecdsa gost libressl python selinux static-libs systemd test threads" |
64 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
65 |
+ |
66 |
+# Note: expat is needed by executable only but the Makefile is custom |
67 |
+# and doesn't make it possible to easily install the library without |
68 |
+# the executables. MULTILIB_USEDEP may be dropped once build system |
69 |
+# is fixed. |
70 |
+ |
71 |
+CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] |
72 |
+ >=dev-libs/libevent-2.0.21:0=[${MULTILIB_USEDEP}] |
73 |
+ libressl? ( >=dev-libs/libressl-2.2.4:0[${MULTILIB_USEDEP}] ) |
74 |
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
75 |
+ dnscrypt? ( dev-libs/libsodium ) |
76 |
+ dnstap? ( |
77 |
+ dev-libs/fstrm[${MULTILIB_USEDEP}] |
78 |
+ >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}] |
79 |
+ ) |
80 |
+ ecdsa? ( |
81 |
+ !libressl? ( dev-libs/openssl:0[-bindist] ) |
82 |
+ ) |
83 |
+ python? ( ${PYTHON_DEPS} )" |
84 |
+ |
85 |
+DEPEND="${CDEPEND} |
86 |
+ python? ( dev-lang/swig ) |
87 |
+ test? ( |
88 |
+ net-dns/ldns-utils[examples] |
89 |
+ dev-util/splint |
90 |
+ app-text/wdiff |
91 |
+ ) |
92 |
+ systemd? ( sys-apps/systemd ) |
93 |
+ virtual/pkgconfig" |
94 |
+ |
95 |
+RDEPEND="${CDEPEND} |
96 |
+ selinux? ( sec-policy/selinux-bind )" |
97 |
+ |
98 |
+# bug #347415 |
99 |
+RDEPEND="${RDEPEND} |
100 |
+ net-dns/dnssec-root" |
101 |
+ |
102 |
+S=${WORKDIR}/${MY_P} |
103 |
+ |
104 |
+pkg_setup() { |
105 |
+ enewgroup unbound |
106 |
+ enewuser unbound -1 -1 /etc/unbound unbound |
107 |
+ |
108 |
+ use python && python-single-r1_pkg_setup |
109 |
+} |
110 |
+ |
111 |
+src_prepare() { |
112 |
+ # To avoid below error messages, set 'trust-anchor-file' to same value in |
113 |
+ # 'auto-trust-anchor-file'. |
114 |
+ # [23109:0] error: Could not open autotrust file for writing, |
115 |
+ # /etc/dnssec/root-anchors.txt: Permission denied |
116 |
+ epatch "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch |
117 |
+ |
118 |
+ # required for the python part |
119 |
+ multilib_copy_sources |
120 |
+} |
121 |
+ |
122 |
+src_configure() { |
123 |
+ [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack |
124 |
+ multilib-minimal_src_configure |
125 |
+} |
126 |
+ |
127 |
+multilib_src_configure() { |
128 |
+ econf \ |
129 |
+ $(use_enable debug) \ |
130 |
+ $(use_enable gost) \ |
131 |
+ $(use_enable dnscrypt) \ |
132 |
+ $(use_enable dnstap) \ |
133 |
+ $(use_enable ecdsa) \ |
134 |
+ $(use_enable static-libs static) \ |
135 |
+ $(use_enable systemd) \ |
136 |
+ $(multilib_native_use_with python pythonmodule) \ |
137 |
+ $(multilib_native_use_with python pyunbound) \ |
138 |
+ $(use_with threads pthreads) \ |
139 |
+ --disable-flto \ |
140 |
+ --disable-rpath \ |
141 |
+ --with-libevent="${EPREFIX}"/usr \ |
142 |
+ --with-pidfile="${EPREFIX}"/var/run/unbound.pid \ |
143 |
+ --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \ |
144 |
+ --with-ssl="${EPREFIX}"/usr \ |
145 |
+ --with-libexpat="${EPREFIX}"/usr |
146 |
+ |
147 |
+ # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html |
148 |
+ # $(use_enable debug lock-checks) \ |
149 |
+ # $(use_enable debug alloc-checks) \ |
150 |
+ # $(use_enable debug alloc-lite) \ |
151 |
+ # $(use_enable debug alloc-nonregional) \ |
152 |
+} |
153 |
+ |
154 |
+multilib_src_install_all() { |
155 |
+ prune_libtool_files --modules |
156 |
+ use python && python_optimize |
157 |
+ |
158 |
+ newinitd "${FILESDIR}"/unbound.initd unbound |
159 |
+ newconfd "${FILESDIR}"/unbound.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 |
+} |