From 0c8fe3741cac2b559ba24d6b866c722887382fcc Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 12 Aug 2024 14:42:21 -0400 Subject: [PATCH] New package: mbedtls2-2.28.8 2.28 LTS branch for packages that don't support mbedtls 3 yet --- common/shlibs | 3 +++ srcpkgs/mbedtls2-devel | 1 + srcpkgs/mbedtls2/template | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 srcpkgs/mbedtls2-devel create mode 100644 srcpkgs/mbedtls2/template diff --git a/common/shlibs b/common/shlibs index b89c51e8a95..1e27ac5df0d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2297,6 +2297,9 @@ libmpv.so.2 mpv-0.35.0_1 libmbedtls.so.21 mbedtls-3.6.0_1 libmbedcrypto.so.16 mbedtls-3.6.0_1 libmbedx509.so.7 mbedtls-3.6.0_1 +libmbedtls.so.14 mbedtls2-2.28.8_1 +libmbedcrypto.so.7 mbedtls2-2.28.8_1 +libmbedx509.so.1 mbedtls2-2.28.8_1 libdmtx.so.0 libdmtx-0.7.4_1 libdbus-c++-1.so.0 libdbus-c++-0.9.0_1 libdbus-c++-glib-1.so.0 libdbus-c++-0.9.0_1 diff --git a/srcpkgs/mbedtls2-devel b/srcpkgs/mbedtls2-devel new file mode 120000 index 00000000000..0800d76a464 --- /dev/null +++ b/srcpkgs/mbedtls2-devel @@ -0,0 +1 @@ +mbedtls2 \ No newline at end of file diff --git a/srcpkgs/mbedtls2/template b/srcpkgs/mbedtls2/template new file mode 100644 index 00000000000..2c2ff4f5fe0 --- /dev/null +++ b/srcpkgs/mbedtls2/template @@ -0,0 +1,36 @@ +# Template file for 'mbedtls2' +pkgname=mbedtls2 +version=2.28.8 +revision=1 +build_style=cmake +configure_args="-DENABLE_TESTING=1 -DUSE_SHARED_MBEDTLS_LIBRARY=1" +hostmakedepends="python3 perl" +short_desc="Portable cryptographic TLS library (version 2)" +maintainer="Orphaned " +license="Apache-2.0" +homepage="https://tls.mbed.org/" +changelog="https://raw.githubusercontent.com/ARMmbed/mbedtls/mbedtls-${version%.*}/ChangeLog" +distfiles="https://github.com/ARMmbed/mbedtls/archive/refs/tags/v${version}.tar.gz" +checksum="4fef7de0d8d542510d726d643350acb3cdb9dc76ad45611b59c9aa08372b4213" + +pre_configure() { + ./scripts/config.pl set MBEDTLS_THREADING_C + ./scripts/config.pl set MBEDTLS_THREADING_PTHREAD +} + +post_install() { + rm -r "$DESTDIR"/usr/bin +} + +mbedtls2-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}-${version}_${revision}" + conflicts="mbedtls-devel>=0" + replaces="mbedtls-devel>=0" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}