1 |
commit: 0391608de751569e4ee59041063d453d01539995 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 14 08:26:43 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 14 08:28:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0391608d |
7 |
|
8 |
dev-util/sysdig: Bump to 0.22.0 |
9 |
|
10 |
Bump to a new 0.22.0 release. Includes a lot of new features and a fix |
11 |
for 4.17 kernels. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/657512 |
14 |
|
15 |
dev-util/sysdig/Manifest | 1 + |
16 |
dev-util/sysdig/sysdig-0.22.0.ebuild | 92 ++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 93 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest |
20 |
index 2811467779d..6e96475c742 100644 |
21 |
--- a/dev-util/sysdig/Manifest |
22 |
+++ b/dev-util/sysdig/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST sysdig-0.21.0.tar.gz 756010 BLAKE2B 0dfcc3e7f5c830e8b250e4edd9d470764ea6be25804fefbc59b020f208edc313a51b3fb783e538d2acb520c56ad7c8555f224fb90999c87b89125394a90d54a1 SHA512 73c516c9fccb504d4ccd37384aee37ece542d29f82d696acf7c90df18b3a1538faf8d2b29065eae1f3dca7c04c6c2dbe93ed9369bc1340216482c4af2f61d23a |
25 |
+DIST sysdig-0.22.0.tar.gz 824519 BLAKE2B 7d46376f4f3c346fb6e9ce55552a0377aea6dc258ce3487b1e5a970a25721fca95d731d7313d1dc4b72dbefd9ac37e4050d7a934b8b9bdce027b5b6774ea1351 SHA512 599195bce77f4c2d3f62b11c00361420ab15da5fda4553486a7f812a1a464927cfa4ead36bf046fb1cecd3cf03e5d80a261d4571405d6bc309383bd2b4ad0204 |
26 |
|
27 |
diff --git a/dev-util/sysdig/sysdig-0.22.0.ebuild b/dev-util/sysdig/sysdig-0.22.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e366e662630 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/sysdig/sysdig-0.22.0.ebuild |
32 |
@@ -0,0 +1,92 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
39 |
+MODULES_OPTIONAL_USE=modules |
40 |
+inherit linux-mod bash-completion-r1 cmake-utils |
41 |
+ |
42 |
+DESCRIPTION="A system exploration and troubleshooting tool" |
43 |
+HOMEPAGE="https://www.sysdig.org/" |
44 |
+SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="libressl +modules" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ app-misc/jq:0= |
53 |
+ dev-lang/luajit:2= |
54 |
+ >=dev-libs/jsoncpp-0.6_pre:0= |
55 |
+ dev-libs/libb64:0= |
56 |
+ sys-libs/ncurses:0= |
57 |
+ sys-libs/zlib:0= |
58 |
+ libressl? ( dev-libs/libressl:0= ) |
59 |
+ !libressl? ( dev-libs/openssl:0= ) |
60 |
+ net-misc/curl:0=" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ app-arch/xz-utils |
63 |
+ virtual/os-headers" |
64 |
+ |
65 |
+# needed for the kernel module |
66 |
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" |
67 |
+ |
68 |
+pkg_pretend() { |
69 |
+ linux-mod_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+pkg_setup() { |
73 |
+ linux-mod_pkg_setup |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die |
78 |
+ |
79 |
+ cmake-utils_src_prepare |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local mycmakeargs=( |
84 |
+ # we will use linux-mod for that |
85 |
+ -DBUILD_DRIVER=OFF |
86 |
+ # libscap examples are not installed or really useful |
87 |
+ -DBUILD_LIBSCAP_EXAMPLES=OFF |
88 |
+ |
89 |
+ # unbundle the deps |
90 |
+ -DUSE_BUNDLED_DEPS=OFF |
91 |
+ ) |
92 |
+ |
93 |
+ cmake-utils_src_configure |
94 |
+ |
95 |
+ # setup linux-mod ugliness |
96 |
+ MODULE_NAMES="sysdig-probe(extra:${S}/driver:)" |
97 |
+ BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"' |
98 |
+ BUILD_TARGETS="all" |
99 |
+ |
100 |
+ if use modules; then |
101 |
+ cmake-utils_src_make configure_driver |
102 |
+ |
103 |
+ cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ cmake-utils_src_compile |
109 |
+ |
110 |
+ linux-mod_src_compile |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ cmake-utils_src_install |
115 |
+ |
116 |
+ linux-mod_src_install |
117 |
+ |
118 |
+ # remove sources |
119 |
+ rm -r "${ED%/}"/usr/src || die |
120 |
+ |
121 |
+ # move bashcomp to the proper location |
122 |
+ dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die |
123 |
+ rm -r "${ED%/}"/usr/etc || die |
124 |
+} |