Files
gentoo/dev-debug/scap-driver/scap-driver-0.21.0.ebuild
Holger Hoffstätte 60cc70408d dev-debug/scap-driver: add 0.21.0
Finally a new release after sysdig managed to fix itself.
Unfortunately we lose ~arm64 (for now) and ~x86 (permanently) since
sysdig started to rely on binary plugins with limited platform support.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1118
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2026-08-14 17:26:37 +03:00

54 lines
1.3 KiB
Bash

# Copyright 1999-2026 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"
BDEPEND="
dev-libs/uthash
virtual/libelf:=
virtual/zlib:=
"
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 usually be found as git tag on the same commit as the libs version.
DRIVER_VERSION="8.1.0+driver"
PATCHES=(
"${FILESDIR}"/libs-0.20.0-properly-use-LD.patch
)
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
}