summaryrefslogtreecommitdiffstats
path: root/packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0')
-rw-r--r--packages/dev-libs/libbpf/libbpf-1.8.0.exheres-033
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0 b/packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0
new file mode 100644
index 0000000..9d6e2fd
--- /dev/null
+++ b/packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0
@@ -0,0 +1,33 @@
+# Copyright 2026 Gurov <thuggerthugger1@duck.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user=libbpf tag=v${PV} ]
+
+SUMMARY="Library for loading and managing eBPF programs"
+
+LICENCES="|| ( LGPL-2.1 BSD-2 )"
+SLOT="0"
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ build:
+ dev-util/pkgconf
+ sys-kernel/linux-headers
+
+ build+run:
+ dev-util/elfutils
+ sys-libs/zlib
+"
+
+src_compile() {
+ emake -C src
+}
+
+src_install() {
+ emake -C src install \
+ DESTDIR="${IMAGE}" \
+ PREFIX="/usr/$(exhost --target)" \
+ LIBDIR="/usr/$(exhost --target)/lib"
+ edo rm "${IMAGE}/usr/$(exhost --target)/lib/libbpf.a"
+ emagicdocs
+}