diff options
author | Adam Jensen <acjensen@gmail.com> | 2019-05-01 20:50:08 -0400 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-04 18:52:33 +0000 |
commit | 0dcea91b2e8ad992b32cee5082224887a78699ac (patch) | |
tree | ac36744e262881e1fa9700da17d1aee6ecbb10e5 /testing/bcc | |
parent | 66ea7b3b7a2354b37898e3cc225107b7d3e53b43 (diff) | |
download | aports-0dcea91b2e8ad992b32cee5082224887a78699ac.tar.bz2 aports-0dcea91b2e8ad992b32cee5082224887a78699ac.tar.xz |
testing/bcc: new aport
https://github.com/iovisor/bcc/
A toolkit for creating efficient kernel tracing and manipulation programs
Closes GH-7521
Diffstat (limited to 'testing/bcc')
-rw-r--r-- | testing/bcc/APKBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/bcc/APKBUILD b/testing/bcc/APKBUILD new file mode 100644 index 0000000000..5d85b03a3a --- /dev/null +++ b/testing/bcc/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Adam Jensen <acjensen@gmail.com> +pkgname=bcc +pkgver=0.8.0 +pkgrel=0 +pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs" +url="https://github.com/iovisor/bcc/" +arch="aarch64 x86_64" +license="Apache-2.0" +# bcc's test suite requires privileged access to run BPF programs +options="!check" +depends="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" +source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/$pkgname/archive/v$pkgver.tar.gz" + +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="e46bd8076f6a440b05fd4f94e14d05365d685bfef43d466831a82891a1c131aed22028d29e5be5dd957f00fc3e31d84a96021adf90ae7dbcd7bbf888a7c19774 bcc-0.8.0.tar.gz" |