pantry/projects/google.com/fullycapable/package.yml

37 lines
733 B
YAML
Raw Normal View History

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