All checks were successful
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m36s
Test / Hakurei (push) Successful in 3m42s
Test / ShareFS (push) Successful in 3m48s
Test / Sandbox (race detector) (push) Successful in 4m55s
Test / Hakurei (race detector) (push) Successful in 5m53s
Test / Flake checks (push) Successful in 1m35s
This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
49 lines
1023 B
Go
49 lines
1023 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newOpenSSL() (pkg.Artifact, string) {
|
|
const (
|
|
version = "3.5.5"
|
|
checksum = "I2Hp1LxcTR8j4G6LFEQMVy6EJH-Na1byI9Ti-ThBot6EMLNRnjGXGq-WXrim3Fkz"
|
|
)
|
|
return t.NewPackage("openssl", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/openssl/openssl/releases/download/"+
|
|
"openssl-"+version+"/openssl-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &PackageAttr{
|
|
Env: []string{
|
|
"CC=cc",
|
|
},
|
|
}, &MakeHelper{
|
|
OmitDefaults: true,
|
|
|
|
ConfigureName: "/usr/src/openssl/Configure",
|
|
Configure: [][2]string{
|
|
{"prefix", "/system"},
|
|
{"libdir", "lib"},
|
|
{"openssldir", "etc/ssl"},
|
|
},
|
|
Check: []string{
|
|
`HARNESS_JOBS="$(expr "$(nproc)" '*' 2)"`,
|
|
"test",
|
|
},
|
|
},
|
|
Perl,
|
|
Coreutils,
|
|
|
|
Zlib,
|
|
KernelHeaders,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[OpenSSL] = Metadata{
|
|
f: Toolchain.newOpenSSL,
|
|
|
|
Name: "openssl",
|
|
Description: "TLS/SSL and crypto library",
|
|
Website: "https://www.openssl.org/",
|
|
}
|
|
}
|