65 lines
2.1 KiB
Bash
65 lines
2.1 KiB
Bash
# Template file for 'bcc'
|
|
pkgname=bcc
|
|
version=0.12.0
|
|
revision=2
|
|
wrksrc="bcc"
|
|
build_style=cmake
|
|
configure_args="-DREVISION=${version}"
|
|
hostmakedepends="flex"
|
|
makedepends="clang elfutils-devel lld-devel llvm ncurses-devel
|
|
python3-devel zlib-devel"
|
|
python_version="3"
|
|
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/bcc/releases/download/v${version}/bcc-src-with-submodule.tar.gz"
|
|
checksum=a7acf0e7a9d3ca03a91f22590e695655a5f0ccf8e3dc29e454c2e4c5d476d8aa
|
|
nocross=yes # https://github.com/voidlinux/void-packages/issues/4738
|
|
|
|
post_extract() {
|
|
sed -i '/tests/d' CMakeLists.txt # break on musl
|
|
}
|
|
bcc-tools_package() {
|
|
short_desc+=" - tools"
|
|
depends="python3-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
|
|
}
|
|
}
|
|
python3-bcc_package() {
|
|
lib32disabled=yes
|
|
depends="python3"
|
|
short_desc+=" - Python 3 module"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pycompile_module="bcc"
|
|
pkg_install() {
|
|
vmove "usr/lib/python*"
|
|
}
|
|
}
|