pkgsrc-WIP-changes archive

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

openssl3: add PLIST conditionals for AF_ALG engine on Linux



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Wed Sep 6 21:09:42 2023 +0200
Changeset:	7e02160c9fe8fa6f4380cf0060ba132f095fd7be

Modified Files:
	openssl3/Makefile
	openssl3/PLIST

Log Message:
openssl3: add PLIST conditionals for AF_ALG engine on Linux

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7e02160c9fe8fa6f4380cf0060ba132f095fd7be

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openssl3/Makefile | 10 ++++++++++
 openssl3/PLIST    |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diffs:
diff --git a/openssl3/Makefile b/openssl3/Makefile
index 45100cf130..7247524c84 100644
--- a/openssl3/Makefile
+++ b/openssl3/Makefile
@@ -35,6 +35,16 @@ MAKE_FLAGS+=		MANDIR=${PREFIX}/${PKGMANDIR}
 CONFIGURE_ARGS+=	no-async
 .endif
 
+PLIST_VARS+=		devcrypto afalg
+# the AF_ALG engine is supported only on Linux, where it
+# is used instead of the BSD /dev/crypto engine.
+.if ${OPSYS} == "Linux" && !exists(/dev/crypto)
+PLIST.afalg=		yes
+.else
+CONFIGURE_ARGS+=	no-afalgeng
+PLIST.devcrypto=	yes
+.endif
+
 # Fix 64-bit build on at least Mac OS X Snow Leopard
 .if ${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "x86_64"
 CONFIGURE_ENV+=		KERNEL_BITS=${ABI}
diff --git a/openssl3/PLIST b/openssl3/PLIST
index 486e46fd4a..7a6112a440 100644
--- a/openssl3/PLIST
+++ b/openssl3/PLIST
@@ -136,8 +136,9 @@ include/openssl/x509_vfy.h
 include/openssl/x509err.h
 include/openssl/x509v3.h
 include/openssl/x509v3err.h
+${PLIST.afalg}lib/engines-3/afalg.${SOEXT}
 lib/engines-3/capi.${SOEXT}
-lib/engines-3/devcrypto.${SOEXT}
+${PLIST.devcrypto}lib/engines-3/devcrypto.${SOEXT}
 lib/engines-3/loader_attic.${SOEXT}
 lib/engines-3/padlock.${SOEXT}
 lib/libcrypto.a


Home | Main Index | Thread Index | Old Index