diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-24 03:02:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-24 03:02:55 +0000 |
commit | 530a5a826feeb71085fb8a01927f4d775a0b131b (patch) | |
tree | b7669c45ea3f2a3a37b2437817a370226bb1c819 /net-libs/mbedtls | |
parent | 71dd9d29cdaf7cc0ecdb9ea37d128726a941c630 (diff) |
gentoo auto-resync : 24:11:2024 - 03:02:54
Diffstat (limited to 'net-libs/mbedtls')
-rw-r--r-- | net-libs/mbedtls/Manifest | 6 | ||||
-rw-r--r-- | net-libs/mbedtls/mbedtls-2.28.9.ebuild | 102 | ||||
-rw-r--r-- | net-libs/mbedtls/mbedtls-3.6.2.ebuild (renamed from net-libs/mbedtls/mbedtls-3.6.1.ebuild) | 0 |
3 files changed, 106 insertions, 2 deletions
diff --git a/net-libs/mbedtls/Manifest b/net-libs/mbedtls/Manifest index 191f3ff23701..ac66c784d868 100644 --- a/net-libs/mbedtls/Manifest +++ b/net-libs/mbedtls/Manifest @@ -1,5 +1,7 @@ DIST mbedtls-2.28.8.tar.bz2 3343796 BLAKE2B 1efde6698662873c40df9733bae902db4e009f3dd26a937e05707ca1a208b71675df0737b44b5895a60cfbf42f18f92dae88cba62f32b55733947b9c0481880e SHA512 c8e91ec50ab2caf1f33e907279dc30fca2a8cd97e6e531be857149589e52aeffb95b445b2a9fa674886f0071f446381da3bb8107f7e850f3390128b069ac9ea7 -DIST mbedtls-3.6.1.tar.bz2 4977592 BLAKE2B afecf4968a8f1b64413d7cc17919bacc69e3b5e5ff9e1750c43f965f6c7cd9af9be7a0d09fcab986b9a22e7951a038a653568a2e6cba976dbc8714692a784192 SHA512 c75e207273f39ff1980e629123422299e8f81b2ea4a1a206896f06911b48cb06db1d20d129ec675b1ec10fe7a92fa81bd33b19a84d21370d092442b34b02048f +DIST mbedtls-2.28.9.tar.bz2 3357068 BLAKE2B 14b845f826c3a1953ca3ab82d2f557d8fe6f1a2f57b31134c89933571a87ab9027de50f8f094d4086509d60e38d4c82ac67180f848aa6d06f3ce9f390c8ed63c SHA512 305f97c0b0ba7d57639532a24600234d8f849a4a5795773673b31cc1fdcd1cd56aea42bec2ff87439296e1528dcc2bed5e2a29fbdbf7edad4f5c4da232079d99 +DIST mbedtls-3.6.2.tar.bz2 4979769 BLAKE2B dbf34ca3cffca7a9bdb10191bd58971583ae3f2cdef3e350ccda08eae2e7b52f5fd4d1aff5582ee120b6e35e6843d7dd323ba7da5f1428c16130e5ed7c0d689e SHA512 7ab3b1ec179681949e1b0d171e04f75a605ae9ed8177cf3f6f27c401efca4aff930437ecc425c9a994d36f50ddd6f0f0dd7feeb42251128ac875b4c57fe3811b EBUILD mbedtls-2.28.8.ebuild 2770 BLAKE2B 97b08c08b32b809725b8eeb9d4325cfcbfbf8e3413083867b0f2cbfb4eecaf86fca2a8c4c7dd77ca66c70f60179dfdc04e2047ef1aff86ec3eb1122fec1ddb2e SHA512 7d1c512416845ad5002c2d91cd90bf545f6b42b26f9bd6408f7309cfd674cee1d2c842af68168415f25e5eb34e0d2694ae085445fccc30cdd17846c05d5c154b -EBUILD mbedtls-3.6.1.ebuild 2482 BLAKE2B 7f11721496a31ffca1cae04b287166e832b8756cb465d4416ec4e53435da9cc6483801f23579296133abd9849d9a8f1c57ba3b2b7ae8ee6d39a715695035004e SHA512 1df63381c789efeaa68a3b18faf53e4ffa31ce37bb2bb4b37d2ca46de01b86de2a153b01be23939d6218238a444965ee548a74f4610409de0bb27882192643aa +EBUILD mbedtls-2.28.9.ebuild 2774 BLAKE2B b4e3dbae3461fa7b2ca9d8f403ad66c9783987eeb3487959618bc966e50e271f552ddefbf466f7e3cc0b65bada9ee508dad43e53c42d22823e31569b86a23b21 SHA512 3a71d2b7e22bad9b61dd628f9acb462669d9680a16f3be1f69f7ef45d5ff2f5f28c9dae54965ced004cac4657528ad41e76769ef46c47adbdbafe05db76e4890 +EBUILD mbedtls-3.6.2.ebuild 2482 BLAKE2B 7f11721496a31ffca1cae04b287166e832b8756cb465d4416ec4e53435da9cc6483801f23579296133abd9849d9a8f1c57ba3b2b7ae8ee6d39a715695035004e SHA512 1df63381c789efeaa68a3b18faf53e4ffa31ce37bb2bb4b37d2ca46de01b86de2a153b01be23939d6218238a444965ee548a74f4610409de0bb27882192643aa MISC metadata.xml 1058 BLAKE2B 6b3d24de59849c4fe1a629007300b3bc85aa9e7808e54f91a257c5d9de5eaf7b0567ad248aa928ea6b30a8977ff2d70410721bb03a7839c3f97d7d1c5f416e13 SHA512 8f8a6fef48532d23d10efc7a2334606840ae80d46373a423ab1898950e23487587c8babca2aacfbe7fa5dd4d1327d42e171ad01235f813541acfce27a0fa968b diff --git a/net-libs/mbedtls/mbedtls-2.28.9.ebuild b/net-libs/mbedtls/mbedtls-2.28.9.ebuild new file mode 100644 index 000000000000..76e76b4e4c2e --- /dev/null +++ b/net-libs/mbedtls/mbedtls-2.28.9.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake multilib-minimal python-any-r1 + +DESCRIPTION="Cryptographic library for embedded systems" +HOMEPAGE="https://www.trustedfirmware.org/projects/mbed-tls/" +SRC_URI="https://github.com/Mbed-TLS/mbedtls/releases/download/${P}/${P}.tar.bz2" +LICENSE="|| ( Apache-2.0 GPL-2+ )" +SLOT="0/7.14.1" # ffmpeg subslot naming: SONAME tuple of {libmbedcrypto.so,libmbedtls.so,libmbedx509.so} +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="cmac cpu_flags_x86_sse2 doc havege programs static-libs test threads zlib" +RESTRICT="!test? ( test )" + +RDEPEND=" + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + doc? ( + app-text/doxygen + media-gfx/graphviz + ) + test? ( dev-lang/perl ) +" + +enable_mbedtls_option() { + local myopt="$@" + # check that config.h syntax is the same at version bump + sed -i \ + -e "s://#define ${myopt}:#define ${myopt}:" \ + include/mbedtls/config.h || die +} + +src_prepare() { + use cmac && enable_mbedtls_option MBEDTLS_CMAC_C + use cpu_flags_x86_sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2 + use zlib && enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT + use havege && enable_mbedtls_option MBEDTLS_HAVEGE_C + use threads && enable_mbedtls_option MBEDTLS_THREADING_C + use threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD + + cmake_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DENABLE_PROGRAMS=$(multilib_native_usex programs) + -DENABLE_TESTING=$(usex test) + -DENABLE_ZLIB_SUPPORT=$(usex zlib) + -DINSTALL_MBEDTLS_HEADERS=ON + -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" + -DLINK_WITH_PTHREAD=$(usex threads) + -DMBEDTLS_FATAL_WARNINGS=OFF # Don't use -Werror, #744946 + -DUSE_SHARED_MBEDTLS_LIBRARY=ON + -DUSE_STATIC_MBEDTLS_LIBRARY=$(usex static-libs) + ) + + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile + use doc && multilib_is_native_abi && emake -C "${S}" apidoc +} + +multilib_src_test() { + # Disable parallel run, bug #718390 + # https://github.com/Mbed-TLS/mbedtls/issues/4980 + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/library" \ + cmake_src_test -j1 +} + +multilib_src_install() { + cmake_src_install +} + +multilib_src_install_all() { + use doc && HTML_DOCS=( apidoc ) + + einstalldocs + + if use programs ; then + # avoid file collisions with sys-apps/coreutils + local p e + for p in "${ED}"/usr/bin/* ; do + if [[ -x "${p}" && ! -d "${p}" ]] ; then + mv "${p}" "${ED}"/usr/bin/mbedtls_${p##*/} || die + fi + done + for e in aes hash pkey ssl test ; do + docinto "${e}" + dodoc programs/"${e}"/*.c + dodoc programs/"${e}"/*.txt + done + fi +} diff --git a/net-libs/mbedtls/mbedtls-3.6.1.ebuild b/net-libs/mbedtls/mbedtls-3.6.2.ebuild index 0d3fb3694a4e..0d3fb3694a4e 100644 --- a/net-libs/mbedtls/mbedtls-3.6.1.ebuild +++ b/net-libs/mbedtls/mbedtls-3.6.2.ebuild |