<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/882875946fc7fe7dd79c321ca4e1ad397eaa59df">https://github.com/macports/macports-ports/commit/882875946fc7fe7dd79c321ca4e1ad397eaa59df</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 882875946fc new port: pkcs11-provider, an OpenSSL 3 PKCS#11 provider
</span>882875946fc is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 882875946fc7fe7dd79c321ca4e1ad397eaa59df
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Tue Apr 23 10:44:17 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> new port: pkcs11-provider, an OpenSSL 3 PKCS#11 provider
</span>---
security/pkcs11-provider/Portfile | 37 ++++++++++++++++++++++
...01-build-Install-provider-in-correct-path.patch | 34 ++++++++++++++++++++
2 files changed, 71 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/pkcs11-provider/Portfile b/security/pkcs11-provider/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f8667d5a5bb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/pkcs11-provider/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup meson 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup latchset pkcs11-provider c822c110760b53d701558a347eae2803891a1c7b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.3-54-gc822c11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 6b750f4dc60305f2b37908d684c47106196d5e55 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 454cccbbb6ee6fc0e220662c6241b8e2a2965b417b6bbde7fbbda61414b7562d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 179352
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {cal @neverpanic} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories security crypto
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A pkcs#11 provider for OpenSSL 3.0+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ An OpenSSL 3 provider to access Hardware or Software Tokens using the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PKCS#11 Cryptographic Token Interface
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-build-Install-provider-in-correct-path.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# NSS, softhsm, p11-kit, gnutls, and opensc are used for testing, but detection happens at build time
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:gnutls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:nss \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:opensc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:p11-kit \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:softhsm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:openssl3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/pkcs11-provider/files/0001-build-Install-provider-in-correct-path.patch b/security/pkcs11-provider/files/0001-build-Install-provider-in-correct-path.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f2cbd40edae
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/pkcs11-provider/files/0001-build-Install-provider-in-correct-path.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,34 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From bf797c5ea8f4deff0bf067fba2c7dd2e6481aee9 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Clemens Lang <cllang@redhat.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 23 Apr 2024 10:36:33 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] build: Install provider in correct path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+OpenSSL's libcrypto.pc file does expose the correct path for providers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+in the modulesdir pkg-config variable (queryable using pkg-config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--variable=modulesdir libcrypto), and we do obtain that path in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+./meson.build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+However, that variable is unused at the moment, and instead
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+src/meson.build "guesses" that path as $libdir/ossl-modules, which may
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+not actually be correct.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Signed-off-by: Clemens Lang <cllang@redhat.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Submitted [https://github.com/latchset/pkcs11-provider/pull/380]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/meson.build | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/meson.build b/src/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 631d474..11aacc8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/meson.build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,5 +34,5 @@ pkcs11_provider = shared_module(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ link_depends: [pkcs11_provider_map],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ link_args: pkcs11_provider_ldflags,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install: true,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- install_dir: get_option('libdir') / 'ossl-modules',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install_dir: provider_path,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.44.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>