Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib/engines Add engines infrastr...
details: https://anonhg.NetBSD.org/src/rev/92f5f6af67df
branches: trunk
changeset: 995134:92f5f6af67df
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 08 23:24:01 2018 +0000
description:
Add engines infrastructure, not hooked to the build:
1. sets needs to be fixed
2. need to decide if I am going to add engine.so.MAJOR or use engine.so
like OpenSSL wants
3. padlock is MD (x86) needs asm to be added, and conditionally built
diffstat:
crypto/external/bsd/openssl/lib/engines/Makefile | 8 +++
crypto/external/bsd/openssl/lib/engines/capi/Makefile | 6 ++
crypto/external/bsd/openssl/lib/engines/dasync/Makefile | 6 ++
crypto/external/bsd/openssl/lib/engines/engines.mk | 36 +++++++++++++++
crypto/external/bsd/openssl/lib/engines/ossltest/Makefile | 6 ++
crypto/external/bsd/openssl/lib/engines/padlock/Makefile | 6 ++
6 files changed, 68 insertions(+), 0 deletions(-)
diffs (92 lines):
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/Makefile Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2018/12/08 23:24:01 christos Exp $
+
+.include "bsd.own.mk"
+
+# OpenSSL engines.
+SUBDIR= capi dasync ossltest padlock
+
+.include <bsd.subdir.mk>
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/capi/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/capi/Makefile Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2018/12/08 23:24:01 christos Exp $
+
+LIB= capi
+SRCS= e_capi.c e_capi_err.c
+
+.include "../engines.mk"
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/dasync/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/dasync/Makefile Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2018/12/08 23:24:01 christos Exp $
+
+LIB= dasync
+SRCS= e_dasync.c e_dasync_err.c
+
+.include "../engines.mk"
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/engines.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/engines.mk Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: engines.mk,v 1.1 2018/12/08 23:24:01 christos Exp $
+
+NOLINT= # don't build a lint library
+NOPROFILE= # don't build a profile library
+NOPICINSTALL= # don't install _pic.a library
+
+.include <bsd.own.mk>
+
+SHLIB_MAJOR=0
+SHLIB_MINOR=0
+
+CRYPTODIST= ${NETBSDSRCDIR}/crypto
+.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
+.PATH: ${OPENSSLSRC}/engines
+
+CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include
+
+.if defined(MLIBDIR)
+LIBDIR=/usr/lib/${MLIBDIR}/openssl
+.else
+LIBDIR=/usr/lib/openssl
+.endif
+
+.if ${MKPIC} != "no"
+.PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so
+libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so
+.else
+libinstall::
+.endif
+
+.include <bsd.lib.mk>
+
+${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION}
+ ${_MKTARGET_INSTALL}
+ ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${.ALLSRC} ${.TARGET}
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/ossltest/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/ossltest/Makefile Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2018/12/08 23:24:02 christos Exp $
+
+LIB= ossltest
+SRCS= e_ossltest.c e_ossltest_err.c
+
+.include "../engines.mk"
diff -r da54d9fc673b -r 92f5f6af67df crypto/external/bsd/openssl/lib/engines/padlock/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssl/lib/engines/padlock/Makefile Sat Dec 08 23:24:01 2018 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2018/12/08 23:24:02 christos Exp $
+
+LIB= padlock
+SRCS= e_padlock.c
+
+.include "../engines.mk"
Home |
Main Index |
Thread Index |
Old Index