security/boringssl: create port

Fork of OpenSSL that is designed to meet Google's needs

WWW: https://github.com/google/boringssl
This commit is contained in:
Steve Wills 2017-06-29 15:51:01 +00:00
parent a85b06a12b
commit 801f06b11e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=444652
8 changed files with 146 additions and 0 deletions

View file

@ -46,6 +46,7 @@
SUBDIR += bfbtester SUBDIR += bfbtester
SUBDIR += binwalk SUBDIR += binwalk
SUBDIR += blindelephant SUBDIR += blindelephant
SUBDIR += boringssl
SUBDIR += botan110 SUBDIR += botan110
SUBDIR += bro SUBDIR += bro
SUBDIR += broccoli SUBDIR += broccoli

View file

@ -0,0 +1,33 @@
# $FreeBSD$
PORTNAME= boringssl
PORTVERSION= 0.0.0.0.2017.06.28.01
CATEGORIES= security
MAINTAINER= swills@FreeBSD.org
COMMENT= Fork of OpenSSL
BUILD_DEPENDS= go:lang/go
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 3c97292
USES= cmake localbase perl5
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1
USE_LDCONFIG= yes
LDFLAGS+= -Wl,-rpath,${PREFIX}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tool/bssl ${STAGEDIR}${PREFIX}/bin/
(cd ${WRKSRC}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include)
${INSTALL_LIB} ${WRKSRC}/crypto/libcrypto.so ${STAGEDIR}${PREFIX}/lib/libcrypto.so.1.0.0
${INSTALL_LIB} ${WRKSRC}/ssl/libssl.so ${STAGEDIR}${PREFIX}/lib/libssl.so.1.0.0
${LN} -sf libcrypto.so.1 ${STAGEDIR}${PREFIX}/lib/libcrypto.so
${LN} -sf libcrypto.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libcrypto.so.1
${LN} -sf libssl.so.1 ${STAGEDIR}${PREFIX}/lib/libssl.so
${LN} -sf libssl.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libssl.so.1
test: build
cd ${WRKSRC} ; ${MAKE_CMD} run_tests
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1498679351
SHA256 (google-boringssl-0.0.0.0.2017.06.28.01-3c97292_GH0.tar.gz) = 30df74b1bc32f9e6b34009bb4adc3c97c7cd1379ebd291f850dcee35d9b31cf6
SIZE (google-boringssl-0.0.0.0.2017.06.28.01-3c97292_GH0.tar.gz) = 12809805

View file

@ -0,0 +1,13 @@
--- crypto/bio/bio_test.cc.orig 2017-06-28 13:35:29 UTC
+++ crypto/bio/bio_test.cc
@@ -12,10 +12,6 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
-#if !defined(_POSIX_C_SOURCE)
-#define _POSIX_C_SOURCE 201410L
-#endif
-
#include <algorithm>
#include <string>

View file

@ -0,0 +1,13 @@
--- crypto/lhash/lhash_test.cc.orig 2017-06-28 13:35:29 UTC
+++ crypto/lhash/lhash_test.cc
@@ -12,10 +12,6 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
-#if !defined(_POSIX_C_SOURCE)
-#define _POSIX_C_SOURCE 201410L
-#endif
-
#include <openssl/lhash.h>
#include <stdio.h>

View file

@ -0,0 +1,3 @@
Fork of OpenSSL that is designed to meet Google's needs
WWW: https://github.com/google/boringssl

View file

@ -0,0 +1,79 @@
bin/bssl
include/openssl/aead.h
include/openssl/aes.h
include/openssl/arm_arch.h
include/openssl/asn1.h
include/openssl/asn1_mac.h
include/openssl/asn1t.h
include/openssl/base.h
include/openssl/base64.h
include/openssl/bio.h
include/openssl/blowfish.h
include/openssl/bn.h
include/openssl/buf.h
include/openssl/buffer.h
include/openssl/bytestring.h
include/openssl/cast.h
include/openssl/chacha.h
include/openssl/cipher.h
include/openssl/cmac.h
include/openssl/conf.h
include/openssl/cpu.h
include/openssl/crypto.h
include/openssl/curve25519.h
include/openssl/des.h
include/openssl/dh.h
include/openssl/digest.h
include/openssl/dsa.h
include/openssl/dtls1.h
include/openssl/ec.h
include/openssl/ec_key.h
include/openssl/ecdh.h
include/openssl/ecdsa.h
include/openssl/engine.h
include/openssl/err.h
include/openssl/evp.h
include/openssl/ex_data.h
include/openssl/hkdf.h
include/openssl/hmac.h
include/openssl/is_boringssl.h
include/openssl/lhash.h
include/openssl/lhash_macros.h
include/openssl/md4.h
include/openssl/md5.h
include/openssl/mem.h
include/openssl/nid.h
include/openssl/obj.h
include/openssl/obj_mac.h
include/openssl/objects.h
include/openssl/opensslconf.h
include/openssl/opensslv.h
include/openssl/ossl_typ.h
include/openssl/pem.h
include/openssl/pkcs12.h
include/openssl/pkcs7.h
include/openssl/pkcs8.h
include/openssl/poly1305.h
include/openssl/pool.h
include/openssl/rand.h
include/openssl/rc4.h
include/openssl/ripemd.h
include/openssl/rsa.h
include/openssl/safestack.h
include/openssl/sha.h
include/openssl/srtp.h
include/openssl/ssl.h
include/openssl/ssl3.h
include/openssl/stack.h
include/openssl/thread.h
include/openssl/tls1.h
include/openssl/type_check.h
include/openssl/x509.h
include/openssl/x509_vfy.h
include/openssl/x509v3.h
lib/libcrypto.so
lib/libcrypto.so.1
lib/libcrypto.so.1.0.0
lib/libssl.so
lib/libssl.so.1
lib/libssl.so.1.0.0

View file

@ -0,0 +1 @@
OPENSSL_SHLIBVER?= 1