blob: ba7201399d5c9f37cd58047fd713861ae7e1dfa1 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake linux-mod
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"
RDEPEND="!<=dev-util/sysdig-0.26.4[modules]"
CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
pkg_pretend() {
linux-mod_pkg_setup
}
pkg_setup() {
linux-mod_pkg_setup
}
src_prepare() {
sed -i -e '/USE_BUNDLED_DEPS/,$d' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
# we will use linux-mod for that
-DBUILD_DRIVER=OFF
)
cmake_src_configure
# setup linux-mod ugliness
MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver/src:)"
BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
BUILD_TARGETS="all"
}
|