Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/unbound: metadata.xml ChangeLog unbound-1.5.0-r1.ebuild
Date: Sun, 30 Nov 2014 23:25:58
Message-Id: 20141130232553.210BD7D18@oystercatcher.gentoo.org
1 radhermit 14/11/30 23:25:53
2
3 Modified: metadata.xml ChangeLog
4 Added: unbound-1.5.0-r1.ebuild
5 Log:
6 Add ecdsa use flag to support openssl compiled with bindist enabled (bug #531256).
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.12 net-dns/unbound/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/metadata.xml?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/metadata.xml?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/metadata.xml?r1=1.11&r2=1.12
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/unbound/metadata.xml,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- metadata.xml 27 Nov 2014 18:36:35 -0000 1.11
24 +++ metadata.xml 30 Nov 2014 23:25:53 -0000 1.12
25 @@ -24,6 +24,7 @@
26 </longdescription>
27 <use>
28 <flag name='dnstap'>Enable dnstap support</flag>
29 + <flag name='ecdsa'>Enable ECDSA support</flag>
30 <flag name='gost'>Enable GOST support</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.79 net-dns/unbound/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.79&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.79&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?r1=1.78&r2=1.79
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v
45 retrieving revision 1.78
46 retrieving revision 1.79
47 diff -u -r1.78 -r1.79
48 --- ChangeLog 29 Nov 2014 12:47:20 -0000 1.78
49 +++ ChangeLog 30 Nov 2014 23:25:53 -0000 1.79
50 @@ -1,6 +1,13 @@
51 # ChangeLog for net-dns/unbound
52 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.78 2014/11/29 12:47:20 jer Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.79 2014/11/30 23:25:53 radhermit Exp $
55 +
56 +*unbound-1.5.0-r1 (30 Nov 2014)
57 +
58 + 30 Nov 2014; Tim Harder <radhermit@g.o> +unbound-1.5.0-r1.ebuild,
59 + metadata.xml:
60 + Add ecdsa use flag to support openssl compiled with bindist enabled (bug
61 + #531256).
62
63 29 Nov 2014; Jeroen Roovers <jer@g.o> unbound-1.5.0.ebuild:
64 Marked ~hppa (bug #531068).
65
66
67
68 1.1 net-dns/unbound/unbound-1.5.0-r1.ebuild
69
70 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.5.0-r1.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.5.0-r1.ebuild?rev=1.1&content-type=text/plain
72
73 Index: unbound-1.5.0-r1.ebuild
74 ===================================================================
75 # Copyright 1999-2014 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/unbound-1.5.0-r1.ebuild,v 1.1 2014/11/30 23:25:53 radhermit Exp $
78
79 EAPI=5
80 PYTHON_COMPAT=( python2_7 )
81
82 inherit eutils flag-o-matic multilib-minimal python-single-r1 systemd user
83
84 DESCRIPTION="A validating, recursive and caching DNS resolver"
85 HOMEPAGE="http://unbound.net/"
86 SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
87
88 LICENSE="BSD GPL-2"
89 SLOT="0"
90 KEYWORDS="~amd64 ~hppa ~x86"
91 IUSE="debug dnstap +ecdsa gost python selinux static-libs test threads"
92 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
93
94 # Note: expat is needed by executable only but the Makefile is custom
95 # and doesn't make it possible to easily install the library without
96 # the executables. MULTILIB_USEDEP may be dropped once build system
97 # is fixed.
98
99 CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
100 >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
101 >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}]
102 dnstap? (
103 dev-libs/fstrm[${MULTILIB_USEDEP}]
104 >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}]
105 )
106 ecdsa? ( >=dev-libs/openssl-1.0.1h-r2[-bindist,${MULTILIB_USEDEP}] )
107 python? ( ${PYTHON_DEPS} )"
108
109 DEPEND="${CDEPEND}
110 python? ( dev-lang/swig )
111 test? (
112 net-dns/ldns-utils[examples]
113 dev-util/splint
114 app-text/wdiff
115 )"
116
117 RDEPEND="${CDEPEND}
118 selinux? ( sec-policy/selinux-bind )"
119
120 # bug #347415
121 RDEPEND="${RDEPEND}
122 net-dns/dnssec-root"
123
124 pkg_setup() {
125 enewgroup unbound
126 enewuser unbound -1 -1 /etc/unbound unbound
127
128 use python && python-single-r1_pkg_setup
129 }
130
131 src_prepare() {
132 # To avoid below error messages, set 'trust-anchor-file' to same value in
133 # 'auto-trust-anchor-file'.
134 # [23109:0] error: Could not open autotrust file for writing,
135 # /etc/dnssec/root-anchors.txt: Permission denied
136 epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
137
138 # required for the python part
139 multilib_copy_sources
140 }
141
142 src_configure() {
143 [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
144 multilib-minimal_src_configure
145 }
146
147 multilib_src_configure() {
148 econf \
149 $(use_enable debug) \
150 $(use_enable gost) \
151 $(use_enable dnstap) \
152 $(use_enable ecdsa) \
153 $(use_enable static-libs static) \
154 $(multilib_native_use_with python pythonmodule) \
155 $(multilib_native_use_with python pyunbound) \
156 $(use_with threads pthreads) \
157 --disable-rpath \
158 --with-libevent="${EPREFIX}"/usr \
159 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
160 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
161 --with-ssl="${EPREFIX}"/usr \
162 --with-libexpat="${EPREFIX}"/usr
163
164 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
165 # $(use_enable debug lock-checks) \
166 # $(use_enable debug alloc-checks) \
167 # $(use_enable debug alloc-lite) \
168 # $(use_enable debug alloc-nonregional) \
169 }
170
171 multilib_src_install_all() {
172 prune_libtool_files --modules
173 use python && python_optimize
174
175 newinitd "${FILESDIR}"/unbound.initd unbound
176 newconfd "${FILESDIR}"/unbound.confd unbound
177
178 systemd_dounit "${FILESDIR}"/unbound.service
179 systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
180 systemd_dounit "${FILESDIR}"/unbound-anchor.service
181
182 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
183
184 # bug #315519
185 dodoc contrib/unbound_munin_
186
187 docinto selinux
188 dodoc contrib/selinux/*
189
190 exeinto /usr/share/${PN}
191 doexe contrib/update-anchor.sh
192 }