mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-06 06:17:11 +02:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: libseccomp
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
install:
|
|
- build-base
|
|
- gcc-14
|
|
- bash
|
|
- gperf
|
|
dependencies:
|
|
- image: cgr.dev/chainguard/wolfi-base@{{ .WOLFI_BASE_REF }}
|
|
steps:
|
|
- env:
|
|
CC: gcc-14
|
|
CXX: g++-14
|
|
sources:
|
|
- url: https://github.com/seccomp/libseccomp/releases/download/v{{ .LIBSECCOMP_VERSION }}/libseccomp-{{ .LIBSECCOMP_VERSION }}.tar.gz
|
|
destination: libseccomp.tar.gz
|
|
sha256: {{ .LIBSECCOMP_SHA256 }}
|
|
sha512: {{ .LIBSECCOMP_SHA512 }}
|
|
prepare:
|
|
- |
|
|
tar -xzf libseccomp.tar.gz --strip-components=1
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
../configure \
|
|
--prefix=/usr/local/glibc
|
|
build:
|
|
- |
|
|
cd build
|
|
make -j $(nproc)
|
|
install:
|
|
- |
|
|
cd build
|
|
make install DESTDIR=/rootfs
|
|
# we only need the libs and headers, remove everything else
|
|
find /rootfs/usr/local/ -type d \( -name bin -o -name sbin -o -name share \) -prune -exec rm -rf {} \;
|
|
sbom:
|
|
outputPath: /rootfs/usr/local/share/spdx/libseccomp.spdx.json
|
|
version: {{ .LIBSECCOMP_VERSION }}
|
|
cpes:
|
|
- cpe:2.3:a:libseccomp_project:libseccomp:{{ .LIBSECCOMP_VERSION }}:*:*:*:*:*:*:*
|
|
licenses:
|
|
- LGPL-2.1
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /rootfs
|