Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/unbound/
Date: Mon, 07 Dec 2015 00:02:21
Message-Id: 1449446387.3277010400cb93d74767b95877d8e11df5623885.mschiff@gentoo
1 commit: 3277010400cb93d74767b95877d8e11df5623885
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 6 23:59:47 2015 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 6 23:59:47 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32770104
7
8 net-dns/unbound: bump version
9
10 Package-Manager: portage-2.2.26
11
12 net-dns/unbound/Manifest | 1 +
13 net-dns/unbound/unbound-1.5.6.ebuild | 122 +++++++++++++++++++++++++++++++++++
14 2 files changed, 123 insertions(+)
15
16 diff --git a/net-dns/unbound/Manifest b/net-dns/unbound/Manifest
17 index e52eac0..dc6f152 100644
18 --- a/net-dns/unbound/Manifest
19 +++ b/net-dns/unbound/Manifest
20 @@ -1,3 +1,4 @@
21 DIST unbound-1.4.22.tar.gz 4735801 SHA256 1caf5081b2190ecdb23fc4d998b7999e28640c941f53baff7aee03c092a7d29f SHA512 0593cad3966f24f76b93bbc9c906c096c645e9360a57034c5ed4f04baeaa021eb9169a8e9cd0a98651c7a564d9feda8b9490e3b87ad469f6ce1dd1fcb05d9974 WHIRLPOOL 4de27d6c4548c46c83b95a7f21efd8d75898ddb92e3af84fbd1d07a39e29a121e593ddbf13676f914d4ee428942bf345c9b93937165725ece5031fc67ab9eacc
22 DIST unbound-1.5.1.tar.gz 4805176 SHA256 0ff82709fb2bd7ecbde8dbdcf60fa417d2b43379570a3d460193a76a169900ec SHA512 85d7069cf47709aceb7d9457c8befb1b327adfb098d8aa98082fc9bf710274e8ba86b56d796c86917639bb7e57ab5c40af1bc79090de038c6375be2c3877e0c4 WHIRLPOOL e23f7d399a1f01da5aec98ff0fa3b377e8a76789d237ceaf0e9146c96a97088716a0ec6c0f68f95f57af16743e73c1bc7209889a04a698bf7aa5d0706c7514f5
23 DIST unbound-1.5.4.tar.gz 4844273 SHA256 a1e1c1a578cf8447cb51f6033714035736a0f04444854a983123c094cc6fb137 SHA512 af8032b09ce75bb1aefab31ce5583c0fa8aaca544e13d6d7eaea8e44a940b1797397951f06f453ef80653038b5966d6053ddeb79818a66825925186ee351c65c WHIRLPOOL 874bca4abe3ea246cfccd6f4bb8084026b82d1d1868aa365f1bc6075c2c625fb517f46f9c8282f1bc030f759bd0d0b26582e4288cf1a2cd7d88212a38590723d
24 +DIST unbound-1.5.6.tar.gz 4849569 SHA256 ad3823f5895f59da9e408ea273fcf81d8a76914c18864fba256d7f140b83e404 SHA512 2477e3f00b8f5a3a4661ff20b0bc0d1d56c8a65cc6ab9f1308ae86f41c67a998af68d3ac5ba6c9c22a25a251f0410eaf9fee82911bcb3a3e82ffb6383e28dcf7 WHIRLPOOL 72fd050bd49422783014549b4764f6279be7d4deec50ccf2a97e6cc2592f79d69a3f823ed0849dc3f685908c60234386820e01bde43d5db4c6c616e5e2dee44b
25
26 diff --git a/net-dns/unbound/unbound-1.5.6.ebuild b/net-dns/unbound/unbound-1.5.6.ebuild
27 new file mode 100644
28 index 0000000..9c2564c
29 --- /dev/null
30 +++ b/net-dns/unbound/unbound-1.5.6.ebuild
31 @@ -0,0 +1,122 @@
32 +# Copyright 1999-2015 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 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 + >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}]
60 + dnstap? (
61 + dev-libs/fstrm[${MULTILIB_USEDEP}]
62 + >=dev-libs/protobuf-c-1.0.2-r1[${MULTILIB_USEDEP}]
63 + )
64 + ecdsa? ( dev-libs/openssl:0[-bindist] )
65 + python? ( ${PYTHON_DEPS} )"
66 +
67 +DEPEND="${CDEPEND}
68 + python? ( dev-lang/swig )
69 + test? (
70 + net-dns/ldns-utils[examples]
71 + dev-util/splint
72 + app-text/wdiff
73 + )"
74 +
75 +RDEPEND="${CDEPEND}
76 + selinux? ( sec-policy/selinux-bind )"
77 +
78 +# bug #347415
79 +RDEPEND="${RDEPEND}
80 + net-dns/dnssec-root"
81 +
82 +S=${WORKDIR}/${MY_P}
83 +
84 +pkg_setup() {
85 + enewgroup unbound
86 + enewuser unbound -1 -1 /etc/unbound unbound
87 +
88 + use python && python-single-r1_pkg_setup
89 +}
90 +
91 +src_prepare() {
92 + # To avoid below error messages, set 'trust-anchor-file' to same value in
93 + # 'auto-trust-anchor-file'.
94 + # [23109:0] error: Could not open autotrust file for writing,
95 + # /etc/dnssec/root-anchors.txt: Permission denied
96 + epatch "${FILESDIR}"/${PN}-1.4.12-gentoo.patch
97 +
98 + # required for the python part
99 + multilib_copy_sources
100 +}
101 +
102 +src_configure() {
103 + [[ ${CHOST} == *-darwin* ]] || append-ldflags -Wl,-z,noexecstack
104 + multilib-minimal_src_configure
105 +}
106 +
107 +multilib_src_configure() {
108 + econf \
109 + $(use_enable debug) \
110 + $(use_enable gost) \
111 + $(use_enable dnstap) \
112 + $(use_enable ecdsa) \
113 + $(use_enable static-libs static) \
114 + $(multilib_native_use_with python pythonmodule) \
115 + $(multilib_native_use_with python pyunbound) \
116 + $(use_with threads pthreads) \
117 + --disable-flto \
118 + --disable-rpath \
119 + --with-libevent="${EPREFIX}"/usr \
120 + --with-pidfile="${EPREFIX}"/var/run/unbound.pid \
121 + --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
122 + --with-ssl="${EPREFIX}"/usr \
123 + --with-libexpat="${EPREFIX}"/usr
124 +
125 + # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
126 + # $(use_enable debug lock-checks) \
127 + # $(use_enable debug alloc-checks) \
128 + # $(use_enable debug alloc-lite) \
129 + # $(use_enable debug alloc-nonregional) \
130 +}
131 +
132 +multilib_src_install_all() {
133 + prune_libtool_files --modules
134 + use python && python_optimize
135 +
136 + newinitd "${FILESDIR}"/unbound.initd unbound
137 + newconfd "${FILESDIR}"/unbound.confd unbound
138 +
139 + systemd_dounit "${FILESDIR}"/unbound.service
140 + systemd_newunit "${FILESDIR}"/unbound_at.service "unbound@.service"
141 + systemd_dounit "${FILESDIR}"/unbound-anchor.service
142 +
143 + dodoc doc/{README,CREDITS,TODO,Changelog,FEATURES}
144 +
145 + # bug #315519
146 + dodoc contrib/unbound_munin_
147 +
148 + docinto selinux
149 + dodoc contrib/selinux/*
150 +
151 + exeinto /usr/share/${PN}
152 + doexe contrib/update-anchor.sh
153 +}