summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-19 20:42:20 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-19 20:51:18 +0100
commitde47cd26f3f88afeaf3017a0ea2c222211c433ac (patch)
treea53b4bf588839bbfd4440173690fc145a1f797f9 /dev-util/sysdig-kmod
parentmedia-sound/gnome-music: fix deps (diff)
downloadgentoo-de47cd26f3f88afeaf3017a0ea2c222211c433ac.tar.gz
gentoo-de47cd26f3f88afeaf3017a0ea2c222211c433ac.tar.bz2
gentoo-de47cd26f3f88afeaf3017a0ea2c222211c433ac.zip
dev-util/sysdig-kmod: Split off dev-util/sysdig
Split the kernel module off main sysdig ebuild, as requested by slashbeast. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util/sysdig-kmod')
-rw-r--r--dev-util/sysdig-kmod/Manifest1
-rw-r--r--dev-util/sysdig-kmod/metadata.xml11
-rw-r--r--dev-util/sysdig-kmod/sysdig-kmod-0.26.4.ebuild47
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/sysdig-kmod/Manifest b/dev-util/sysdig-kmod/Manifest
new file mode 100644
index 000000000000..47171acfdc9d
--- /dev/null
+++ b/dev-util/sysdig-kmod/Manifest
@@ -0,0 +1 @@
+DIST sysdig-0.26.4.tar.gz 902181 BLAKE2B a7ac38be2f7a3d7e4f4fdec6a2fbf5305a8224ee27352da70f509139ebefd14616f84c7b8860f50d2546819a94deb1117034bceddd22128fcf25386b835274f2 SHA512 f56f5d0a522b861df4803bfdafcaf8db3fc9c0e751d06c321082757f6828a210cb86bab4550a3b35bf6412f930e44ab0f5cf709a30651c57dd7064a68e273a88
diff --git a/dev-util/sysdig-kmod/metadata.xml b/dev-util/sysdig-kmod/metadata.xml
new file mode 100644
index 000000000000..0954d438ef49
--- /dev/null
+++ b/dev-util/sysdig-kmod/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">draios/sysdig</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/sysdig-kmod/sysdig-kmod-0.26.4.ebuild b/dev-util/sysdig-kmod/sysdig-kmod-0.26.4.ebuild
new file mode 100644
index 000000000000..ba7201399d5c
--- /dev/null
+++ b/dev-util/sysdig-kmod/sysdig-kmod-0.26.4.ebuild
@@ -0,0 +1,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"
+}