summaryrefslogtreecommitdiff
path: root/libs/libbpf/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 /libs/libbpf/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'libs/libbpf/MAKEPKG')
-rw-r--r--libs/libbpf/MAKEPKG39
1 files changed, 39 insertions, 0 deletions
diff --git a/libs/libbpf/MAKEPKG b/libs/libbpf/MAKEPKG
new file mode 100644
index 0000000..31d0de7
--- /dev/null
+++ b/libs/libbpf/MAKEPKG
@@ -0,0 +1,39 @@
+#!/bin/mkpkg
+# description: BPF CO-RE library for loading and managing eBPF programs
+# url: https://github.com/libbpf/libbpf
+
+name=libbpf
+version=1.7.0
+release=1
+depends=(libelf zlib)
+source=(https://github.com/libbpf/libbpf/archive/v$version.tar.gz)
+renames=($name-$version.tar.gz)
+
+sha256sums=(
+ "7ab5feffbf78557f626f2e3e3204788528394494715a30fc2070fcddc2051b7b"
+)
+
+build() {
+ cd $name-$version/src
+
+ make \
+ CC=${CC:-cc} \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib
+
+ make \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib \
+ DESTDIR=$PKG \
+ install
+
+ # remove static library
+ rm -f $PKG/usr/lib/libbpf.a
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh