-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlibcap.yaml
67 lines (59 loc) · 1.71 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
package:
name: libcap
version: "2.69"
epoch: 3
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
- perl
pipeline:
- uses: fetch
with:
uri: https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${{package.version}}.tar.xz
expected-sha512: 647c307dc451517da9d089495ab959b4a6fbbe41c79f4e1e9bb663569dad630ead0c2e413dfb393319e3ea14dc9848c81b392107fe3382ce1813d278c3394a7f
- 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
- 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
- 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