pkgsrc-WIP-changes archive

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

Add MatrixSSL, an embedded SSL implementation designed for small footprint applications and devices.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz-web-git%schmonz.com@localhost>
Pushed By:	schmonz
Date:		Thu Nov 19 12:24:32 2020 +0100
Changeset:	80b31f04b38f16dc7a9ec985d819eb375be9c6a3

Added Files:
	matrixssl/DESCR
	matrixssl/Makefile
	matrixssl/PLIST
	matrixssl/buildlink3.mk
	matrixssl/distinfo
	matrixssl/patches/patch-common.mk
	matrixssl/patches/patch-core_osdep-types.h

Log Message:
Add MatrixSSL, an embedded SSL implementation designed for small
footprint applications and devices.

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

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

diffstat:
 matrixssl/DESCR                            |  2 ++
 matrixssl/Makefile                         | 40 ++++++++++++++++++++++++++++++
 matrixssl/PLIST                            | 27 ++++++++++++++++++++
 matrixssl/buildlink3.mk                    | 15 +++++++++++
 matrixssl/distinfo                         |  8 ++++++
 matrixssl/patches/patch-common.mk          | 15 +++++++++++
 matrixssl/patches/patch-core_osdep-types.h | 11 ++++++++
 7 files changed, 118 insertions(+)

