Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysdig-kmod/
Date: Sat, 03 Oct 2020 17:00:51
Message-Id: 1601744438.8e76051df35c1c18b163a02a466222bf5030692f.mgorny@gentoo
1 commit: 8e76051df35c1c18b163a02a466222bf5030692f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 14:56:00 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 17:00:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e76051d
7
8 dev-util/sysdig-kmod: Bump to 0.27.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-util/sysdig-kmod/Manifest | 1 +
13 dev-util/sysdig-kmod/sysdig-kmod-0.27.1.ebuild | 47 ++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-util/sysdig-kmod/Manifest b/dev-util/sysdig-kmod/Manifest
17 index 3581d465663..2e5405a0486 100644
18 --- a/dev-util/sysdig-kmod/Manifest
19 +++ b/dev-util/sysdig-kmod/Manifest
20 @@ -1 +1,2 @@
21 DIST sysdig-0.27.0.tar.gz 933094 BLAKE2B e412bd2a35a62b580344a49e2deee85764710f91327cd63b42913dc361ee96943ffe51b90ee745c420454f0a4be455606d486a91ab3e103d7e396f04dc3f1ff4 SHA512 102150cc641165a6c18ce71e3c6148dc10700f614fec7e1909c29172e3cce02dfa16af56aabdcd420499d0aa89f90fee8f26d92a250b0a521d1b9d416c6a678f
22 +DIST sysdig-0.27.1.tar.gz 936415 BLAKE2B f4c15e3a2d4b974c5eafc8374f927dd82f123c05cc1976d04b08e77e1a7c0ff53f37c4e2c0022b7073fcc936310daf76ca3c3611141799ae4f51991bc6f3a0a3 SHA512 690f012c7db0a75ec2eb78fae17aae0f422aa1db0d4c2b15c4a09153fd2f60bd3c00d62238976fdcff2a906d87b2e34b81d02c0c78ad2684a1d6016a9988eb08
23
24 diff --git a/dev-util/sysdig-kmod/sysdig-kmod-0.27.1.ebuild b/dev-util/sysdig-kmod/sysdig-kmod-0.27.1.ebuild
25 new file mode 100644
26 index 00000000000..ba7201399d5
27 --- /dev/null
28 +++ b/dev-util/sysdig-kmod/sysdig-kmod-0.27.1.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit cmake linux-mod
36 +
37 +MY_P=${P/-kmod}
38 +DESCRIPTION="Kernel module for dev-util/sysdig"
39 +HOMEPAGE="https://sysdig.com/"
40 +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
41 +S=${WORKDIR}/${MY_P}
42 +
43 +LICENSE="|| ( MIT GPL-2 )"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +RDEPEND="!<=dev-util/sysdig-0.26.4[modules]"
48 +
49 +CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
50 +
51 +pkg_pretend() {
52 + linux-mod_pkg_setup
53 +}
54 +
55 +pkg_setup() {
56 + linux-mod_pkg_setup
57 +}
58 +
59 +src_prepare() {
60 + sed -i -e '/USE_BUNDLED_DEPS/,$d' CMakeLists.txt || die
61 + cmake_src_prepare
62 +}
63 +
64 +src_configure() {
65 + local mycmakeargs=(
66 + # we will use linux-mod for that
67 + -DBUILD_DRIVER=OFF
68 + )
69 +
70 + cmake_src_configure
71 +
72 + # setup linux-mod ugliness
73 + MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver/src:)"
74 + BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
75 + BUILD_TARGETS="all"
76 +}