forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibcap.yaml
81 lines (73 loc) · 1.9 KB
/
libcap.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package:
name: libcap
version: "2.71"
epoch: 0
description: "POSIX 1003.1e capabilities"
copyright:
- license: BSD-3-Clause OR GPL-2.0-only
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
- perl
pipeline:
- uses: git-checkout
with:
repository: git://git.kernel.org/pub/scm/libs/libcap/libcap.git
tag: v1.${{package.version}}
expected-commit: c7dbcf0bc9ee3be8ca3a0abd7548a7005e3d5eb5
- runs: |
set -x
make BUILD_CC=gcc CC=gcc lib=lib prefix=/usr DESTDIR="${{targets.destdir}}"
make lib=/lib prefix=/usr RAISE_SETFCAP=no DESTDIR="${{targets.destdir}}" install
chmod 755 "${{targets.destdir}}/usr/lib/libcap.so.${{package.version}}"
- uses: strip
subpackages:
- name: libcap-dev
description: libcap development headers
pipeline:
- uses: split/dev
dependencies:
runtime:
- libcap
- libcap-utils
test:
pipeline:
- uses: test/pkgconf
- name: libcap-utils
description: various utilities included with libcap
pipeline:
- runs: |
set -x
mkdir -p "${{targets.subpkgdir}}"/usr/sbin
for i in capsh getcap getpcaps setcap; do
mv "${{targets.destdir}}"/usr/sbin/$i "${{targets.subpkgdir}}"/usr/sbin/
done
rm -rf "${{targets.destdir}}/usr/sbin"
dependencies:
runtime:
- libcap
test:
pipeline:
- runs: |
capsh --help
getcap version
getcap help
getpcaps --help
setcap -v
setcap -h
- name: libcap-doc
description: libcap documentation
pipeline:
- uses: split/manpages
- runs: |
set -x
rm -rf "${{targets.destdir}}/usr/share"
update:
enabled: true
release-monitor:
identifier: 1569