* +libcap

* not great...
This commit is contained in:
Jacob Heider 2023-03-30 01:43:53 -04:00 committed by GitHub
parent f62e152b10
commit 8b10c587d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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