openssl: [testing] 3.0.0

This commit is contained in:
Dylan Araps 2021-09-07 18:49:08 +03:00
parent a2e29586e6
commit 4fc2960b14
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
8 changed files with 101 additions and 0 deletions

47
testing/openssl/README Normal file
View File

@ -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

31
testing/openssl/build Executable file
View File

@ -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
)

View File

@ -0,0 +1,3 @@
59eedfcb46c25214c9bd37ed6078297b4df01d012267fe9e9eee31f61bc70536
24c73fe67679b6046eeb2e9ed8d0158325dcb246a474878dfa407e62bcc0916d
d4bfcd9ee16eff65bdf6de1e0a3ccac667fdf52d98d0eda5c3e3f638aad13b89

1
testing/openssl/depends Normal file
View File

@ -0,0 +1 @@
perl make

View File

@ -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"
}

3
testing/openssl/post-install Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/etc/ssl/update-certdata.sh

3
testing/openssl/sources Normal file
View File

@ -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

1
testing/openssl/version Normal file
View File

@ -0,0 +1 @@
3.0.0 1