blob: 01e5d5f28eaf76f14f00a2fd6319e35753af3056 (
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
34
35
36
37
38
39
40
|
# Maintainer: Adam Jensen <acjensen@gmail.com>
pkgname=bcc
pkgver=0.9.0
pkgrel=0
pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs"
url="https://github.com/iovisor/bcc/"
arch="aarch64 x86 x86_64"
license="Apache-2.0"
# bcc's test suite requires privileged access to run BPF programs
options="!check"
depends="libbpf python"
makedepends="tar git llvm7-dev llvm7-static clang-dev clang-static cmake flex-dev
bison luajit-dev build-base iperf linux-headers elfutils-dev zlib-dev
libbpf-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/$pkgname/archive/v$pkgver.tar.gz
10-include-stddef.patch
20-use-system-libbpf.patch"
prepare() {
rm -rf tests/* && touch tests/CMakeLists.txt
rm -rf examples/* && touch examples/CMakeLists.txt
default_prepare
}
build() {
mkdir -p "$builddir/build"
cd "$builddir/build"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
make
}
package() {
cd "$builddir/build"
make install DESTDIR="$pkgdir"
}
sha512sums="373080181380ec3bcb13469e29ff1f792e924a2df00a614da4647ed54060ad216525dd0f49c5d0afba7946a6d2f4e3475af97250a33db825945af3d165294091 bcc-0.9.0.tar.gz
5c2b470b107365bd4fb9465909190d3c7d253a45d61b420e09d719906e6f8d90c99e012857ab03ee09e3348c598ac4feb1296011f845a158944e158571503015 10-include-stddef.patch
c7cf67ff8fe3437b62c50cc54de612e7d3af294cc3c7c271acc6826ea39e0dcf6edcae48f8f8834ea3527cc8ce3f7693bc6ad74b395f8dd709052cd720d02e79 20-use-system-libbpf.patch"
|