void-packages/srcpkgs/sysdig/template

53 lines
2.0 KiB
Bash

# Template file for 'sysdig'
pkgname=sysdig
version=0.31.5
revision=1
_falcover=0.11.0
build_style=cmake
build_wrksrc="sysdig-${version}"
configure_args="-DSYSDIG_VERSION=${version} -DUSE_BUNDLED_DEPS=OFF
-DUSE_BUNDLED_B64=ON -DUSE_BUNDLED_JQ=ON -DBUILD_DRIVER=OFF
-DLUA_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/luajit-2.1
-DLUA_LIBRARY=/usr/lib/libluajit-5.1.so -DCREATE_TEST_TARGETS=OFF
-DUSE_BUNDLED_TBB=OFF -DBUILD_LIBSCAP_EXAMPLES=OFF
-DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_EXTENSIONS=OFF
-DDRIVER_VERSION=${_falcover}"
hostmakedepends="wget pkg-config protobuf"
makedepends="LuaJIT-devel c-ares-devel elfutils-devel grpc-devel
libcurl-devel libprotoc-devel openssl-devel ncurses-devel protobuf-devel
tbb-devel zlib-devel yaml-cpp-devel json-c++"
depends="dkms"
short_desc="Open source system-level exploration and troubleshooting tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0, MIT, GPL-2.0-only"
homepage="http://www.sysdig.org/"
changelog="https://github.com/draios/sysdig/releases"
distfiles="https://github.com/draios/sysdig/archive/${version}.tar.gz
https://github.com/falcosecurity/libs/archive/${_falcover}.tar.gz"
checksum="9af98cae7c38273f7429ba0df628c9745bd92c949f444e180b9dd800af14c6dd
90414d00591986e94f2c49e7d65eef5c2dedee266354dd3db8234bb3b06c86fa"
dkms_modules="scap ${_falcover}"
nocross=yes
patch_args="-Np1 --directory=${build_wrksrc}"
case "$XBPS_TARGET_MACHINE" in
i686*) broken="/syscall_table.c:567:10: error: '__NR_rt_tgsigqueueinfo'";;
*-musl) configure_args+=" -DMUSL_OPTIMIZED_BUILD=On";;
esac
# Avoid excessive warnings spam to the log
CXXFLAGS="-Wno-deprecated-declarations"
post_patch() {
patch -d "${wrksrc}/libs-${_falcover}" -Np1 < "${FILESDIR}/libsinsp-zstd.patch"
patch -d "${wrksrc}/libs-${_falcover}" -Np1 < "${FILESDIR}/libsinsp-absl-protobuf.patch"
vsed -e 's,"${DIR_ETC}/bash_completion.d",share/bash-completion/completions,g' -i scripts/CMakeLists.txt
}
post_install() {
rm -rf ${DESTDIR}/usr/share/zsh/vendor-completions
vlicense COPYING
vlicense NOTICES
}