Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/unbound/
Date: Tue, 01 Nov 2016 23:46:16
Message-Id: 1478043959.3b5afc7704e38fd64140b59d12dbf7e0bd4843a9.robbat2@gentoo
1 commit: 3b5afc7704e38fd64140b59d12dbf7e0bd4843a9
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 23:45:41 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 23:45:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b5afc77
7
8 net-dns/unbound: version bump.
9
10 Package-Manager: portage-2.3.2
11
12 net-dns/unbound/Manifest | 1 +
13 net-dns/unbound/unbound-1.5.10.ebuild | 125 ++++++++++++++++++++++++++++++++++
14 2 files changed, 126 insertions(+)
15
16 diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest
17 index 417d5bd..52db21f 100644
18 --- a/net-dns/unbound/Manifest
19 +++ b/net-dns/unbound/Manifest
20 @@ -1,4 +1,5 @@
21 DIST unbound-1.5.1.tar.gz 4805176 SHA256 0ff82709fb2bd7ecbde8dbdcf60fa417d2b43379570a3d460193a76a169900ec SHA512 85d7069cf47709aceb7d9457c8befb1b327adfb098d8aa98082fc9bf710274e8ba86b56d796c86917639bb7e57ab5c40af1bc79090de038c6375be2c3877e0c4 WHIRLPOOL e23f7d399a1f01da5aec98ff0fa3b377e8a76789d237ceaf0e9146c96a97088716a0ec6c0f68f95f57af16743e73c1bc7209889a04a698bf7aa5d0706c7514f5
22 +DIST unbound-1.5.10.tar.gz 4941299 SHA256 a39b8b4fcca2a2b35a2daa53fe35150cc3f09038dc9acede09c912fc248a9486 SHA512 1c413886a12d4b626e03e076da6b9ccbcc8fd4769649fef8895eca74199bc22aec33c026e777524e8fe0327045a194f79b52282fe40674a9fb15cac58c4493f6 WHIRLPOOL 4e4ef7e4a89a6d8cd7b359a38cfb8a5cd99ea4e59a89ab894181b149346cf1e2875ec6b2af0985925cc50ff1c2f50fbfe569569ead2913127631781003c84742
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 DIST unbound-1.5.9.tar.gz 4924965 SHA256 01328cfac99ab5b8c47115151896a244979e442e284eb962c0ea84b7782b6990 SHA512 a0f43a22d2c357b78482e5049fd77b100966964d861536169bd79379c02b96651e52c47f3f5001ac8e1ca474d41f784395adb44b61157487723f9f15287c97f4 WHIRLPOOL ccfeadbff8a450d431286d09b9c5bbcb40f53878ff33a3c36200485b5863279779bed55c1307586f59e5ccd7594f038e3b991bff401546b4969d564aa230b37d
26
27 diff --git a/net-dns/unbound/unbound-1.5.10.ebuild b/net-dns/unbound/unbound-1.5.10.ebuild
28 new file mode 100644
29 index 00000000..040c219
30 --- /dev/null
31 +++ b/net-dns/unbound/unbound-1.5.10.ebuild
32 @@ -0,0 +1,125 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +PYTHON_COMPAT=( python2_7 )
39 +
40 +inherit eutils 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="http://unbound.net/"
45 +SRC_URI="http://unbound.net/downloads/${MY_P}.tar.gz"
46 +
47 +LICENSE="BSD GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
50 +IUSE="debug dnstap +ecdsa gost libressl python selinux static-libs test threads"
51 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
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=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
59 + >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
60 + libressl? ( >=dev-libs/libressl-2.2.4:0[${MULTILIB_USEDEP}] )
61 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${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 +
71 +DEPEND="${CDEPEND}
72 + python? ( dev-lang/swig )
73 + test? (
74 + net-dns/ldns-utils[examples]
75 + dev-util/splint
76 + app-text/wdiff
77 + )"
78 +
79 +RDEPEND="${CDEPEND}
80 + selinux? ( sec-policy/selinux-bind )"
81 +
82 +# bug #347415
83 +RDEPEND="${RDEPEND}
84 + net-dns/dnssec-root"
85 +
86 +S=${WORKDIR}/${MY_P}
87 +
88 +pkg_setup() {
89 + enewgroup unbound
90 + enewuser unbound -1 -1 /etc/unbound unbound
91 +
92 + use python && python-single-r1_pkg_setup
93 +}
94 +
95 +src_prepare() {
96 + # To avoid below error messages, set 'trust-anchor-file' to same value in
97 + # 'auto-trust-anchor-file'.
98 + # [23109:0] error: Could not open autotrust file for writing,
99 + # /etc/dnssec/root-anchors.txt: Permission denied
100 + epatch "${FILESDIR}"/${PN}-1.5.7-trust-anchor-file.patch
101 +
102 + # required for the python part
103 + multilib_copy_sources
104 +}
105 +
106 +src_configure() {
107 + [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
108 + multilib-minimal_src_configure
109 +}
110 +
111 +multilib_src_configure() {
112 + econf \
113 + $(use_enable debug) \
114 + $(use_enable gost) \
115 + $(use_enable dnstap) \
116 + $(use_enable ecdsa) \
117 + $(use_enable static-libs static) \
118 + $(multilib_native_use_with python pythonmodule) \
119 + $(multilib_native_use_with python pyunbound) \
120 + $(use_with threads pthreads) \
121 + --disable-flto \
122 + --disable-rpath \
123 + --with-libevent="${EPREFIX}"/usr \
124 + --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
125 + --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
126 + --with-ssl="${EPREFIX}"/usr \
127 + --with-libexpat="${EPREFIX}"/usr
128 +
129 + # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
130 + # $(use_enable debug lock-checks) \
131 + # $(use_enable debug alloc-checks) \
132 + # $(use_enable debug alloc-lite) \
133 + # $(use_enable debug alloc-nonregional) \
134 +}
135 +
136 +multilib_src_install_all() {
137 + prune_libtool_files --modules
138 + use python && python_optimize
139 +
140 + newinitd "${FILESDIR}"/unbound.initd unbound
141 + newconfd "${FILESDIR}"/unbound.confd unbound
142 +
143 + systemd_dounit "${FILESDIR}"/unbound.service
144 + systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
145 + systemd_dounit "${FILESDIR}"/unbound-anchor.service
146 +
147 + dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
148 +
149 + # bug #315519
150 + dodoc contrib/unbound_munin_
151 +
152 + docinto selinux
153 + dodoc contrib/selinux/*
154 +
155 + exeinto /usr/share/${PN}
156 + doexe contrib/update-anchor.sh
157 +}