-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathpkg.yaml
More file actions
29 lines (29 loc) · 869 Bytes
/
pkg.yaml
File metadata and controls
29 lines (29 loc) · 869 Bytes
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
name: libcap
variant: scratch
shell: /bin/bash
install:
- build-base
- bash
- patch
dependencies:
- image: cgr.dev/chainguard/wolfi-base@{{ .WOLFI_BASE_REF }}
steps:
- sources:
- url: https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{ .LIBCAP_VERSION }}.tar.xz
destination: libcap.tar.xz
sha256: {{ .LIBCAP_SHA256 }}
sha512: {{ .LIBCAP_SHA512 }}
prepare:
- |
tar -xf libcap.tar.xz --strip-components=1
build:
- |
make prefix=/usr/local/glibc lib=lib -j $(nproc)
install:
- |
make DESTDIR=/rootfs prefix=/usr/local lib=lib install
# 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 {} \;
finalize:
- from: /rootfs
to: /rootfs