2022-08-02 04:18:01 +03:00
|
|
|
distributable:
|
2022-12-16 18:59:59 +03:00
|
|
|
url: https://www.openssl.org/source/openssl-{{version.raw}}.tar.gz
|
|
|
|
sha: ${{url}}.sha256
|
|
|
|
sig: ${{url}}.asc
|
2022-08-02 04:18:01 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-04-10 16:46:29 +03:00
|
|
|
github: openssl/openssl/releases
|
2023-03-21 15:24:59 +03:00
|
|
|
strip: /^OpenSSL /
|
2022-08-02 04:18:01 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/openssl
|
|
|
|
- bin/c_rehash
|
|
|
|
|
2023-01-19 11:34:57 +03:00
|
|
|
dependencies:
|
|
|
|
curl.se/ca-certs: '*'
|
|
|
|
|
2022-08-02 04:18:01 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
perl.org: 5
|
|
|
|
script: |
|
2023-10-24 23:03:55 +03:00
|
|
|
patch -p1 <props/x509_def.c.diff
|
2022-09-14 00:53:12 +03:00
|
|
|
|
2022-09-14 18:43:44 +03:00
|
|
|
./Configure --prefix={{ prefix }} $ARCH no-tests $ARGS --openssldir={{prefix}}/ssl
|
2022-08-02 04:18:01 +03:00
|
|
|
make --jobs {{ hw.concurrency }}
|
2022-09-14 18:43:44 +03:00
|
|
|
make install_sw # `_sw` avoids installing docs
|
|
|
|
|
2023-04-20 09:40:51 +03:00
|
|
|
cd "{{prefix}}"
|
2023-04-20 09:25:06 +03:00
|
|
|
if test -d lib64; then
|
|
|
|
mv lib64 lib
|
|
|
|
ln -s lib lib64
|
|
|
|
fi
|
|
|
|
|
2022-09-01 20:49:14 +03:00
|
|
|
env:
|
|
|
|
darwin/aarch64: {ARCH: 'darwin64-arm64-cc'}
|
|
|
|
darwin/x86-64: {ARCH: 'darwin64-x86_64-cc'}
|
|
|
|
linux/aarch64: {ARCH: 'linux-aarch64'}
|
|
|
|
linux/x86-64: {ARCH: 'linux-x86_64'}
|
2022-09-14 00:53:12 +03:00
|
|
|
darwin:
|
2022-09-14 18:43:44 +03:00
|
|
|
# supposedly enables important optimizations
|
|
|
|
ARGS: enable-ec_nistp_64_gcc_128
|
|
|
|
test:
|
|
|
|
make test
|
2022-09-14 00:53:12 +03:00
|
|
|
|
|
|
|
#TODO need to test the SSL certs work
|
|
|
|
# otherwise we are basically relying on wget etc. to test for it
|
2022-08-02 04:18:01 +03:00
|
|
|
|
|
|
|
test:
|
2022-09-14 18:43:44 +03:00
|
|
|
dependencies:
|
2023-10-24 23:03:55 +03:00
|
|
|
pkgx.sh: ^1
|
|
|
|
script:
|
|
|
|
- echo "This is a test file" > in
|
|
|
|
- openssl dgst -sha256 -out out ./in
|
2023-03-21 15:24:59 +03:00
|
|
|
|
2023-10-24 23:03:55 +03:00
|
|
|
- run: test "$(cat ./out)" = "SHA2-256(./in)= $SAMPLE"
|
|
|
|
if: ^3
|
|
|
|
- run: test "$(cat ./out)" = "SHA256(./in)= $SAMPLE"
|
|
|
|
if: ^1
|
|
|
|
|
|
|
|
# test the certs work
|
|
|
|
- run: pkgx wget tea.xyz
|
|
|
|
if: ^1
|
2023-03-21 15:24:59 +03:00
|
|
|
# ^^ can't test openssl 3 yet since like, what uses it even?!
|
2023-10-24 23:03:55 +03:00
|
|
|
# especially since our curl and wget are hard-locked to ^1.1 for now
|
2022-08-02 04:18:01 +03:00
|
|
|
env:
|
2023-03-21 15:24:59 +03:00
|
|
|
SAMPLE: c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35
|