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: ChangeLog unbound-1.4.22-r1.ebuild unbound-1.4.22.ebuild
Date: Sat, 27 Sep 2014 00:13:08
Message-Id: 20140927001303.4AC9165D1@oystercatcher.gentoo.org
1 radhermit 14/09/27 00:13:03
2
3 Modified: ChangeLog
4 Added: unbound-1.4.22-r1.ebuild
5 Removed: unbound-1.4.22.ebuild
6 Log:
7 Remove ldns dep since it's bundled and locally modified now.
8
9 (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)
10
11 Revision Changes Path
12 1.73 net-dns/unbound/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.73&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.73&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?r1=1.72&r2=1.73
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v
21 retrieving revision 1.72
22 retrieving revision 1.73
23 diff -u -r1.72 -r1.73
24 --- ChangeLog 21 Aug 2014 14:23:59 -0000 1.72
25 +++ ChangeLog 27 Sep 2014 00:13:03 -0000 1.73
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-dns/unbound
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.72 2014/08/21 14:23:59 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.73 2014/09/27 00:13:03 radhermit Exp $
31 +
32 +*unbound-1.4.22-r1 (27 Sep 2014)
33 +
34 + 27 Sep 2014; Tim Harder <radhermit@g.o> -unbound-1.4.22.ebuild,
35 + +unbound-1.4.22-r1.ebuild:
36 + Remove ldns dep since it's bundled and locally modified now.
37
38 21 Aug 2014; Raúl Porcel <armin76@g.o> unbound-1.4.19.ebuild,
39 unbound-1.4.20.ebuild, unbound-1.4.21.ebuild, unbound-1.4.21-r1.ebuild,
40
41
42
43 1.1 net-dns/unbound/unbound-1.4.22-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.4.22-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.4.22-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: unbound-1.4.22-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/unbound-1.4.22-r1.ebuild,v 1.1 2014/09/27 00:13:03 radhermit Exp $
53
54 EAPI=5
55 PYTHON_COMPAT=( python{2_6,2_7} )
56
57 inherit eutils flag-o-matic multilib-minimal python-single-r1 systemd user
58
59 DESCRIPTION="A validating, recursive and caching DNS resolver"
60 HOMEPAGE="http://unbound.net/"
61 SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
62
63 LICENSE="BSD GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos"
66 IUSE="debug gost python selinux static-libs test threads"
67 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
68
69 # Note: expat is needed by executable only but the Makefile is custom
70 # and doesn't make it possible to easily install the library without
71 # the executables. MULTILIB_USEDEP may be dropped once build system
72 # is fixed.
73
74 RDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
75 >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
76 >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}]
77 python? ( ${PYTHON_DEPS} )
78 selinux? ( sec-policy/selinux-bind )"
79
80 DEPEND="${RDEPEND}
81 python? ( dev-lang/swig )
82 test? (
83 net-dns/ldns-utils[examples]
84 dev-util/splint
85 app-text/wdiff
86 )"
87
88 # bug #347415
89 RDEPEND="${RDEPEND}
90 net-dns/dnssec-root"
91
92 pkg_setup() {
93 enewgroup unbound
94 enewuser unbound -1 -1 /etc/unbound unbound
95
96 use python && python-single-r1_pkg_setup
97 }
98
99 src_prepare() {
100 # To avoid below error messages, set 'trust-anchor-file' to same value in
101 # 'auto-trust-anchor-file'.
102 # [23109:0] error: Could not open autotrust file for writing,
103 # /etc/dnssec/root-anchors.txt: Permission denied
104 epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
105
106 # required for the python part
107 multilib_copy_sources
108 }
109
110 src_configure() {
111 [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
112 multilib-minimal_src_configure
113 }
114
115 multilib_src_configure() {
116 econf \
117 $(use_enable debug) \
118 $(use_enable gost) \
119 $(use_enable static-libs static) \
120 $(multilib_native_use_with python pythonmodule) \
121 $(multilib_native_use_with python pyunbound) \
122 $(use_with threads pthreads) \
123 --disable-rpath \
124 --enable-ecdsa \
125 --with-libevent="${EPREFIX}"/usr \
126 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
127 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
128 --with-ssl="${EPREFIX}"/usr \
129 --with-libexpat="${EPREFIX}"/usr
130
131 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
132 # $(use_enable debug lock-checks) \
133 # $(use_enable debug alloc-checks) \
134 # $(use_enable debug alloc-lite) \
135 # $(use_enable debug alloc-nonregional) \
136 }
137
138 multilib_src_install_all() {
139 prune_libtool_files --modules
140 use python && python_optimize
141
142 newinitd "${FILESDIR}"/unbound.initd unbound
143 newconfd "${FILESDIR}"/unbound.confd unbound
144
145 systemd_dounit "${FILESDIR}"/unbound.service
146 systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
147 systemd_dounit "${FILESDIR}"/unbound-anchor.service
148
149 dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
150
151 # bug #315519
152 dodoc contrib/unbound_munin_
153
154 docinto selinux
155 dodoc contrib/selinux/*
156
157 exeinto /usr/share/${PN}
158 doexe contrib/update-anchor.sh
159 }