mirror of
https://github.com/ivabus/pantry
synced 2024-11-12 19:45:19 +03:00
parent
f62e152b10
commit
8b10c587d9
36
projects/google.com/fullycapable/package.yml
Normal file
36
projects/google.com/fullycapable/package.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
distributable:
|
||||||
|
url: https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{ version.raw }}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
- 2.66
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script: |
|
||||||
|
if test "{{ hw.platform }}" = "darwin"; then
|
||||||
|
mkdir -p "{{ prefix }}"
|
||||||
|
touch "{{ prefix }}/linux-only"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
make $ARGS --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- prefix="{{prefix}}"
|
||||||
|
- lib=lib
|
||||||
|
- RAISE_SETFCAP=no
|
||||||
|
|
||||||
|
provides:
|
||||||
|
darwin: []
|
||||||
|
linux:
|
||||||
|
- sbin/capsh
|
||||||
|
- sbin/getcap
|
||||||
|
- sbin/getpcaps
|
||||||
|
- sbin/setcap
|
||||||
|
|
||||||
|
test: |
|
||||||
|
if test "{{ hw.platform }}" = "linux"; then
|
||||||
|
getcap "{{ prefix }}/sbin/capsh"
|
||||||
|
fi
|
Loading…
Reference in a new issue