diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-31 03:22:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-31 03:22:19 +0100 |
commit | 3810dd6a469ba3e0014a390d92f1fc220dd20c3b (patch) | |
tree | b7dd01f1153f84e36981e0ae398c7e047d878cc4 /dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild | |
parent | 2f210c93c08515a806199783aabe37d12a0197cb (diff) |
gentoo auto-resync : 31:05:2023 - 03:22:19
Diffstat (limited to 'dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild')
-rw-r--r-- | dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild b/dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild new file mode 100644 index 000000000000..b08faed2f3e3 --- /dev/null +++ b/dev-util/sysdig-kmod/sysdig-kmod-0.27.1-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake linux-mod-r1 + +MY_P=${P/-kmod} +DESCRIPTION="Kernel module for dev-util/sysdig" +HOMEPAGE="https://sysdig.com/" +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="|| ( MIT GPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}"/${PV}-fix-kmod-build-on-5.18+.patch +) + +CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" + +src_prepare() { + cmake_src_prepare + + # cmake is only used to generate the Makefile for modules + sed -i '/USE_BUNDLED_DEPS/,$d' CMakeLists.txt || die +} + +src_compile() { + local modlist=( sysdig-probe=:"${BUILD_DIR}"/driver/src ) + local modargs=( KERNELDIR="${KV_OUT_DIR}" ) + + linux-mod-r1_src_compile +} |