Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/unbound/
Date: Fri, 14 Sep 2018 22:13:57
Message-Id: 1536962624.25ed7b7f7db8f153e58fe5c4ed8be892ea1487b3.whissi@gentoo
1 commit: 25ed7b7f7db8f153e58fe5c4ed8be892ea1487b3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 14 18:07:06 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 14 22:03:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25ed7b7f
7
8 net-dns/unbound: add USE=redis to enable cache db backend
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 net-dns/unbound/metadata.xml | 1 +
13 net-dns/unbound/unbound-1.8.0-r1.ebuild | 8 +++++---
14 2 files changed, 6 insertions(+), 3 deletions(-)
15
16 diff --git a/net-dns/unbound/metadata.xml b/net-dns/unbound/metadata.xml
17 index 58f5ae80fe7..01e8dfa9bcc 100644
18 --- a/net-dns/unbound/metadata.xml
19 +++ b/net-dns/unbound/metadata.xml
20 @@ -24,5 +24,6 @@
21 <flag name="dnstap">Enable dnstap support</flag>
22 <flag name="ecdsa">Enable ECDSA support</flag>
23 <flag name="gost">Enable GOST support</flag>
24 + <flag name="redis">Enable cache db backend which uses <pkg>dev-libs/hiredis</pkg></flag>
25 </use>
26 </pkgmetadata>
27
28 diff --git a/net-dns/unbound/unbound-1.8.0-r1.ebuild b/net-dns/unbound/unbound-1.8.0-r1.ebuild
29 index fe9085aac35..f544060754e 100644
30 --- a/net-dns/unbound/unbound-1.8.0-r1.ebuild
31 +++ b/net-dns/unbound/unbound-1.8.0-r1.ebuild
32 @@ -14,7 +14,7 @@ SRC_URI="https://nlnetlabs.nl/downloads/unbound/${MY_P}.tar.gz"
33 LICENSE="BSD GPL-2"
34 SLOT="0/8" # ABI version of libunbound.so
35 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
36 -IUSE="debug dnscrypt dnstap +ecdsa gost libressl python selinux static-libs systemd test threads"
37 +IUSE="debug dnscrypt dnstap +ecdsa gost libressl python redis selinux static-libs systemd test threads"
38 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
39
40 # Note: expat is needed by executable only but the Makefile is custom
41 @@ -34,7 +34,8 @@ CDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
42 ecdsa? (
43 !libressl? ( dev-libs/openssl:0[-bindist] )
44 )
45 - python? ( ${PYTHON_DEPS} )"
46 + python? ( ${PYTHON_DEPS} )
47 + redis? ( dev-libs/hiredis:= )"
48
49 BDEPEND="virtual/pkgconfig"
50
51 @@ -89,13 +90,13 @@ src_configure() {
52 }
53
54 multilib_src_configure() {
55 - # TODO: cachedb
56 econf \
57 $(use_enable debug) \
58 $(use_enable gost) \
59 $(use_enable dnscrypt) \
60 $(use_enable dnstap) \
61 $(use_enable ecdsa) \
62 + $(multilib_native_use_enable redis cachedb) \
63 $(use_enable static-libs static) \
64 $(use_enable systemd) \
65 $(multilib_native_use_with python pythonmodule) \
66 @@ -108,6 +109,7 @@ multilib_src_configure() {
67 --enable-tfo-client \
68 --enable-tfo-server \
69 --with-libevent="${EPREFIX%/}"/usr \
70 + $(multilib_native_usex redis --with-libhiredis="${EPREFIX%/}/usr" --without-libhiredis) \
71 --with-pidfile="${EPREFIX%/}"/var/run/unbound.pid \
72 --with-rootkey-file="${EPREFIX%/}"/etc/dnssec/root-anchors.txt \
73 --with-ssl="${EPREFIX%/}"/usr \