aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/openssl.go
blob: 2c8233009cefb22452d43bcf99d90fb38a433128 (plain)
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
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newOpenSSL() (pkg.Artifact, string) {
	const (
		version  = "3.6.1"
		checksum = "boMAj2SIVIFXHswZva3qHJuFEpc32rxCCu07wjMPsVe9nn_976BGMmW_5P1zthgg"
	)
	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/",

		ID: 2566,

		// strange malformed tags treated as pre-releases in Anitya
		latest: (*Versions).getStable,
	}
}