diffs:
diff --git a/matrixssl/DESCR b/matrixssl/DESCR
new file mode 100644
index 0000000000..323f985764
--- /dev/null
+++ b/matrixssl/DESCR
@@ -0,0 +1,2 @@
+MatrixSSL is an embedded SSL implementation designed for small footprint
+applications and devices.
diff --git a/matrixssl/Makefile b/matrixssl/Makefile
new file mode 100644
index 0000000000..d1c279e0a1
--- /dev/null
+++ b/matrixssl/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+DISTNAME=	Crypt-MatrixSSL3-v${PKGVERSION_NOREV}
+PKGNAME=	matrixssl-3.9.3
+CATEGORIES=	security
+MASTER_SITES=	https://cpan.metacpan.org/authors/id/P/PO/POWERMAN/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/powerman/perl-Crypt-MatrixSSL3
+COMMENT=	Small embedded SSL implementation
+LICENSE=	gnu-gpl-v1 OR gnu-gpl-v2 OR gnu-gpl-v3
+
+WRKSRC=		${WRKDIR}/${DISTNAME}/inc/${PKGNAME_NOREV:S/./-/g}-open
+
+USE_TOOLS+=	gmake
+
+MAKE_ENV+=	MATRIXSSL_ROOT=${WRKSRC:Q}
+
+INSTALLATION_DIRS=	include/matrixssl/core include/matrixssl/crypto lib/matrixssl
+
+post-extract:
+	cd ${WRKDIR}/${DISTNAME}/inc; \
+		${TAR} -zxf matrixssl-3-9-3-open.tar.gz
+
+do-install:
+	cd ${WRKSRC}; \
+	for f in matrixssl/*.h; do \
+		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/include/matrixssl; \
+	done; \
+	for f in core/*.h; do \
+		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/include/matrixssl/core; \
+	done; \
+	for f in crypto/*.h; do \
+		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/include/matrixssl/crypto; \
+	done; \
+	for f in crypto/libcrypt_s.a core/libcore_s.a matrixssl/libssl_s.a; do \
+		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/lib/matrixssl; \
+	done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/matrixssl/PLIST b/matrixssl/PLIST
new file mode 100644
index 0000000000..9bcd4c7d4d
--- /dev/null
+++ b/matrixssl/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD$
+include/matrixssl/core/coreApi.h
+include/matrixssl/core/coreConfig.h
+include/matrixssl/core/list.h
+include/matrixssl/core/osdep-types.h
+include/matrixssl/core/osdep.h
+include/matrixssl/core/psUtil.h
+include/matrixssl/core/psbuf.h
+include/matrixssl/core/psmalloc.h
+include/matrixssl/core/psnet.h
+include/matrixssl/crypto/cryptoApi.h
+include/matrixssl/crypto/cryptoCheck.h
+include/matrixssl/crypto/cryptoConfig.h
+include/matrixssl/crypto/cryptoImpl.h
+include/matrixssl/crypto/cryptolib.h
+include/matrixssl/matrixsslApi.h
+include/matrixssl/matrixsslCheck.h
+include/matrixssl/matrixsslConfig.h
+include/matrixssl/matrixsslImpl.h
+include/matrixssl/matrixsslNet.h
+include/matrixssl/matrixsslSocket.h
+include/matrixssl/matrixssllib.h
+include/matrixssl/psExt.h
+include/matrixssl/version.h
+lib/matrixssl/libcore_s.a
+lib/matrixssl/libcrypt_s.a
+lib/matrixssl/libssl_s.a
diff --git a/matrixssl/buildlink3.mk b/matrixssl/buildlink3.mk
new file mode 100644
index 0000000000..5cc43fb806
--- /dev/null
+++ b/matrixssl/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	matrixssl
+
+.if !defined(MATRIXSSL_BUILDLINK3_MK)
+MATRIXSSL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.matrixssl+=	matrixssl>=3.9.3
+BUILDLINK_PKGSRCDIR.matrixssl?=		../../wip/matrixssl
+BUILDLINK_INCDIRS.matrixssl+=		include/matrixssl
+BUILDLINK_LIBDIRS.matrixssl+=		lib/matrixssl
+BUILDLINK_DEPMETHOD.matrixssl?=		build
+.endif	# MATRIXSSL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-matrixssl
diff --git a/matrixssl/distinfo b/matrixssl/distinfo
new file mode 100644
index 0000000000..23228f5883
--- /dev/null
+++ b/matrixssl/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (Crypt-MatrixSSL3-v3.9.3.tar.gz) = 6ee3a8dfb966560728f31de72bf3d7c2833b464c
+RMD160 (Crypt-MatrixSSL3-v3.9.3.tar.gz) = e8c7a2882d6f5f3d645e80901ad73f9870b88605
+SHA512 (Crypt-MatrixSSL3-v3.9.3.tar.gz) = 9a61e63f3f6666c473520deb9d9980561483e4b4461bac8eb627853085235eba1dd7f332e5b7d94b39bdbdc0dbbc11b93a7a782806ca15f568509c14c9b7d0b4
+Size (Crypt-MatrixSSL3-v3.9.3.tar.gz) = 4865841 bytes
+SHA1 (patch-common.mk) = f60a7be562de1076e8d5458c0fbc501b42e99b9a
+SHA1 (patch-core_osdep-types.h) = 201039c3062e80d8a38ad425b9235da3d05a3084
diff --git a/matrixssl/patches/patch-common.mk b/matrixssl/patches/patch-common.mk
new file mode 100644
index 0000000000..67bc5a5aff
--- /dev/null
+++ b/matrixssl/patches/patch-common.mk
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Let pkgsrc tell us where macOS system headers are.
+
+--- common.mk.orig	2017-06-28 06:34:11.000000000 +0000
++++ common.mk
+@@ -309,7 +309,7 @@ endif
+ # OS X Target
+ ifneq (,$(findstring -apple,$(CCARCH)))
+  OSDEP:=POSIX
+- CFLAGS+=-isystem -I/usr/include
++ #CFLAGS+=-isystem -I/usr/include
+ endif
+ 
+ # Bare Metal / RTOS Target
diff --git a/matrixssl/patches/patch-core_osdep-types.h b/matrixssl/patches/patch-core_osdep-types.h
new file mode 100644
index 0000000000..dc22aafb2d
--- /dev/null
+++ b/matrixssl/patches/patch-core_osdep-types.h
@@ -0,0 +1,11 @@
+$NetBSD$
+
+Get size_t on at least macOS.
+
+--- core/osdep-types.h.orig	2017-06-28 06:34:11.000000000 +0000
++++ core/osdep-types.h
+@@ -1,3 +1,4 @@
++#include <sys/types.h>
+ /**
+  *      @file    osdep-types.h
+  *      @version 950bba4 (HEAD -> master)


Home | Main Index | Thread Index | Old Index