From 4fc2960b1449a0366e8891c4f938e0f011815c6b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 7 Sep 2021 18:49:08 +0300 Subject: [PATCH] openssl: [testing] 3.0.0 --- testing/openssl/README | 47 ++++++++++++++++++++++++ testing/openssl/build | 31 ++++++++++++++++ testing/openssl/checksums | 3 ++ testing/openssl/depends | 1 + testing/openssl/files/update-certdata.sh | 12 ++++++ testing/openssl/post-install | 3 ++ testing/openssl/sources | 3 ++ testing/openssl/version | 1 + 8 files changed, 101 insertions(+) create mode 100644 testing/openssl/README create mode 100755 testing/openssl/build create mode 100644 testing/openssl/checksums create mode 100644 testing/openssl/depends create mode 100755 testing/openssl/files/update-certdata.sh create mode 100755 testing/openssl/post-install create mode 100644 testing/openssl/sources create mode 100644 testing/openssl/version diff --git a/testing/openssl/README b/testing/openssl/README new file mode 100644 index 00000000..aa9c3af7 --- /dev/null +++ b/testing/openssl/README @@ -0,0 +1,47 @@ +openssl +________________________________________________________________________________ + +OpenSSL is a software library for applications that secure communications over +computer networks against eavesdropping or need to identify the party at the +other end. It is widely used by Internet servers, including the majority of +HTTPS websites. + +OpenSSL contains an open-source implementation of the SSL and TLS protocols. +The core library, written in the C programming language, implements basic +cryptographic functions and provides various utility functions. Wrappers +allowing the use of the OpenSSL library in a variety of computer languages are +available. [0] + +Upstream: https://www.openssl.org/ + + +[000] Index +________________________________________________________________________________ + +* Installation ........................................................... [001] +* Usage .................................................................. [002] +* References ............................................................. [003] + + +[001] Installation +________________________________________________________________________________ + ++------------------------------------------------------------------------------+ +| | +| $ kiss b openssl | +| | ++------------------------------------------------------------------------------+ + + +[002] Usage +________________________________________________________________________________ + +Refer to the manual pages and command help output. To update the system's SSL +certificates, run /etc/ssl/update-certdata.sh. + + +[003] References +________________________________________________________________________________ + +[0] https://en.wikipedia.org/wiki/OpenSSL + diff --git a/testing/openssl/build b/testing/openssl/build new file mode 100755 index 00000000..240bd480 --- /dev/null +++ b/testing/openssl/build @@ -0,0 +1,31 @@ +#!/bin/sh -e + +./Configure \ + --prefix=/usr \ + --openssldir=/etc/ssl \ + --libdir=lib \ + no-unit-test \ + shared \ + linux-x86_64 + +make depend +make + +make DESTDIR="$1" \ + install_sw \ + install_ssldirs \ + install_man_docs + +cp -f update-certdata.sh "$1/etc/ssl" + +# Libretls is LibreSSL's libtls library for OpenSSL. +( + cd libretls + + ./configure \ + --prefix=/usr \ + --with-openssl="$1/usr" + + make + make install +) diff --git a/testing/openssl/checksums b/testing/openssl/checksums new file mode 100644 index 00000000..e5d67a0a --- /dev/null +++ b/testing/openssl/checksums @@ -0,0 +1,3 @@ +59eedfcb46c25214c9bd37ed6078297b4df01d012267fe9e9eee31f61bc70536 +24c73fe67679b6046eeb2e9ed8d0158325dcb246a474878dfa407e62bcc0916d +d4bfcd9ee16eff65bdf6de1e0a3ccac667fdf52d98d0eda5c3e3f638aad13b89 diff --git a/testing/openssl/depends b/testing/openssl/depends new file mode 100644 index 00000000..97a95494 --- /dev/null +++ b/testing/openssl/depends @@ -0,0 +1 @@ +perl make diff --git a/testing/openssl/files/update-certdata.sh b/testing/openssl/files/update-certdata.sh new file mode 100755 index 00000000..29230cfb --- /dev/null +++ b/testing/openssl/files/update-certdata.sh @@ -0,0 +1,12 @@ +#!/bin/sh -e + +[ -w /etc/ssl ] || { + printf '%s\n' "${0##*/}: root required to update cert." >&2 + exit 1 +} + +cd /etc/ssl && { + curl -LO https://curl.haxx.se/ca/cacert.pem + mv -f cacert.pem cert.pem + printf '%s\n' "${0##*/}: updated cert.pem" +} diff --git a/testing/openssl/post-install b/testing/openssl/post-install new file mode 100755 index 00000000..c12dca76 --- /dev/null +++ b/testing/openssl/post-install @@ -0,0 +1,3 @@ +#!/bin/sh + +/etc/ssl/update-certdata.sh diff --git a/testing/openssl/sources b/testing/openssl/sources new file mode 100644 index 00000000..c3d8154f --- /dev/null +++ b/testing/openssl/sources @@ -0,0 +1,3 @@ +https://www.openssl.org/source/openssl-VERSION.tar.gz +https://causal.agency/libretls/libretls-3.3.4.tar.gz libretls +files/update-certdata.sh diff --git a/testing/openssl/version b/testing/openssl/version new file mode 100644 index 00000000..4fc4c8a7 --- /dev/null +++ b/testing/openssl/version @@ -0,0 +1 @@ +3.0.0 1