/* * libcap — POSIX capabilities (iproute2, privileged tooling). * * Its own Makefile build. RAISE_SETFCAP=no avoids needing root during * install (no setfcap on the installed binaries). */ package "libcap" { const version = "2.78" const source = "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${version}.tar.gz" sha256 = "2a2c705e382c413643a458b837575c0eb0989477ab6fb99c87adbe9a259612ad" license = "BSD-3-Clause OR GPL-2.0-or-later" provides = ["libcap.a", "setcap", "getcap"] depends = [ { name = "make" }, ] prepare { curl -L -o libcap-${version}.tar.gz ${source} echo "2a2c705e382c413643a458b837575c0eb0989477ab6fb99c87adbe9a259612ad libcap-${version}.tar.gz" | sha256sum -c - tar xf libcap-${version}.tar.gz --strip-components=1 } build { make -j${jobs} } install { make install DESTDIR=${destdir} RAISE_SETFCAP=no find ${destdir} -name '*.la' -delete } }