blob: fcaa246007a26e0f8b7a691b9ce073941a1b6753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake linux-mod-r1
DESCRIPTION="Kernel module for dev-debug/sysdig"
HOMEPAGE="https://www.sysdig.com/"
SRC_URI="https://github.com/falcosecurity/libs/archive/${PV}.tar.gz -> falcosecurity-libs-${PV}.tar.gz"
S="${WORKDIR}/libs-${PV}"
LICENSE="Apache-2.0 GPL-2 MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
BDEPEND="
dev-libs/uthash
virtual/zlib:=
virtual/libelf:=
"
CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
# We need to specify the driver version manually since we do not use a git tree.
# This version can be found as git tag on the same commit as the libs version.
DRIVER_VERSION="8.0.0+driver"
src_configure() {
local mycmakeargs=(
# we will use linux-mod, so in order to make it through the cmake setup
# just pretend to use bundled deps and then override only what we need.
-DUSE_BUNDLED_DEPS=ON
-DUSE_BUNDLED_LIBELF=OFF
-DUSE_BUNDLED_UTHASH=OFF
-DUSE_BUNDLED_ZLIB=OFF
-DCREATE_TEST_TARGETS=OFF
-DDRIVER_VERSION="${DRIVER_VERSION}"
)
cmake_src_configure
}
src_compile() {
local modlist=( scap=:"${BUILD_DIR}"/driver/src )
local modargs=( KERNELDIR="${KV_OUT_DIR}" )
linux-mod-r1_src_compile
}
|