mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
8b10c587d9
* +libcap * not great...
36 lines
733 B
YAML
36 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
|