From 25922912c7e37f3bc3000e71b647e77677d8f2c5 Mon Sep 17 00:00:00 2001 From: coast Date: Mon, 12 Oct 2026 14:41:07 +0330 Subject: sync --- packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0 | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0 (limited to 'packages/dev-libs/libbpf/libbpf-1.8.0.exheres-0') 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 +# 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 +} -- cgit v1.3