dev-util/sysdig-kmod: Bump to 0.26.6
authorMichał Górny <mgorny@gentoo.org>
Fri, 3 Apr 2020 14:07:11 +0000 (16:07 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 3 Apr 2020 14:12:11 +0000 (16:12 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-util/sysdig-kmod/Manifest
dev-util/sysdig-kmod/sysdig-kmod-0.26.6.ebuild [new file with mode: 0644]

index 47171acfdc9d9bbe23520fdfebca8cc5f1a95699..a55a5d704af5680a231de9cd274470983eab6278 100644 (file)
@@ -1 +1,2 @@
 DIST sysdig-0.26.4.tar.gz 902181 BLAKE2B a7ac38be2f7a3d7e4f4fdec6a2fbf5305a8224ee27352da70f509139ebefd14616f84c7b8860f50d2546819a94deb1117034bceddd22128fcf25386b835274f2 SHA512 f56f5d0a522b861df4803bfdafcaf8db3fc9c0e751d06c321082757f6828a210cb86bab4550a3b35bf6412f930e44ab0f5cf709a30651c57dd7064a68e273a88
+DIST sysdig-0.26.6.tar.gz 923918 BLAKE2B e022eba30977f5300c80a4806926d3e755b1395f05475c1fe925b86823670e397ad29e8bd18b1beaa893cb1bf83c329960c1bf9ff6faf0a5144343e88d52a4a0 SHA512 94784f0dfe46924b81d8804d950a9563cd18f4aa8b1cacd7e27e3974ecf7215223e03bdab001f408f64eb6c72f0da5082fd922d63079119427eb493c77e15795
diff --git a/dev-util/sysdig-kmod/sysdig-kmod-0.26.6.ebuild b/dev-util/sysdig-kmod/sysdig-kmod-0.26.6.ebuild
new file mode 100644 (file)
index 0000000..ba72013
--- /dev/null
@@ -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"
+}