summaryrefslogtreecommitdiff
path: root/system/libbpf/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2021-10-06 21:43:44 +0000
committerDan Theisen <djt@hxx.in>2021-10-06 21:52:03 +0000
commit1a53921400c08bfbff5c36ce5b7df1f833f588d4 (patch)
tree9d65f845daa32b11d076a345ca42447ec6702734 /system/libbpf/APKBUILD
parent1b806474fc3942a76f25fa12878275749421aaee (diff)
downloadpackages-1a53921400c08bfbff5c36ce5b7df1f833f588d4.tar.gz
packages-1a53921400c08bfbff5c36ce5b7df1f833f588d4.tar.bz2
packages-1a53921400c08bfbff5c36ce5b7df1f833f588d4.tar.xz
packages-1a53921400c08bfbff5c36ce5b7df1f833f588d4.zip
system/libbpf: new package
Diffstat (limited to 'system/libbpf/APKBUILD')
-rw-r--r--system/libbpf/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/system/libbpf/APKBUILD b/system/libbpf/APKBUILD
new file mode 100644
index 000000000..296878162
--- /dev/null
+++ b/system/libbpf/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=libbpf
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="A library for interacting with the Linux kernel's Berkeley Packet Filter (BPF) facility from user space"
+url="https://github.com/libbpf/libbpf"
+arch="all"
+options="!check" # no tests
+license="LGPL-2.1 OR BSD-2-Clause"
+depends=""
+makedepends="zlib-dev libelf-dev linux-headers"
+subpackages="$pkgname-dev"
+source="libbpf-$pkgver.tar.gz::https://github.com/libbpf/libbpf/archive/refs/tags/v$pkgver.tar.gz
+ 10-include-stddef.patch
+ 20-consolidate-lib-dirs.patch
+ "
+
+build() {
+ cd src
+ make
+}
+
+package() {
+ cd src
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85 libbpf-0.5.0.tar.gz
+946e445ffa4c5df42ebac77b7a1c6478b37dc7b55e0883aee195c6a8c4f8718b4dbf98b7c6d3016e1619e59440d8e4a76dad1e843114dfe2f9a2610e5cbb7943 10-include-stddef.patch
+9398dd33df9e93f7bd4f68d6bb1da3731075e2f95fdcc3b9cc471e823c2f6700351d458976b804d3f56be50b824a8ce7cda482945a1e78522a3973b22bdbf4d5 20-consolidate-lib-dirs.patch"