pantry/projects/google.com/fullycapable/package.yml
Jacob Heider 8b10c587d9
+libcap (#1044)
* +libcap

* not great...
2023-03-30 01:43:53 -04:00

37 lines
733 B
YAML

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