pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/mbedtls3 security/mbedtls3: import mbedtls3-3...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e6309f4ff4a
branches:  trunk
changeset: 383051:0e6309f4ff4a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Aug 11 06:49:16 2022 +0000

description:
security/mbedtls3: import mbedtls3-3.2.1

mbed TLS (formerly known as PolarSSL) makes it trivially easy for
developers to include cryptographic and SSL/TLS capabilities in
their (embedded) products, facilitating this functionality with a
minimal coding footprint.

This contains major version 3 of the library, which is not backwards
compatible to version 2.

diffstat:

 security/mbedtls3/DESCR         |    7 +
 security/mbedtls3/Makefile      |   55 ++++++++++++++
 security/mbedtls3/PLIST         |  153 ++++++++++++++++++++++++++++++++++++++++
 security/mbedtls3/buildlink3.mk |   19 ++++
 security/mbedtls3/distinfo      |    5 +
 security/mbedtls3/options.mk    |   14 +++
 6 files changed, 253 insertions(+), 0 deletions(-)

diffs (277 lines):

diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/DESCR   Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,7 @@
+mbed TLS (formerly known as PolarSSL) makes it trivially easy for
+developers to include cryptographic and SSL/TLS capabilities in
+their (embedded) products, facilitating this functionality with a
+minimal coding footprint.
+
+This contains major version 3 of the library, which is not backwards
+compatible to version 2.
diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/Makefile        Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2022/08/11 06:49:16 wiz Exp $
+
+DISTNAME=      mbedtls-3.2.1
+PKGNAME=       ${DISTNAME:S/mbedtls/mbedtls3/}
+CATEGORIES=    security
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ARMmbed/}
+GITHUB_PROJECT=        mbedtls
+GITHUB_TAG=    ${DISTNAME}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://tls.mbed.org/
+COMMENT=       Lightweight, modular cryptographic and SSL/TLS library (3.x branch)
+LICENSE=       apache-2.0
+
+CONFLICTS+=    mbedtls-[0-9]*
+CONFLICTS+=    polarssl-[0-9]*
+SUPERSEDES+=   polarssl-[0-9]*
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c99
+USE_TOOLS+=    pkg-config
+
+GCC_REQD+=     4.4
+
+CMAKE_ARGS+=   -Wno-dev
+CMAKE_ARGS+=   -DUSE_SHARED_MBEDTLS_LIBRARY=ON
+CMAKE_ARGS+=   -DENABLE_PROGRAMS=ON
+
+# Fails to build full suite on NetBSD due to strange tricks with stdout
+CMAKE_ARGS+=   -DENABLE_TESTING=OFF
+
+CMAKE_ARGS+=   -DMBEDTLS_FATAL_WARNINGS=OFF
+
+MAKE_ENV+=     RANLIB=${RANLIB:Q}
+
+LDFLAGS.SunOS+=        -lsocket
+
+PYTHON_FOR_BUILD_ONLY= tool
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+# Prefix bundled programs so they don't conflict with other packages
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && for f in *; do \
+               ${MV} "$$f" "mbedtls_$$f"; \
+       done
+
+do-test:
+       LD_LIBRARY_PATH=${WRKSRC}/library \
+           ${WRKSRC}/programs/test/selftest
+
+.include "options.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/PLIST   Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,153 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/11 06:49:16 wiz Exp $
+bin/mbedtls_aead_demo
+bin/mbedtls_benchmark
+bin/mbedtls_cert_app
+bin/mbedtls_cert_req
+bin/mbedtls_cert_write
+bin/mbedtls_cipher_aead_demo
+bin/mbedtls_crl_app
+bin/mbedtls_crypt_and_hash
+bin/mbedtls_crypto_examples
+bin/mbedtls_dh_client
+bin/mbedtls_dh_genprime
+bin/mbedtls_dh_server
+bin/mbedtls_dtls_client
+bin/mbedtls_dtls_server
+bin/mbedtls_ecdh_curve25519
+bin/mbedtls_ecdsa
+bin/mbedtls_gen_entropy
+bin/mbedtls_gen_key
+bin/mbedtls_gen_random_ctr_drbg
+bin/mbedtls_generic_sum
+bin/mbedtls_hello
+bin/mbedtls_hmac_demo
+bin/mbedtls_key_app
+bin/mbedtls_key_app_writer
+bin/mbedtls_key_ladder_demo
+bin/mbedtls_key_ladder_demo.sh
+bin/mbedtls_load_roots
+bin/mbedtls_md_hmac_demo
+bin/mbedtls_mini_client
+bin/mbedtls_mpi_demo
+bin/mbedtls_pem2der
+bin/mbedtls_pk_decrypt
+bin/mbedtls_pk_encrypt
+bin/mbedtls_pk_sign
+bin/mbedtls_pk_verify
+bin/mbedtls_psa_constant_names
+bin/mbedtls_query_compile_time_config
+bin/mbedtls_req_app
+bin/mbedtls_rsa_decrypt
+bin/mbedtls_rsa_encrypt
+bin/mbedtls_rsa_genkey
+bin/mbedtls_rsa_sign
+bin/mbedtls_rsa_sign_pss
+bin/mbedtls_rsa_verify
+bin/mbedtls_rsa_verify_pss
+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
+cmake/MbedTLSConfig.cmake
+cmake/MbedTLSConfigVersion.cmake
+cmake/MbedTLSTargets-noconfig.cmake
+cmake/MbedTLSTargets.cmake
+include/mbedtls/aes.h
+include/mbedtls/aria.h
+include/mbedtls/asn1.h
+include/mbedtls/asn1write.h
+include/mbedtls/base64.h
+include/mbedtls/bignum.h
+include/mbedtls/build_info.h
+include/mbedtls/camellia.h
+include/mbedtls/ccm.h
+include/mbedtls/chacha20.h
+include/mbedtls/chachapoly.h
+include/mbedtls/check_config.h
+include/mbedtls/cipher.h
+include/mbedtls/cmac.h
+include/mbedtls/compat-2.x.h
+include/mbedtls/config_psa.h
+include/mbedtls/constant_time.h
+include/mbedtls/ctr_drbg.h
+include/mbedtls/debug.h
+include/mbedtls/des.h
+include/mbedtls/dhm.h
+include/mbedtls/ecdh.h
+include/mbedtls/ecdsa.h
+include/mbedtls/ecjpake.h
+include/mbedtls/ecp.h
+include/mbedtls/entropy.h
+include/mbedtls/error.h
+include/mbedtls/gcm.h
+include/mbedtls/hkdf.h
+include/mbedtls/hmac_drbg.h
+include/mbedtls/mbedtls_config.h
+include/mbedtls/md.h
+include/mbedtls/md5.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/pkcs12.h
+include/mbedtls/pkcs5.h
+include/mbedtls/platform.h
+include/mbedtls/platform_time.h
+include/mbedtls/platform_util.h
+include/mbedtls/poly1305.h
+include/mbedtls/private_access.h
+include/mbedtls/psa_util.h
+include/mbedtls/ripemd160.h
+include/mbedtls/rsa.h
+include/mbedtls/sha1.h
+include/mbedtls/sha256.h
+include/mbedtls/sha512.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_builtin_composites.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_primitives.h
+include/psa/crypto_extra.h
+include/psa/crypto_platform.h
+include/psa/crypto_se_driver.h
+include/psa/crypto_sizes.h
+include/psa/crypto_struct.h
+include/psa/crypto_types.h
+include/psa/crypto_values.h
+lib/libmbedcrypto.a
+lib/libmbedcrypto.so
+lib/libmbedcrypto.so.12
+lib/libmbedcrypto.so.${PKGVERSION}
+lib/libmbedtls.a
+lib/libmbedtls.so
+lib/libmbedtls.so.18
+lib/libmbedtls.so.${PKGVERSION}
+lib/libmbedx509.a
+lib/libmbedx509.so
+lib/libmbedx509.so.${PKGVERSION}
+lib/libmbedx509.so.4
diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/buildlink3.mk   Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/08/11 06:49:16 wiz Exp $
+
+BUILDLINK_TREE+=       mbedtls3
+
+.if !defined(MBEDTLS3_BUILDLINK3_MK)
+MBEDTLS3_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mbedtls3+=       mbedtls3>=3.2.1
+BUILDLINK_PKGSRCDIR.mbedtls3?=         ../../security/mbedtls3
+
+pkgbase := mbedtls3
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.mbedtls3:Mzlib}
+.include "../../devel/zlib/buildlink3.mk"
+.endif
+.endif # MBEDTLS3_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -mbedtls3
diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/distinfo        Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/08/11 06:49:16 wiz Exp $
+
+BLAKE2s (mbedtls-3.2.1.tar.gz) = 5a7c6540ef9aeeca41b5f4192f3f7550f1e5a1b498a70592c484123552341516
+SHA512 (mbedtls-3.2.1.tar.gz) = e7f1726d2cdae6c580d588b40c8a51b9e353786efdd2e50fd1c11c7f46a2b6fe2622cfe2ee5cf998ec762b5ebf8f4720cfc1a1ecaebc497489f9d6a263a83523
+Size (mbedtls-3.2.1.tar.gz) = 4097571 bytes
diff -r 5e7f07fe0e7f -r 0e6309f4ff4a security/mbedtls3/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mbedtls3/options.mk      Thu Aug 11 06:49:16 2022 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2022/08/11 06:49:16 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.mbedtls3
+PKG_SUPPORTED_OPTIONS= zlib
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mzlib)
+.  include "../../devel/zlib/buildlink3.mk"
+CMAKE_ARGS+=   -DENABLE_ZLIB_SUPPORT=ON
+.else
+CMAKE_ARGS+=   -DENABLE_ZLIB_SUPPORT=OFF
+.endif



Home | Main Index | Thread Index | Old Index