talos-extensions/nvidia-gpu/nvidia-container-toolkit/nvidia-container-cli/libseccomp/pkg.yaml
Mateusz Urbanek efcb066a66
docs: add SBOM for more extensions
Partial for #10940

Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
2025-07-31 16:17:06 +02:00

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