diff --git a/security/mbedtls4/Makefile b/security/mbedtls4/Makefile index 615048be44ed..c7ba7e1cfc11 100644 --- a/security/mbedtls4/Makefile +++ b/security/mbedtls4/Makefile @@ -1,44 +1,46 @@ PORTNAME= mbedtls DISTVERSION= 4.0.0 +PORTREVISION= 1 CATEGORIES= security devel MASTER_SITES= https://github.com/Mbed-TLS/${PORTNAME}/releases/download/${DISTNAME}/ PKGNAMESUFFIX= 4 MAINTAINER= pkaipila@gmail.com COMMENT= Embedded SSL/TLS and cryptography library WWW= https://www.trustedfirmware.org/projects/mbed-tls/ LICENSE= APACHE20 GPLv2+ LICENSE_COMB= dual LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing python:build,test shebangfix tar:bz2 USE_LDCONFIG= yes SHEBANG_FILES= scripts/*.py tests/scripts/*.py CMAKE_ON= CMAKE_BUILD_RPATH_USE_ORIGIN \ ENABLE_PROGRAMS \ LINK_WITH_PTHREAD \ USE_SHARED_MBEDTLS_LIBRARY CMAKE_OFF= ENABLE_TESTING CMAKE_TESTING_ON= ENABLE_TESTING CMAKE_TESTING_JOBS= 1 CONFLICTS_INSTALL= mbedtls3 PORTSCOUT= limit:^${DISTVERSION:R:S/./\./g}\. PLIST_SUB= DISTVERSION=${DISTVERSION} pre-configure: @${WRKSRC}/scripts/config.py set MBEDTLS_SSL_DTLS_SRTP @${WRKSRC}/scripts/config.py set MBEDTLS_THREADING_C @${WRKSRC}/scripts/config.py set MBEDTLS_THREADING_PTHREAD post-install: @cd ${STAGEDIR}${PREFIX}/bin && for f in *; do \ ${MV} "$$f" "mbedtls_$$f"; \ done + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmbedcrypto.so .include diff --git a/security/mbedtls4/files/patch-library_CMakeLists.txt b/security/mbedtls4/files/patch-library_CMakeLists.txt new file mode 100644 index 000000000000..152b6b8424ec --- /dev/null +++ b/security/mbedtls4/files/patch-library_CMakeLists.txt @@ -0,0 +1,11 @@ +--- library/CMakeLists.txt.orig 2025-10-14 16:14:11 UTC ++++ library/CMakeLists.txt +@@ -362,7 +362,7 @@ foreach(target IN LISTS tf_psa_crypto_library_targets) + RENAME "libmbedcrypto.so.${MBEDTLS_VERSION}" + ) + install(CODE " +- set(_libdir \"\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}\") ++ set(_libdir \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}\") + + execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E create_symlink + \"libmbedcrypto.so.${MBEDTLS_VERSION}\" diff --git a/security/mbedtls4/pkg-plist b/security/mbedtls4/pkg-plist index b59df397ee02..4a47cbdfb20f 100644 --- a/security/mbedtls4/pkg-plist +++ b/security/mbedtls4/pkg-plist @@ -1,166 +1,168 @@ bin/mbedtls_aead_demo bin/mbedtls_cert_app bin/mbedtls_cert_req bin/mbedtls_cert_write bin/mbedtls_crl_app bin/mbedtls_crypto_examples bin/mbedtls_dtls_client bin/mbedtls_dtls_server bin/mbedtls_hmac_demo bin/mbedtls_key_ladder_demo bin/mbedtls_key_ladder_demo.sh bin/mbedtls_load_roots bin/mbedtls_metatest bin/mbedtls_mini_client bin/mbedtls_pem2der bin/mbedtls_psa_constant_names bin/mbedtls_psa_hash bin/mbedtls_query_compile_time_config bin/mbedtls_query_included_headers bin/mbedtls_req_app bin/mbedtls_selftest bin/mbedtls_ssl_client1 bin/mbedtls_ssl_client2 bin/mbedtls_ssl_context_info bin/mbedtls_ssl_fork_server bin/mbedtls_ssl_mail_client bin/mbedtls_ssl_pthread_server bin/mbedtls_ssl_server bin/mbedtls_ssl_server2 bin/mbedtls_strerror bin/mbedtls_udp_proxy bin/mbedtls_zeroize +include/mbedtls/asn1.h +include/mbedtls/asn1write.h +include/mbedtls/base64.h +include/mbedtls/build_info.h include/mbedtls/compat-3-crypto.h +include/mbedtls/config_adjust_legacy_crypto.h +include/mbedtls/constant_time.h +include/mbedtls/debug.h +include/mbedtls/error.h +include/mbedtls/lms.h +include/mbedtls/mbedtls_config.h +include/mbedtls/md.h +include/mbedtls/memory_buffer_alloc.h +include/mbedtls/net_sockets.h +include/mbedtls/nist_kw.h +include/mbedtls/oid.h +include/mbedtls/pem.h +include/mbedtls/pk.h +include/mbedtls/pkcs7.h +include/mbedtls/platform.h +include/mbedtls/platform_time.h +include/mbedtls/platform_util.h include/mbedtls/private/aes.h include/mbedtls/private/aria.h include/mbedtls/private/bignum.h include/mbedtls/private/block_cipher.h include/mbedtls/private/camellia.h include/mbedtls/private/ccm.h include/mbedtls/private/chacha20.h include/mbedtls/private/chachapoly.h include/mbedtls/private/cipher.h include/mbedtls/private/cmac.h include/mbedtls/private/config_adjust_legacy_from_psa.h include/mbedtls/private/config_adjust_ssl.h include/mbedtls/private/config_adjust_test_accelerators.h include/mbedtls/private/config_adjust_x509.h include/mbedtls/private/config_psa.h include/mbedtls/private/ctr_drbg.h include/mbedtls/private/ecdh.h include/mbedtls/private/ecdsa.h include/mbedtls/private/ecjpake.h include/mbedtls/private/ecp.h include/mbedtls/private/entropy.h include/mbedtls/private/error_common.h include/mbedtls/private/gcm.h include/mbedtls/private/hmac_drbg.h include/mbedtls/private/md5.h include/mbedtls/private/pkcs5.h include/mbedtls/private/poly1305.h include/mbedtls/private/ripemd160.h include/mbedtls/private/rsa.h include/mbedtls/private/sha1.h include/mbedtls/private/sha256.h include/mbedtls/private/sha3.h include/mbedtls/private/sha512.h -include/mbedtls/asn1.h -include/mbedtls/asn1write.h -include/mbedtls/base64.h -include/mbedtls/build_info.h -include/mbedtls/config_adjust_legacy_crypto.h -include/mbedtls/constant_time.h -include/mbedtls/debug.h -include/mbedtls/error.h -include/mbedtls/lms.h -include/mbedtls/mbedtls_config.h -include/mbedtls/md.h -include/mbedtls/memory_buffer_alloc.h -include/mbedtls/net_sockets.h -include/mbedtls/nist_kw.h -include/mbedtls/oid.h -include/mbedtls/pem.h -include/mbedtls/pk.h -include/mbedtls/pkcs7.h -include/mbedtls/platform.h -include/mbedtls/platform_time.h -include/mbedtls/platform_util.h include/mbedtls/private_access.h include/mbedtls/psa_util.h include/mbedtls/ssl.h include/mbedtls/ssl_cache.h include/mbedtls/ssl_ciphersuites.h include/mbedtls/ssl_cookie.h include/mbedtls/ssl_ticket.h include/mbedtls/threading.h include/mbedtls/timing.h include/mbedtls/version.h include/mbedtls/x509.h include/mbedtls/x509_crl.h include/mbedtls/x509_crt.h include/mbedtls/x509_csr.h include/psa/crypto.h include/psa/crypto_adjust_auto_enabled.h include/psa/crypto_adjust_config_dependencies.h +include/psa/crypto_adjust_config_derived.h include/psa/crypto_adjust_config_key_pair_types.h include/psa/crypto_adjust_config_synonyms.h include/psa/crypto_builtin_composites.h include/psa/crypto_builtin_key_derivation.h include/psa/crypto_builtin_primitives.h include/psa/crypto_compat.h include/psa/crypto_config.h include/psa/crypto_driver_common.h include/psa/crypto_driver_contexts_composites.h include/psa/crypto_driver_contexts_key_derivation.h include/psa/crypto_driver_contexts_primitives.h +include/psa/crypto_driver_random.h include/psa/crypto_extra.h include/psa/crypto_platform.h include/psa/crypto_sizes.h include/psa/crypto_struct.h include/psa/crypto_types.h include/psa/crypto_values.h -include/psa/crypto_adjust_config_derived.h -include/psa/crypto_driver_random.h include/tf-psa-crypto/build_info.h include/tf-psa-crypto/private/everest/everest/Hacl_Curve25519.h include/tf-psa-crypto/private/everest/everest/everest.h include/tf-psa-crypto/private/everest/everest/kremlib.h include/tf-psa-crypto/private/everest/everest/kremlib/FStar_UInt128.h include/tf-psa-crypto/private/everest/everest/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.h include/tf-psa-crypto/private/everest/everest/kremlin/c_endianness.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/builtin.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/callconv.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/compat.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/debug.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/target.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/types.h include/tf-psa-crypto/private/everest/everest/kremlin/internal/wasmsupport.h include/tf-psa-crypto/private/everest/everest/vs2013/Hacl_Curve25519.h include/tf-psa-crypto/private/everest/everest/x25519.h include/tf-psa-crypto/version.h -lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoConfig.cmake -lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoConfigVersion.cmake -lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoTargets-%%CMAKE_BUILD_TYPE%%.cmake -lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoTargets.cmake -lib/libmbedtls.so.22 -lib/libmbedx509.so.8 -lib/libtfpsacrypto.a -lib/libtfpsacrypto.so -lib/libtfpsacrypto.so.1 -lib/libtfpsacrypto.so.1.0.0 lib/cmake/MbedTLS/MbedTLSConfig.cmake lib/cmake/MbedTLS/MbedTLSConfigVersion.cmake lib/cmake/MbedTLS/MbedTLSTargets-%%CMAKE_BUILD_TYPE%%.cmake lib/cmake/MbedTLS/MbedTLSTargets.cmake +lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoConfig.cmake +lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoConfigVersion.cmake +lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/TF-PSA-Crypto/TF-PSA-CryptoTargets.cmake lib/libmbedcrypto.a +lib/libmbedcrypto.so +lib/libmbedcrypto.so.17 lib/libmbedcrypto.so.%%DISTVERSION%% lib/libmbedtls.a lib/libmbedtls.so +lib/libmbedtls.so.22 lib/libmbedtls.so.%%DISTVERSION%% lib/libmbedx509.a lib/libmbedx509.so lib/libmbedx509.so.%%DISTVERSION%% +lib/libmbedx509.so.8 +lib/libtfpsacrypto.a +lib/libtfpsacrypto.so +lib/libtfpsacrypto.so.1 +lib/libtfpsacrypto.so.1.0.0 libdata/pkgconfig/mbedcrypto.pc libdata/pkgconfig/mbedtls.pc libdata/pkgconfig/mbedx509.pc libdata/pkgconfig/tfpsacrypto.pc