commit 0f66e5686e2ce39c6821efcf2ead70bfcf4a4a83
parent c4145b75238fb382f4a03c1482a1d844fac9f3f1
Author: Shokara Kou <kou@13f0.net>
Date: Thu, 10 Aug 2023 23:15:48 -0400
add security/bearssl
Diffstat:
10 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/security/bearssl/CVS/Entries b/security/bearssl/CVS/Entries
@@ -0,0 +1,4 @@
+/Makefile/1.41/Fri Mar 11 19:51:40 2022//
+/distinfo/1.22/Sat May 1 13:42:25 2021//
+D/patches////
+D/pkg////
diff --git a/security/bearssl/CVS/Repository b/security/bearssl/CVS/Repository
@@ -0,0 +1 @@
+ports/productivity/calcurse
diff --git a/security/bearssl/CVS/Root b/security/bearssl/CVS/Root
@@ -0,0 +1 @@
+/cvs
diff --git a/security/bearssl/Makefile b/security/bearssl/Makefile
@@ -0,0 +1,23 @@
+COMMENT= a C implementation of the SSL/TLS protocol (RFC 5246)
+
+DISTNAME= bearssl-0.6
+REVISION= 1
+
+CATEGORIES= security
+
+HOMEPAGE= https://www.bearssl.org/
+
+# MIT
+PERMIT_PACKAGE= Yes
+
+WANTLIB += c
+
+MASTER_SITES= ${HOMEPAGE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/build/brssl ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/build/libbearssl.a ${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/build/libbearssl.so ${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/inc/* ${PREFIX}/include/
+
+.include <bsd.port.mk>
diff --git a/security/bearssl/distinfo b/security/bearssl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (bearssl-0.6.tar.gz) = ZwW7oXFJYbQaco38Xeu+NI0pZsEXZJOS+MgTnvyD/xQ=
+SIZE (bearssl-0.6.tar.gz) = 765094
diff --git a/security/bearssl/pkg/CVS/Entries b/security/bearssl/pkg/CVS/Entries
@@ -0,0 +1,3 @@
+/DESCR/1.1.1.1/Sat Oct 27 15:25:37 2007//
+/PLIST/1.13/Fri Mar 11 19:51:40 2022//
+D
diff --git a/security/bearssl/pkg/CVS/Repository b/security/bearssl/pkg/CVS/Repository
@@ -0,0 +1 @@
+ports/productivity/calcurse/pkg
diff --git a/security/bearssl/pkg/CVS/Root b/security/bearssl/pkg/CVS/Root
@@ -0,0 +1 @@
+/cvs
diff --git a/security/bearssl/pkg/DESCR b/security/bearssl/pkg/DESCR
@@ -0,0 +1,19 @@
+BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written
+in C. It aims at offering the following features:
+
+* Be correct and secure. In particular, insecure protocol versions and
+ choices of algorithms are not supported, by design; cryptographic
+ algorithm implementations are constant-time by default.
+
+* Be small, both in RAM and code footprint. For instance, a minimal
+ server implementation may fit in about 20 kilobytes of compiled code and
+ 25 kilobytes of RAM.
+
+* Be highly portable. BearSSL targets not operating systems like Linux
+ and Windows, but also small embedded systems and even special contexts
+ like bootstrap code.
+
+* Be feature-rich and extensible. SSL/TLS has many defined cipher suites
+ and extensions; BearSSL should implement most of them, and allow extra
+ algorithm implementations to be added afterwards, possibly from third
+ parties.
diff --git a/security/bearssl/pkg/PLIST b/security/bearssl/pkg/PLIST
@@ -0,0 +1,16 @@
+@bin bin/brssl
+include/bearssl.h
+include/bearssl_aead.h
+include/bearssl_block.h
+include/bearssl_ec.h
+include/bearssl_hash.h
+include/bearssl_hmac.h
+include/bearssl_kdf.h
+include/bearssl_pem.h
+include/bearssl_prf.h
+include/bearssl_rand.h
+include/bearssl_rsa.h
+include/bearssl_ssl.h
+include/bearssl_x509.h
+@static-lib lib/libbearssl.a
+@so lib/libbearssl.so