This commit is contained in:
2026-08-18 18:59:25 -04:00
parent e65dcbb790
commit 815160cfd7
17 changed files with 593 additions and 10 deletions
+34
View File
@@ -0,0 +1,34 @@
/*
* 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
}
}