blob: 9d6e2fdc3ff10e0d769ca4bd11f84537123b590b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
}
|