1 |
commit: ba1d338b6dc1b5a99dbfe4723d1f9c276ebf99fe |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 21:39:45 2016 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 21:43:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba1d338b |
7 |
|
8 |
net-dns/unbound: Bum version. Fixes #581566 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-dns/unbound/Manifest | 1 + |
13 |
net-dns/unbound/unbound-1.5.8.ebuild | 125 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 126 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest |
17 |
index df4c6d0..5ac1abf 100644 |
18 |
--- a/net-dns/unbound/Manifest |
19 |
+++ b/net-dns/unbound/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST unbound-1.4.22.tar.gz 4735801 SHA256 1caf5081b2190ecdb23fc4d998b7999e28640c |
21 |
DIST unbound-1.5.1.tar.gz 4805176 SHA256 0ff82709fb2bd7ecbde8dbdcf60fa417d2b43379570a3d460193a76a169900ec SHA512 85d7069cf47709aceb7d9457c8befb1b327adfb098d8aa98082fc9bf710274e8ba86b56d796c86917639bb7e57ab5c40af1bc79090de038c6375be2c3877e0c4 WHIRLPOOL e23f7d399a1f01da5aec98ff0fa3b377e8a76789d237ceaf0e9146c96a97088716a0ec6c0f68f95f57af16743e73c1bc7209889a04a698bf7aa5d0706c7514f5 |
22 |
DIST unbound-1.5.6.tar.gz 4849569 SHA256 ad3823f5895f59da9e408ea273fcf81d8a76914c18864fba256d7f140b83e404 SHA512 2477e3f00b8f5a3a4661ff20b0bc0d1d56c8a65cc6ab9f1308ae86f41c67a998af68d3ac5ba6c9c22a25a251f0410eaf9fee82911bcb3a3e82ffb6383e28dcf7 WHIRLPOOL 72fd050bd49422783014549b4764f6279be7d4deec50ccf2a97e6cc2592f79d69a3f823ed0849dc3f685908c60234386820e01bde43d5db4c6c616e5e2dee44b |
23 |
DIST unbound-1.5.7.tar.gz 4859573 SHA256 4b2088e5aa81a2d48f6337c30c1cf7e99b2e2dc4f92e463b3bee626eee731ca8 SHA512 7fc000364139519ed837ef9883f2e8a684b5ac19f2d3343626ab0a4c3459a7c3ccf2c79e9d992d82b123c6a38245fc286994365b427145d218e0b3c645c4dc4f WHIRLPOOL 9b2d18f09f46bed5da9818f5df0acbcc6d4a166943bbdb617494081614aa9b75a03ed0425679f40265f70e34ed66e01302182ec4050f0bb1f034fa5db28340f3 |
24 |
+DIST unbound-1.5.8.tar.gz 4895649 SHA256 33567a20f73e288f8daa4ec021fbb30fe1824b346b34f12677ad77899ecd09be SHA512 0c296a2e5489fae0fdf0ca2ea11ed72f00498c8499f38f308ff32078665d980a2d5a80ee0e106273dc13a146611a238553857c5f301fe9622072382c06b8434a WHIRLPOOL ca977c88e5dcca80d11a3cf769e002f61b8c6145dea2a79a9d0c142396ff2f19b3452546627ced79e9af74fed3ac2ff72ca9f6fc2395e477076959fef77bd3b1 |
25 |
|
26 |
diff --git a/net-dns/unbound/unbound-1.5.8.ebuild b/net-dns/unbound/unbound-1.5.8.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..040c219 |
29 |
--- /dev/null |
30 |
+++ b/net-dns/unbound/unbound-1.5.8.ebuild |
31 |
@@ -0,0 +1,125 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+ |
39 |
+inherit eutils 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="http://unbound.net/" |
44 |
+SRC_URI="http://unbound.net/downloads/${MY_P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" |
49 |
+IUSE="debug dnstap +ecdsa gost libressl python selinux static-libs 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[${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 |
+ dnstap? ( |
62 |
+ dev-libs/fstrm[${MULTILIB_USEDEP}] |
63 |
+ >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}] |
64 |
+ ) |
65 |
+ ecdsa? ( |
66 |
+ !libressl? ( dev-libs/openssl:0[-bindist] ) |
67 |
+ ) |
68 |
+ python? ( ${PYTHON_DEPS} )" |
69 |
+ |
70 |
+DEPEND="${CDEPEND} |
71 |
+ python? ( dev-lang/swig ) |
72 |
+ test? ( |
73 |
+ net-dns/ldns-utils[examples] |
74 |
+ dev-util/splint |
75 |
+ app-text/wdiff |
76 |
+ )" |
77 |
+ |
78 |
+RDEPEND="${CDEPEND} |
79 |
+ selinux? ( sec-policy/selinux-bind )" |
80 |
+ |
81 |
+# bug #347415 |
82 |
+RDEPEND="${RDEPEND} |
83 |
+ net-dns/dnssec-root" |
84 |
+ |
85 |
+S=${WORKDIR}/${MY_P} |
86 |
+ |
87 |
+pkg_setup() { |
88 |
+ enewgroup unbound |
89 |
+ enewuser unbound -1 -1 /etc/unbound unbound |
90 |
+ |
91 |
+ use python && python-single-r1_pkg_setup |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ # To avoid below error messages, set 'trust-anchor-file' to same value in |
96 |
+ # 'auto-trust-anchor-file'. |
97 |
+ # [23109:0] error: Could not open autotrust file for writing, |
98 |
+ # /etc/dnssec/root-anchors.txt: Permission denied |
99 |
+ epatch "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch |
100 |
+ |
101 |
+ # required for the python part |
102 |
+ multilib_copy_sources |
103 |
+} |
104 |
+ |
105 |
+src_configure() { |
106 |
+ [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack |
107 |
+ multilib-minimal_src_configure |
108 |
+} |
109 |
+ |
110 |
+multilib_src_configure() { |
111 |
+ econf \ |
112 |
+ $(use_enable debug) \ |
113 |
+ $(use_enable gost) \ |
114 |
+ $(use_enable dnstap) \ |
115 |
+ $(use_enable ecdsa) \ |
116 |
+ $(use_enable static-libs static) \ |
117 |
+ $(multilib_native_use_with python pythonmodule) \ |
118 |
+ $(multilib_native_use_with python pyunbound) \ |
119 |
+ $(use_with threads pthreads) \ |
120 |
+ --disable-flto \ |
121 |
+ --disable-rpath \ |
122 |
+ --with-libevent="${EPREFIX}"/usr \ |
123 |
+ --with-pidfile="${EPREFIX}"/var/run/unbound.pid \ |
124 |
+ --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \ |
125 |
+ --with-ssl="${EPREFIX}"/usr \ |
126 |
+ --with-libexpat="${EPREFIX}"/usr |
127 |
+ |
128 |
+ # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html |
129 |
+ # $(use_enable debug lock-checks) \ |
130 |
+ # $(use_enable debug alloc-checks) \ |
131 |
+ # $(use_enable debug alloc-lite) \ |
132 |
+ # $(use_enable debug alloc-nonregional) \ |
133 |
+} |
134 |
+ |
135 |
+multilib_src_install_all() { |
136 |
+ prune_libtool_files --modules |
137 |
+ use python && python_optimize |
138 |
+ |
139 |
+ newinitd "${FILESDIR}"/unbound.initd unbound |
140 |
+ newconfd "${FILESDIR}"/unbound.confd unbound |
141 |
+ |
142 |
+ systemd_dounit "${FILESDIR}"/unbound.service |
143 |
+ systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service" |
144 |
+ systemd_dounit "${FILESDIR}"/unbound-anchor.service |
145 |
+ |
146 |
+ dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES} |
147 |
+ |
148 |
+ # bug #315519 |
149 |
+ dodoc contrib/unbound_munin_ |
150 |
+ |
151 |
+ docinto selinux |
152 |
+ dodoc contrib/selinux/* |
153 |
+ |
154 |
+ exeinto /usr/share/${PN} |
155 |
+ doexe contrib/update-anchor.sh |
156 |
+} |