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-libs/ldns/
Date: Sun, 29 Sep 2019 13:50:23
Message-Id: 1569764988.93a05d4dbdf7cb7b00a1057b337a2c043318ee21.mschiff@gentoo
1 commit: 93a05d4dbdf7cb7b00a1057b337a2c043318ee21
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 27 11:44:25 2019 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 13:49:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93a05d4d
7
8 net-libs/ldns: disable dane-ta with USE=libressl
9
10 fixes #695640
11
12 Package-Manager: Portage-2.3.66, Repoman-2.3.16
13 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
14
15 net-libs/ldns/ldns-1.7.1-r1.ebuild | 113 +++++++++++++++++++++++++++++++++++++
16 1 file changed, 113 insertions(+)
17
18 diff --git a/net-libs/ldns/ldns-1.7.1-r1.ebuild b/net-libs/ldns/ldns-1.7.1-r1.ebuild
19 new file mode 100644
20 index 00000000000..62d260df249
21 --- /dev/null
22 +++ b/net-libs/ldns/ldns-1.7.1-r1.ebuild
23 @@ -0,0 +1,113 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +PYTHON_COMPAT=( python2_7 python3_5 )
29 +inherit eutils multilib-minimal python-single-r1
30 +
31 +DESCRIPTION="a library with the aim to simplify DNS programming in C"
32 +HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/"
33 +SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris"
38 +IUSE="+dane doc +ecdsa ed25519 ed448 gost libressl python static-libs vim-syntax"
39 +
40 +# configure will die if ecdsa is enabled and ssl is not
41 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
42 +
43 +RDEPEND="
44 + python? ( ${PYTHON_DEPS} )
45 + ecdsa? (
46 + !libressl? ( >=dev-libs/openssl-1.0.1e:0=[-bindist,${MULTILIB_USEDEP}] )
47 + )
48 + ed25519? (
49 + !libressl? ( >=dev-libs/openssl-1.1.0:0=[-bindist,${MULTILIB_USEDEP}] )
50 + )
51 + ed448? (
52 + !libressl? ( >=dev-libs/openssl-1.1.1:0=[-bindist,${MULTILIB_USEDEP}] )
53 + )
54 + !libressl? ( >=dev-libs/openssl-1.0.1e:0=[${MULTILIB_USEDEP}] )
55 + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
56 +"
57 +DEPEND="${RDEPEND}
58 + python? ( dev-lang/swig )
59 + doc? ( app-doc/doxygen )
60 +"
61 +
62 +RESTRICT="test" # 1.6.9 has no test directory
63 +
64 +MULTILIB_CHOST_TOOLS=(
65 + /usr/bin/ldns-config
66 +)
67 +
68 +pkg_setup() {
69 + use python && python-single-r1_pkg_setup
70 +}
71 +
72 +multilib_src_configure() {
73 + # >=openssl-1.1.0 required for dane-ta
74 + if has_version "<dev-libs/openssl-1.1.0" || use libressl; then
75 + local dane_ta_usage="--disable-dane-ta-usage"
76 + else
77 + local dane_ta_usage=""
78 + fi
79 +
80 + ECONF_SOURCE=${S} \
81 + econf \
82 + $(use_enable static-libs static) \
83 + $(use_enable gost) \
84 + $(use_enable ecdsa) \
85 + $(use_enable ed25519) \
86 + $(use_enable ed448) \
87 + $(use_enable dane) \
88 + $(multilib_native_use_with python pyldns) \
89 + $(multilib_native_use_with python pyldnsx) \
90 + --with-ssl="${EPREFIX}"/usr \
91 + --enable-sha2 \
92 + --without-drill \
93 + --without-examples \
94 + $dane_ta_usage \
95 + --disable-rpath
96 +}
97 +
98 +src_prepare() {
99 + default
100 + #epatch "${FILESDIR}/${P}-CVE-2017-1000231.patch"
101 + #epatch "${FILESDIR}/${P}-CVE-2017-1000232.patch"
102 + # remove non-existing dependency for target packaging/libldns.pc
103 + sed -i 's,packaging/libldns.pc.in,,' "${S}"/Makefile.in || die 'could not patch Makefile.in'
104 +}
105 +
106 +multilib_src_compile() {
107 + default
108 +
109 + if multilib_is_native_abi && use doc ; then
110 + emake doxygen
111 + fi
112 +}
113 +
114 +multilib_src_install() {
115 + default
116 +
117 + if multilib_is_native_abi && use doc ; then
118 + dohtml -r doc/html/.
119 + fi
120 +}
121 +
122 +multilib_src_install_all() {
123 + dodoc Changelog README*
124 +
125 + prune_libtool_files --modules
126 + use python && python_optimize
127 +
128 + if use vim-syntax ; then
129 + insinto /usr/share/vim/vimfiles/ftdetect
130 + doins libdns.vim
131 + fi
132 +
133 + einfo
134 + elog "Install net-dns/ldns-utils if you want drill and examples"
135 + einfo
136 +}