From 2e678fda6fc3c05cd33b592170bc72ae100f0658 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 7 Jul 2021 23:24:26 +0300 Subject: [PATCH] openssl: 1.1.1k (testing) --- testing/openssl/build | 13 +++++++++++++ testing/openssl/checksums | 2 ++ testing/openssl/files/update-certdata.sh | 12 ++++++++++++ testing/openssl/post-install | 3 +++ testing/openssl/sources | 2 ++ testing/openssl/version | 1 + 6 files changed, 33 insertions(+) create mode 100755 testing/openssl/build create mode 100644 testing/openssl/checksums 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/build b/testing/openssl/build new file mode 100755 index 00000000..a696f653 --- /dev/null +++ b/testing/openssl/build @@ -0,0 +1,13 @@ +#!/bin/sh -e + +./Configure \ + --prefix=/usr \ + --openssldir=/etc/ssl \ + --libdir=lib \ + shared linux-x86_64 + +make depend +make +make DESTDIR="$1" install_sw install_ssldirs + +cp -f update-certdata.sh "$1/etc/ssl" diff --git a/testing/openssl/checksums b/testing/openssl/checksums new file mode 100644 index 00000000..a3f6dfcd --- /dev/null +++ b/testing/openssl/checksums @@ -0,0 +1,2 @@ +892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5 +d4bfcd9ee16eff65bdf6de1e0a3ccac667fdf52d98d0eda5c3e3f638aad13b89 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..c265c391 --- /dev/null +++ b/testing/openssl/sources @@ -0,0 +1,2 @@ +https://www.openssl.org/source/openssl-1.1.1k.tar.gz +files/update-certdata.sh diff --git a/testing/openssl/version b/testing/openssl/version new file mode 100644 index 00000000..42433e38 --- /dev/null +++ b/testing/openssl/version @@ -0,0 +1 @@ +1.1.1k 1