Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/unbound: unbound-1.4.21-r1.ebuild ChangeLog
Date: Sat, 23 Nov 2013 08:49:32
Message-Id: 20131123084928.90F2C2004B@flycatcher.gentoo.org
1 pacho 13/11/23 08:49:28
2
3 Modified: ChangeLog
4 Added: unbound-1.4.21-r1.ebuild
5 Log:
6 Add unit file (#491712 by Emery Hemingway)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.63 net-dns/unbound/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 19 Nov 2013 21:31:15 -0000 1.62
24 +++ ChangeLog 23 Nov 2013 08:49:28 -0000 1.63
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-dns/unbound
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.62 2013/11/19 21:31:15 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/ChangeLog,v 1.63 2013/11/23 08:49:28 pacho Exp $
30 +
31 +*unbound-1.4.21-r1 (23 Nov 2013)
32 +
33 + 23 Nov 2013; Pacho Ramos <pacho@g.o> +files/unbound-anchor.service,
34 + +files/unbound.service, +files/unbound_at.service, +unbound-1.4.21-r1.ebuild:
35 + Add unit file (#491712 by Emery Hemingway)
36
37 19 Nov 2013; Tom Wijsman <TomWij@g.o> metadata.xml:
38 Added proxy-maintainers herd.
39
40
41
42 1.1 net-dns/unbound/unbound-1.4.21-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.4.21-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/unbound/unbound-1.4.21-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: unbound-1.4.21-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-dns/unbound/unbound-1.4.21-r1.ebuild,v 1.1 2013/11/23 08:49:28 pacho Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_6,2_7} )
55
56 inherit eutils flag-o-matic python-single-r1 systemd user
57
58 DESCRIPTION="A validating, recursive and caching DNS resolver"
59 HOMEPAGE="http://unbound.net/"
60 SRC_URI="http://unbound.net/downloads/${P}.tar.gz"
61
62 LICENSE="BSD GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x64-macos"
65 IUSE="debug gost python selinux static-libs test threads"
66 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
67
68 RDEPEND="dev-libs/expat
69 dev-libs/libevent
70 >=dev-libs/openssl-0.9.8
71 >=net-libs/ldns-1.6.13[ecdsa,ssl,gost?]
72 selinux? ( sec-policy/selinux-bind )"
73
74 DEPEND="${RDEPEND}
75 python? (
76 ${PYTHON_DEPS}
77 dev-lang/swig
78 )
79 test? (
80 net-dns/ldns-utils[examples]
81 dev-util/splint
82 app-text/wdiff
83 )"
84
85 # bug #347415
86 RDEPEND="${RDEPEND}
87 net-dns/dnssec-root"
88
89 pkg_setup() {
90 enewgroup unbound
91 enewuser unbound -1 -1 /etc/unbound unbound
92
93 use python && python-single-r1_pkg_setup
94 }
95
96 src_prepare() {
97 # To avoid below error messages, set 'trust-anchor-file' to same value in
98 # 'auto-trust-anchor-file'.
99 # [23109:0] error: Could not open autotrust file for writing,
100 # /etc/dnssec/root-anchors.txt: Permission denied
101 epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
102 }
103
104 src_configure() {
105 append-ldflags -Wl,-z,noexecstack
106 econf \
107 $(use_enable debug) \
108 $(use_enable gost) \
109 $(use_enable static-libs static) \
110 $(use_with python pythonmodule) \
111 $(use_with python pyunbound) \
112 $(use_with threads pthreads) \
113 --disable-rpath \
114 --enable-ecdsa \
115 --with-ldns="${EPREFIX}"/usr \
116 --with-libevent="${EPREFIX}"/usr \
117 --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
118 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt
119
120 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
121 # $(use_enable debug lock-checks) \
122 # $(use_enable debug alloc-checks) \
123 # $(use_enable debug alloc-lite) \
124 # $(use_enable debug alloc-nonregional) \
125 }
126
127 src_install() {
128 emake DESTDIR="${D}" install
129
130 # bug #299016
131 if use python ; then
132 find "${ED}" -name '_unbound.{la,a}' -delete || die
133 python_optimize
134 fi
135 if ! use static-libs ; then
136 find "${ED}" -name "*.la" -type f -delete || die
137 fi
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 }