commit:     57e3a339589b241dd155ec43f859419bfcfa3002
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Sat Feb 22 17:27:51 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 12:04:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e3a339

dev-debug/scap-driver: add 0.20.0

Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/scap-driver/Manifest                  |  1 +
 dev-debug/scap-driver/scap-driver-0.20.0.ebuild | 49 +++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/dev-debug/scap-driver/Manifest b/dev-debug/scap-driver/Manifest
index 04ab315ced0e..c737f1a970fa 100644
--- a/dev-debug/scap-driver/Manifest
+++ b/dev-debug/scap-driver/Manifest
@@ -1,2 +1,3 @@
 DIST falcosecurity-libs-0.17.3.tar.gz 4425090 BLAKE2B 
3d6300bba2303715581d9b35f63e453f85a3889fa93233d3b1ca69f6ba92b33e0a7d90bbd160b765487b44771a1d94f5a1fb380cf4e5130506a885471dddb7e7
 SHA512 
05707c404bdd45c2e944b903dbbc1e5e0e5991a3d4cbe9ea357efb35b5ad0c4ede7cdd7b056a7dde2543cc2c0b8d5d3b42606202128b7287a80a1da686de169e
 DIST falcosecurity-libs-0.19.0.tar.gz 4499949 BLAKE2B 
4d165f3b023183abf527a2243f601ca7e6929e882ab854901ff98c3441b6bee61f9bb5d3af8974953423fa46d3968872b7f9dbfb1d81d6ad78202442e5f8d9b7
 SHA512 
5b011c804b07bf2f3eb6a6d7e8c9ef4e54bcc8d74116020e887465aba3dec737bdf8fc854778a8230f7e23e87da29423c6320a8054873eb5c9c957ce40ef3825
+DIST falcosecurity-libs-0.20.0.tar.gz 4545190 BLAKE2B 
93a074ab6451c16c7ad58498ac580f0476339e7dee65112e56142307f79966c43b69c71234a784aff03f47ec2e37e838e797beb4b36e9c105db88cf32cad135e
 SHA512 
b5ef481bda92a29b7b409baee25dabd0b766e4bbcac762740635f99b36cd823a6d98f541817fd03b1a86a1385d3fe24888b33b84dc3486cd9f8d00e5384eb705

diff --git a/dev-debug/scap-driver/scap-driver-0.20.0.ebuild 
b/dev-debug/scap-driver/scap-driver-0.20.0.ebuild
new file mode 100644
index 000000000000..aaced91c34c3
--- /dev/null
+++ b/dev-debug/scap-driver/scap-driver-0.20.0.ebuild
@@ -0,0 +1,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://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
+       sys-libs/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
+}

Reply via email to