summaryrefslogtreecommitdiff
path: root/core/libcap2/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/libcap2/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/libcap2/MAKEPKG')
-rw-r--r--core/libcap2/MAKEPKG52
1 files changed, 52 insertions, 0 deletions
diff --git a/core/libcap2/MAKEPKG b/core/libcap2/MAKEPKG
new file mode 100644
index 0000000..0d080f2
--- /dev/null
+++ b/core/libcap2/MAKEPKG
@@ -0,0 +1,52 @@
+#!/bin/mkpkg
+# description: POSIX 1003.1e capabilities library
+# url: https://sites.google.com/site/fullycapable
+
+name=libcap2
+version=2.78
+release=1
+source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.xz)
+depends=()
+makedeps=()
+
+sha256sums=(
+ "0d621e562fd932ccf67b9660fb018e468a683d7b827541df27813228c996bb11"
+)
+
+build() {
+ cd libcap-$version
+
+ # Remove static library install
+ sed -i '/install -m.*STA/d' libcap/Makefile
+
+ make \
+ CC=clang \
+ prefix=/ \
+ lib=lib \
+ SBINDIR=/sbin \
+ INCDIR=/include \
+ MANDIR=/usr/share/man \
+ PKGCONFIGDIR=/lib/pkgconfig \
+ GOLANG=no \
+ PAM_CAP=no
+
+ make \
+ CC=clang \
+ prefix=/ \
+ lib=lib \
+ SBINDIR=/sbin \
+ INCDIR=/include \
+ MANDIR=/usr/share/man \
+ PKGCONFIGDIR=/lib/pkgconfig \
+ GOLANG=no \
+ PAM_CAP=no \
+ DESTDIR=$PKG \
+ install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh