This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
openssl.yaml
69 lines (65 loc) · 1.6 KB
/
openssl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package:
name: openssl
version: 3.0.7
epoch: 0
description: "Library and CLI tools for XZ and LZMA compressed files"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: Apache-2.0
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- perl
- build-base
pipeline:
- uses: fetch
with:
uri: https://www.openssl.org/source/openssl-${{package.version}}.tar.gz
expected-sha256: 83049d042a260e696f62406ac5c08bf706fd84383f945cf21bd61e9ed95c396e
- name: Configure and build
runs: |
export CC=${{host.triplet.gnu}}-gcc
export CXX=${{host.triplet.gnu}}-g++
export CPP=${{host.triplet.gnu}}-cpp
case "$(uname -m)" in
arm*) target="armv4"; _threads="no-threads" ;;
*) target="$(uname -m)" ;;
esac
perl ./Configure \
linux-$target \
--prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
enable-ktls \
shared \
no-zlib \
no-async \
no-comp \
no-idea \
no-mdc2 \
no-rc5 \
no-ec2m \
no-sm2 \
no-sm4 \
no-ssl3 \
no-seed \
no-weak-ssl-ciphers \
$_threads \
-Wa,--noexecstack
make -j$(nproc)
- uses: autoconf/make-install
- runs: |
rm ${{targets.destdir}}/usr/bin/c_rehash
- uses: strip