1 |
commit: bf9f308f9bdad8626aae6c13b9edad06b2e43ce5 |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 10 21:13:42 2017 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 10 21:15:12 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf9f308f |
7 |
|
8 |
net-libs/ldns: remove ssl USE flag |
9 |
|
10 |
fixes #640142 and #640132 |
11 |
|
12 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
13 |
|
14 |
net-libs/ldns/ldns-1.7.0-r2.ebuild | 98 ++++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/ldns/ldns-1.7.0-r2.ebuild b/net-libs/ldns/ldns-1.7.0-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..054d81a0e12 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/ldns/ldns-1.7.0-r2.ebuild |
22 |
@@ -0,0 +1,98 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI="5" |
27 |
+PYTHON_COMPAT=( python2_7 ) |
28 |
+ |
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 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x64-solaris" |
38 |
+IUSE="+dane doc +ecdsa gost libressl python ssl 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 |
+ !libressl? ( >=dev-libs/openssl-1.0.1e:0[${MULTILIB_USEDEP}] ) |
49 |
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
50 |
+" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ python? ( dev-lang/swig ) |
53 |
+ doc? ( app-doc/doxygen ) |
54 |
+" |
55 |
+ |
56 |
+RESTRICT="test" # 1.6.9 has no test directory |
57 |
+ |
58 |
+MULTILIB_CHOST_TOOLS=( |
59 |
+ /usr/bin/ldns-config |
60 |
+) |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ use python && python-single-r1_pkg_setup |
64 |
+} |
65 |
+ |
66 |
+multilib_src_configure() { |
67 |
+ ECONF_SOURCE=${S} \ |
68 |
+ econf \ |
69 |
+ $(use_enable static-libs static) \ |
70 |
+ $(use_enable gost) \ |
71 |
+ $(use_enable ecdsa) \ |
72 |
+ $(use_enable dane) \ |
73 |
+ $(multilib_native_use_with python pyldns) \ |
74 |
+ $(multilib_native_use_with python pyldnsx) \ |
75 |
+ --with-ssl="${EPREFIX}"/usr \ |
76 |
+ --enable-sha2 \ |
77 |
+ --without-drill \ |
78 |
+ --without-examples \ |
79 |
+ --disable-dane-ta-usage \ |
80 |
+ --disable-rpath |
81 |
+ |
82 |
+ # >=openssl-1.1.0 required for dane-ta |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ epatch "${FILESDIR}/${P}-CVE-2017-1000231.patch" |
87 |
+ epatch "${FILESDIR}/${P}-CVE-2017-1000232.patch" |
88 |
+} |
89 |
+ |
90 |
+multilib_src_compile() { |
91 |
+ default |
92 |
+ |
93 |
+ if multilib_is_native_abi && use doc ; then |
94 |
+ emake doxygen |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+multilib_src_install() { |
99 |
+ default |
100 |
+ |
101 |
+ if multilib_is_native_abi && use doc ; then |
102 |
+ dohtml -r doc/html/. |
103 |
+ fi |
104 |
+} |
105 |
+ |
106 |
+multilib_src_install_all() { |
107 |
+ dodoc Changelog README* |
108 |
+ |
109 |
+ prune_libtool_files --modules |
110 |
+ use python && python_optimize |
111 |
+ |
112 |
+ if use vim-syntax ; then |
113 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
114 |
+ doins libdns.vim |
115 |
+ fi |
116 |
+ |
117 |
+ einfo |
118 |
+ elog "Install net-dns/ldns-utils if you want drill and examples" |
119 |
+ einfo |
120 |
+} |