From 576f1fc8412b2e22ac8ccb408f07357fabce3316 Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Wed, 14 Jan 2026 21:50:50 -0500 Subject: [PATCH] Built libcap2 --- STATUS.md | 3 ++- sources/libcap2/libcap2.spec | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 sources/libcap2/libcap2.spec diff --git a/STATUS.md b/STATUS.md index 05ec5b1..748d0a5 100644 --- a/STATUS.md +++ b/STATUS.md @@ -30,7 +30,7 @@ Definitions: | `kmod` | Yes | Yes | | `less` | | `libarchive` | Yes | Yes | -| `libcap2` | +| `libcap2` | Yes | Yes | | `libelf` | Yes | Yes | | `libmnl` | | `libnftnl` | @@ -52,6 +52,7 @@ Definitions: | `patch` | Yes | Yes | | `perl` | Yes | Yes | | `pkgconf` | Yes | Yes | +| `pipewire` | | `sed` | Yes | Yes | | `shadow` | | `tar` | Yes | Yes | diff --git a/sources/libcap2/libcap2.spec b/sources/libcap2/libcap2.spec new file mode 100644 index 0000000..40e6861 --- /dev/null +++ b/sources/libcap2/libcap2.spec @@ -0,0 +1,33 @@ +# Maintainer: Alexander Hill +SRC_HASH="5e339f5ab434bf5b7979f65437ca24942ddcd6e6a3e57347370cd791bc0ea51c" +SRC_NAME="libcap2" +SRC_URL="https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.77.tar.gz" +SRC_VERSION="2.77" + +build() { + tar xf ../$SRC_FILENAME + cd libcap-$SRC_VERSION/ + # NOTE: This Makefile assumes that GCC exists, which it doesn't here, so we + # need to tell it to respect the CC environment variable to prevent + # any issues. ~ahill + make -O \ + -j $TT_PROCS \ + CC=$CC \ + LIBDIR=$TT_LIBDIR \ + INCDIR=$TT_INCLUDEDIR \ + exec_prefix=$TT_PREFIX \ + prefix=$TT_PREFIX +} + +package() { + cd libcap-$SRC_VERSION/ + make -O \ + -C libcap \ + -j $TT_PROCS \ + install-shared \ + FAKEROOT=$TT_INSTALLDIR \ + LIBDIR=$TT_LIBDIR \ + INCDIR=$TT_INCLUDEDIR \ + exec_prefix=$TT_PREFIX \ + prefix=$TT_PREFIX +}