7bdf2a6b5c
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
67 lines
2.2 KiB
Bash
67 lines
2.2 KiB
Bash
# Template file for 'bcc'
|
|
pkgname=bcc
|
|
version=0.9.0
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DREVISION=${version}"
|
|
hostmakedepends="flex"
|
|
makedepends="clang elfutils-devel lld-devel llvm ncurses-devel
|
|
python-devel zlib-devel"
|
|
short_desc="BPF-based Linux IO analysis, networking, monitoring, and more"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/iovisor/bcc"
|
|
distfiles="https://github.com/iovisor/${pkgname}/archive/v${version}.tar.gz
|
|
https://github.com/libbpf/libbpf/archive/5beb8a2ebffd1045e3edb9b522d6ff5bb477c541.tar.gz"
|
|
checksum="0703b752c501b37065f11436e6b38fd66a8153e963cec4989a730d8498451216
|
|
36d1f67c3648d4556bcf560e18cd20dac99e4c35c3a1b447b06e4d39724e3f9f"
|
|
nocross=yes # https://github.com/voidlinux/void-packages/issues/4738
|
|
|
|
post_extract() {
|
|
rm -rf src/cc/libbpf
|
|
mv ../libbpf* src/cc/libbpf
|
|
|
|
sed -i '/tests/d' CMakeLists.txt # break on musl
|
|
}
|
|
bcc-tools_package() {
|
|
short_desc+=" - tools"
|
|
depends="python-bcc>=${version}_${revision} linux-headers"
|
|
pkg_install() {
|
|
vmove usr/share/bcc/man/man8
|
|
mv ${PKGDESTDIR}/usr/share/bcc/man ${PKGDESTDIR}/usr/share/man
|
|
gunzip ${PKGDESTDIR}/usr/share/man/*/*.gz
|
|
vmkdir usr/share/doc
|
|
vmove usr/share/bcc/tools
|
|
mv ${PKGDESTDIR}/usr/share/bcc/tools/doc ${PKGDESTDIR}/usr/share/doc/bcc-tools
|
|
mv ${PKGDESTDIR}/usr/share/bcc/tools ${PKGDESTDIR}/usr/bin
|
|
rm -rf ${PKGDESTDIR}/usr/bin/old
|
|
mv ${PKGDESTDIR}/usr/bin/lib/* ${PKGDESTDIR}/usr/bin
|
|
rm -rf ${PKGDESTDIR}/usr/bin/lib
|
|
rm -rf ${PKGDESTDIR}/usr/bin/deadlock_detector.c
|
|
vmove usr/share/bcc/introspection
|
|
vbin ${PKGDESTDIR}/usr/share/bcc/introspection/bps
|
|
rm -rf ${PKGDESTDIR}/usr/share/bcc/introspection
|
|
mv ${PKGDESTDIR}/usr/bin/trace ${PKGDESTDIR}/usr/bin/trace-bcc
|
|
mv ${PKGDESTDIR}/usr/share/man/man8/trace.8 ${PKGDESTDIR}/usr/share/man/man8/trace-bcc.8
|
|
}
|
|
}
|
|
bcc-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/bcc/examples
|
|
}
|
|
}
|
|
python-bcc_package() {
|
|
lib32disabled=yes
|
|
depends="python"
|
|
short_desc+=" - Python 2.7 module"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pycompile_module="bcc"
|
|
pkg_install() {
|
|
vmove "usr/lib/python*"
|
|
}
|
|
}
|