1 |
commit: e0295f9ff9104d4ea968a8ad4618c961c195a348 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 27 18:52:40 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 27 18:52:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0295f9f |
7 |
|
8 |
net-libs/mbedtls: version bump to 2.16.1 and 2.17.0 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
net-libs/mbedtls/Manifest | 2 + |
14 |
net-libs/mbedtls/mbedtls-2.16.1.ebuild | 93 ++++++++++++++++++++++++++++++++++ |
15 |
net-libs/mbedtls/mbedtls-2.17.0.ebuild | 93 ++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 188 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/mbedtls/Manifest b/net-libs/mbedtls/Manifest |
19 |
index 5940b631d19..969d6c47668 100644 |
20 |
--- a/net-libs/mbedtls/Manifest |
21 |
+++ b/net-libs/mbedtls/Manifest |
22 |
@@ -4,3 +4,5 @@ DIST mbedtls-2.13.1.tar.gz 2345612 BLAKE2B 0b78a04407076016fb7f74b635cd2fc86119a |
23 |
DIST mbedtls-2.14.1.tar.gz 2374523 BLAKE2B bab8e2a6b988627ae634aa26d6bf778ee1b923c9e2b17b2fd62c889120ab0dd5a9362ce6c0b8817c97dc1bbcda892b3a9ea7113c73240345e6e7bc4470a047aa SHA512 e8c953f4335a0cbdf4e713b646fcc1ee5302953b4279c6f21c15a6a8216d805d113354c1448c8df3617dbdfcd4e8a82157cd5630c37662d0db6b02865d4bd8e0 |
24 |
DIST mbedtls-2.15.1.tar.gz 2662140 BLAKE2B 9b1f3f6e522445c187ebfe38a35bb934d72d638d1b0fa59852c7e0b1c1094302efd4328038a2e0c8427b2d08d791179d0b33ffd20e7809cd4ac9dac1b480866b SHA512 361bac49bc179c020855a59140a3e9e31ec9e89ebde9d630e9f3491cdfdf466c8dc2313276d6b257a7728784f5478bdcfd14d26e81f90d432bad2e9a94151fc2 |
25 |
DIST mbedtls-2.16.0.tar.gz 2412091 BLAKE2B 7fae9fa1ffa8ae7e7958af6fbac98299135e5b7c524ad3944f0ae7b5aa7f2574253950583a77bd1b9fa175b513032110565406b5d4a85c56c65c5c2e50e87928 SHA512 15e8df96c16b0b6f7b100ca76d85dae77f8e6a6644fc41262dc28e11440b9238e837193991ba5942864ed9f58542f96967c2d1e18a5ae270571f6d364bcc33b1 |
26 |
+DIST mbedtls-2.16.1.tar.gz 2426992 BLAKE2B 11915bc2feb27b16ad20c3079905081093dad100bba02b06ccf30ce708d3528445bc153ed81e6e11e7c8d15060a47bf6419252f934bd6950fe3a7867e0da6aa2 SHA512 d9333abd463350bfeceec4edd605e93326578ca646053b0c6f6c51567237273fa88f602b065706fdd699a2a06e667cc54ca3919bb71b2c4656fbc620b967bc01 |
27 |
+DIST mbedtls-2.17.0.tar.gz 2738368 BLAKE2B efcf2a6c84a85afdca0205bd9e8bcf039074c5e6f40e0814f835cf26c2d13dce87bd140aa0b803eea6a683e31b79680a3ea8ba72417e7ec26f206e0b027b014a SHA512 6ab52d116cb9f755871f2fd196ec1b352dbbe59f2ecedeb5551237e4e672da77205ef0c2f80ec746ba1fd94cab1995ab1729c8adb0f29d10f3c74a67f5327493 |
28 |
|
29 |
diff --git a/net-libs/mbedtls/mbedtls-2.16.1.ebuild b/net-libs/mbedtls/mbedtls-2.16.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..a5b2310cf89 |
32 |
--- /dev/null |
33 |
+++ b/net-libs/mbedtls/mbedtls-2.16.1.ebuild |
34 |
@@ -0,0 +1,93 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit cmake-utils multilib-minimal |
41 |
+ |
42 |
+DESCRIPTION="Cryptographic library for embedded systems" |
43 |
+HOMEPAGE="https://tls.mbed.org/" |
44 |
+SRC_URI="https://github.com/ARMmbed/mbedtls/archive/${P}.tar.gz" |
45 |
+S=${WORKDIR}/${PN}-${P} |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0/12" # slot for libmbedtls.so |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
50 |
+IUSE="cpu_flags_x86_sse2 doc havege libressl programs -static-libs test threads zlib" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ programs? ( |
54 |
+ !libressl? ( dev-libs/openssl:0= ) |
55 |
+ libressl? ( dev-libs/libressl:0= ) |
56 |
+ ) |
57 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ doc? ( app-doc/doxygen media-gfx/graphviz ) |
60 |
+ test? ( dev-lang/perl )" |
61 |
+ |
62 |
+enable_mbedtls_option() { |
63 |
+ local myopt="$@" |
64 |
+ # check that config.h syntax is the same at version bump |
65 |
+ sed -i \ |
66 |
+ -e "s://#define ${myopt}:#define ${myopt}:" \ |
67 |
+ include/mbedtls/config.h || die |
68 |
+} |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2 |
72 |
+ use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT |
73 |
+ use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C |
74 |
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_C |
75 |
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD |
76 |
+ |
77 |
+ cmake-utils_src_prepare |
78 |
+} |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ local mycmakeargs=( |
82 |
+ -DENABLE_PROGRAMS=$(multilib_native_usex programs) |
83 |
+ -DENABLE_ZLIB_SUPPORT=$(usex zlib) |
84 |
+ -DUSE_STATIC_MBEDTLS_LIBRARY=$(usex static-libs) |
85 |
+ -DENABLE_TESTING=$(usex test) |
86 |
+ -DUSE_SHARED_MBEDTLS_LIBRARY=ON |
87 |
+ -DINSTALL_MBEDTLS_HEADERS=ON |
88 |
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
89 |
+ ) |
90 |
+ |
91 |
+ cmake-utils_src_configure |
92 |
+} |
93 |
+ |
94 |
+multilib_src_compile() { |
95 |
+ cmake-utils_src_compile |
96 |
+ use doc && multilib_is_native_abi && emake apidoc |
97 |
+} |
98 |
+ |
99 |
+multilib_src_test() { |
100 |
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ |
101 |
+ cmake-utils_src_test |
102 |
+} |
103 |
+ |
104 |
+multilib_src_install() { |
105 |
+ cmake-utils_src_install |
106 |
+} |
107 |
+ |
108 |
+multilib_src_install_all() { |
109 |
+ use doc && HTML_DOCS=( apidoc ) |
110 |
+ |
111 |
+ einstalldocs |
112 |
+ |
113 |
+ if use programs ; then |
114 |
+ # avoid file collisions with sys-apps/coreutils |
115 |
+ local p e |
116 |
+ for p in "${ED%/}"/usr/bin/* ; do |
117 |
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then |
118 |
+ mv "${p}" "${ED%/}"/usr/bin/mbedtls_${p##*/} || die |
119 |
+ fi |
120 |
+ done |
121 |
+ for e in aes hash pkey ssl test ; do |
122 |
+ docinto "${e}" |
123 |
+ dodoc programs/"${e}"/*.c |
124 |
+ dodoc programs/"${e}"/*.txt |
125 |
+ done |
126 |
+ fi |
127 |
+} |
128 |
|
129 |
diff --git a/net-libs/mbedtls/mbedtls-2.17.0.ebuild b/net-libs/mbedtls/mbedtls-2.17.0.ebuild |
130 |
new file mode 100644 |
131 |
index 00000000000..a5b2310cf89 |
132 |
--- /dev/null |
133 |
+++ b/net-libs/mbedtls/mbedtls-2.17.0.ebuild |
134 |
@@ -0,0 +1,93 @@ |
135 |
+# Copyright 1999-2019 Gentoo Authors |
136 |
+# Distributed under the terms of the GNU General Public License v2 |
137 |
+ |
138 |
+EAPI=7 |
139 |
+ |
140 |
+inherit cmake-utils multilib-minimal |
141 |
+ |
142 |
+DESCRIPTION="Cryptographic library for embedded systems" |
143 |
+HOMEPAGE="https://tls.mbed.org/" |
144 |
+SRC_URI="https://github.com/ARMmbed/mbedtls/archive/${P}.tar.gz" |
145 |
+S=${WORKDIR}/${PN}-${P} |
146 |
+ |
147 |
+LICENSE="Apache-2.0" |
148 |
+SLOT="0/12" # slot for libmbedtls.so |
149 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
150 |
+IUSE="cpu_flags_x86_sse2 doc havege libressl programs -static-libs test threads zlib" |
151 |
+ |
152 |
+RDEPEND=" |
153 |
+ programs? ( |
154 |
+ !libressl? ( dev-libs/openssl:0= ) |
155 |
+ libressl? ( dev-libs/libressl:0= ) |
156 |
+ ) |
157 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" |
158 |
+DEPEND="${RDEPEND} |
159 |
+ doc? ( app-doc/doxygen media-gfx/graphviz ) |
160 |
+ test? ( dev-lang/perl )" |
161 |
+ |
162 |
+enable_mbedtls_option() { |
163 |
+ local myopt="$@" |
164 |
+ # check that config.h syntax is the same at version bump |
165 |
+ sed -i \ |
166 |
+ -e "s://#define ${myopt}:#define ${myopt}:" \ |
167 |
+ include/mbedtls/config.h || die |
168 |
+} |
169 |
+ |
170 |
+src_prepare() { |
171 |
+ use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2 |
172 |
+ use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT |
173 |
+ use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C |
174 |
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_C |
175 |
+ use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD |
176 |
+ |
177 |
+ cmake-utils_src_prepare |
178 |
+} |
179 |
+ |
180 |
+multilib_src_configure() { |
181 |
+ local mycmakeargs=( |
182 |
+ -DENABLE_PROGRAMS=$(multilib_native_usex programs) |
183 |
+ -DENABLE_ZLIB_SUPPORT=$(usex zlib) |
184 |
+ -DUSE_STATIC_MBEDTLS_LIBRARY=$(usex static-libs) |
185 |
+ -DENABLE_TESTING=$(usex test) |
186 |
+ -DUSE_SHARED_MBEDTLS_LIBRARY=ON |
187 |
+ -DINSTALL_MBEDTLS_HEADERS=ON |
188 |
+ -DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
189 |
+ ) |
190 |
+ |
191 |
+ cmake-utils_src_configure |
192 |
+} |
193 |
+ |
194 |
+multilib_src_compile() { |
195 |
+ cmake-utils_src_compile |
196 |
+ use doc && multilib_is_native_abi && emake apidoc |
197 |
+} |
198 |
+ |
199 |
+multilib_src_test() { |
200 |
+ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ |
201 |
+ cmake-utils_src_test |
202 |
+} |
203 |
+ |
204 |
+multilib_src_install() { |
205 |
+ cmake-utils_src_install |
206 |
+} |
207 |
+ |
208 |
+multilib_src_install_all() { |
209 |
+ use doc && HTML_DOCS=( apidoc ) |
210 |
+ |
211 |
+ einstalldocs |
212 |
+ |
213 |
+ if use programs ; then |
214 |
+ # avoid file collisions with sys-apps/coreutils |
215 |
+ local p e |
216 |
+ for p in "${ED%/}"/usr/bin/* ; do |
217 |
+ if [[ -x "${p}" && ! -d "${p}" ]] ; then |
218 |
+ mv "${p}" "${ED%/}"/usr/bin/mbedtls_${p##*/} || die |
219 |
+ fi |
220 |
+ done |
221 |
+ for e in aes hash pkey ssl test ; do |
222 |
+ docinto "${e}" |
223 |
+ dodoc programs/"${e}"/*.c |
224 |
+ dodoc programs/"${e}"/*.txt |
225 |
+ done |
226 |
+ fi |
227 |
+} |