All checks were successful
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m32s
Test / Hakurei (push) Successful in 3m39s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 5m0s
Test / Hakurei (race detector) (push) Successful in 5m56s
Test / Flake checks (push) Successful in 1m29s
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>
36 lines
848 B
Go
36 lines
848 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newLibseccomp() (pkg.Artifact, string) {
|
|
const (
|
|
version = "2.6.0"
|
|
checksum = "mMu-iR71guPjFbb31u-YexBaanKE_nYPjPux-vuBiPfS_0kbwJdfCGlkofaUm-EY"
|
|
)
|
|
return t.NewPackage("libseccomp", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/seccomp/libseccomp/releases/download/"+
|
|
"v"+version+"/libseccomp-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &PackageAttr{
|
|
ScriptEarly: `
|
|
ln -s ../system/bin/bash /bin/
|
|
`,
|
|
}, (*MakeHelper)(nil),
|
|
Bash,
|
|
Diffutils,
|
|
Gperf,
|
|
|
|
KernelHeaders,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[Libseccomp] = Metadata{
|
|
f: Toolchain.newLibseccomp,
|
|
|
|
Name: "libseccomp",
|
|
Description: "an interface to the Linux Kernel's syscall filtering mechanism",
|
|
Website: "https://github.com/seccomp/libseccomp/",
|
|
}
|
|
}
|