1 |
commit: c7552c942ebdc70cce60ea8e00ed89ece39fb855 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 6 06:40:31 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 6 07:10:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7552c94 |
7 |
|
8 |
dev-util/sysdig: Bump to 0.24.1, bugfix |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/sysdig/Manifest | 1 + |
13 |
dev-util/sysdig/sysdig-0.24.1.ebuild | 94 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 95 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest |
17 |
index 9db66838d25..967b1b9ac73 100644 |
18 |
--- a/dev-util/sysdig/Manifest |
19 |
+++ b/dev-util/sysdig/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST sysdig-0.23.1.tar.gz 830420 BLAKE2B 31a8c4cd8b570a308c81b4df53494cff2619d05724e509634671968025ebee0e46c5e59a7c877e6d9f1f1eba86a8a27a0cd9c5b66e75723ec8eec66c6782d4c0 SHA512 059a564a5d31381efae4bc50d2b83f83a1d051f1cfb9fa6bfb75a341305149073a6eb3b9a3ce4da12fa293e75b71f8b30c9021ac8d4c4a2f59a40e35a5ffd482 |
22 |
DIST sysdig-0.24.0.tar.gz 846171 BLAKE2B fc65c6df7351e1e1f4afd168cf9eaaed8d714539822ede1ce1941ead191b0d6e9898bd1da36a78737d4662b8e47090d63978441ce01fe30f13c504a3fa09eb5c SHA512 ff8162fbd5941a7a5532e8c1d0300acdd2d7ae85044600021f12e76f3752b50c46c894ea2007d0467761927403a784b85cfc000e735004e5fdbd48c31c20071e |
23 |
+DIST sysdig-0.24.1.tar.gz 846153 BLAKE2B bc64317e02526d9729c9fb3738f2982f4b425cdb43c64f77944938186cde4ed2d8d2649984efe0055bbaed250b08bda4008272805024e1d8993e17bc93509663 SHA512 a89ce82527b47104161668e134387a04f4a6753adcd881df25410b629603b58fc8f675de6941f4911ad2da42ffbfd46b38f9cc9837c0809c559fee9a739a204a |
24 |
|
25 |
diff --git a/dev-util/sysdig/sysdig-0.24.1.ebuild b/dev-util/sysdig/sysdig-0.24.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..3ba452c42e3 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/sysdig/sysdig-0.24.1.ebuild |
30 |
@@ -0,0 +1,94 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="6" |
35 |
+ |
36 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
37 |
+MODULES_OPTIONAL_USE=modules |
38 |
+inherit linux-mod bash-completion-r1 cmake-utils |
39 |
+ |
40 |
+DESCRIPTION="A system exploration and troubleshooting tool" |
41 |
+HOMEPAGE="https://www.sysdig.org/" |
42 |
+SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0 |
45 |
+ modules? ( || ( MIT GPL-2 ) )" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="libressl +modules" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ app-misc/jq:0= |
52 |
+ dev-cpp/tbb: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 |
+} |