1 |
commit: 192351384a80ccc740209d989cf221755d759bd5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 29 06:10:21 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 29 06:25:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19235138 |
7 |
|
8 |
dev-util/sysdig: Bump to 0.26.1 (incl. 5.1 kernel support) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/685342 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-util/sysdig/Manifest | 1 + |
14 |
dev-util/sysdig/sysdig-0.26.1.ebuild | 97 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 98 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest |
18 |
index ea74ad0f5c3..51871b43e56 100644 |
19 |
--- a/dev-util/sysdig/Manifest |
20 |
+++ b/dev-util/sysdig/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST sysdig-0.24.2.tar.gz 855317 BLAKE2B d394ac3bd7e405664da2b45d8cfd5d3433e20266a9489f63b7d4c3bb955a60640d13bb33e6dd2057b16b6ce0617afab88cad2ceab58aa50f6b43a64f6a50f45b SHA512 10ec381144733abc2c386f6570d4245ac2c1eec64d0f56800963acbd9cc38eece504f836f1ab0e24224ff44233945c8273b72efc77d7eadce98d7c4fc378740b |
23 |
DIST sysdig-0.26.0.tar.gz 892090 BLAKE2B ea80eacfedeca0348c86611d960c8e65eb31c4dfb2386813973d37a92cb186fd0b8b2597305c0617e59c7254b8507ed32c6f1fed37e920929e45a72fffb32cb7 SHA512 8f6ebcd0a0d14586b204b3fa90e27581082390b57d0547e531db258be341fd5e1b77c45c02018267836c867e291d842fcbd05bbe994d3e32a678a2926426e2b6 |
24 |
+DIST sysdig-0.26.1.tar.gz 892441 BLAKE2B 38302458c54a10719fadaf5e5bb6d29931a262550eaf44350543e99cd33e6a90889d81f49096d2f57fcc903bc9245a1f782b438a48613f9fc9f90273c46f0f39 SHA512 817573dd2945e20094c548a481205d7ae700e8242a12c75bcab41c52330fb6f508214d71f3d3ba4ecc86576e555c8c2a0c155921d61d29a5861bbf982600f6fb |
25 |
|
26 |
diff --git a/dev-util/sysdig/sysdig-0.26.1.ebuild b/dev-util/sysdig/sysdig-0.26.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..a6c3bad4d48 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/sysdig/sysdig-0.26.1.ebuild |
31 |
@@ -0,0 +1,97 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
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 |
+ dev-libs/protobuf:0= |
57 |
+ net-dns/c-ares:0= |
58 |
+ net-libs/grpc:0= |
59 |
+ sys-libs/ncurses:0= |
60 |
+ sys-libs/zlib:0= |
61 |
+ libressl? ( dev-libs/libressl:0= ) |
62 |
+ !libressl? ( dev-libs/openssl:0= ) |
63 |
+ net-misc/curl:0=" |
64 |
+DEPEND="${RDEPEND} |
65 |
+ app-arch/xz-utils |
66 |
+ virtual/os-headers" |
67 |
+ |
68 |
+# needed for the kernel module |
69 |
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" |
70 |
+ |
71 |
+pkg_pretend() { |
72 |
+ linux-mod_pkg_setup |
73 |
+} |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ linux-mod_pkg_setup |
77 |
+} |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die |
81 |
+ |
82 |
+ eapply "${FILESDIR}"/sysdig-0.26.0-build-fixes.patch |
83 |
+ cmake-utils_src_prepare |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ # we will use linux-mod for that |
89 |
+ -DBUILD_DRIVER=OFF |
90 |
+ # libscap examples are not installed or really useful |
91 |
+ -DBUILD_LIBSCAP_EXAMPLES=OFF |
92 |
+ |
93 |
+ # unbundle the deps |
94 |
+ -DUSE_BUNDLED_DEPS=OFF |
95 |
+ ) |
96 |
+ |
97 |
+ cmake-utils_src_configure |
98 |
+ |
99 |
+ # setup linux-mod ugliness |
100 |
+ MODULE_NAMES="sysdig-probe(extra:${S}/driver:)" |
101 |
+ BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"' |
102 |
+ BUILD_TARGETS="all" |
103 |
+ |
104 |
+ if use modules; then |
105 |
+ cmake-utils_src_make configure_driver |
106 |
+ |
107 |
+ cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+src_compile() { |
112 |
+ cmake-utils_src_compile |
113 |
+ |
114 |
+ linux-mod_src_compile |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ cmake-utils_src_install |
119 |
+ |
120 |
+ linux-mod_src_install |
121 |
+ |
122 |
+ # remove sources |
123 |
+ rm -r "${ED}"/usr/src || die |
124 |
+ |
125 |
+ # move bashcomp to the proper location |
126 |
+ dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die |
127 |
+ rm -r "${ED}"/usr/etc || die |
128 |
+} |