Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysdig/
Date: Tue, 05 May 2020 07:15:15
Message-Id: 1588662902.d8da0a6bf0e07cd61343febb461d9d74e9fb4928.mgorny@gentoo
1 commit: d8da0a6bf0e07cd61343febb461d9d74e9fb4928
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 5 05:26:57 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 5 07:15:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8da0a6b
7
8 dev-util/sysdig: Bump to 0.26.7
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.26.7.ebuild | 69 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
17 index e1493303a0b..e7e363175fd 100644
18 --- a/dev-util/sysdig/Manifest
19 +++ b/dev-util/sysdig/Manifest
20 @@ -1 +1,2 @@
21 DIST sysdig-0.26.6.tar.gz 923918 BLAKE2B e022eba30977f5300c80a4806926d3e755b1395f05475c1fe925b86823670e397ad29e8bd18b1beaa893cb1bf83c329960c1bf9ff6faf0a5144343e88d52a4a0 SHA512 94784f0dfe46924b81d8804d950a9563cd18f4aa8b1cacd7e27e3974ecf7215223e03bdab001f408f64eb6c72f0da5082fd922d63079119427eb493c77e15795
22 +DIST sysdig-0.26.7.tar.gz 924647 BLAKE2B 31973410e8e166d82c3851eceee8bdcd808db8181e8330841ff746a2d2c35936fda9dcf23c16697e37da339a647b534b17d0c1bb58c547621f2a3f926fca5016 SHA512 37f3544b1994c8c9048c6ff886da0c2ea6cbfe0a1cedb930b2a06bb85fa9da80a8197409a99b95245dec9ca1957a0f1fe989f688a549739d71ff778087d20b76
23
24 diff --git a/dev-util/sysdig/sysdig-0.26.7.ebuild b/dev-util/sysdig/sysdig-0.26.7.ebuild
25 new file mode 100644
26 index 00000000000..55a20f694f4
27 --- /dev/null
28 +++ b/dev-util/sysdig/sysdig-0.26.7.ebuild
29 @@ -0,0 +1,69 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit bash-completion-r1 cmake
36 +
37 +DESCRIPTION="A system exploration and troubleshooting tool"
38 +HOMEPAGE="https://sysdig.com/"
39 +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="Apache-2.0"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="libressl +modules test"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="
48 + app-misc/jq:0=
49 + dev-cpp/tbb:0=
50 + dev-lang/luajit:2=
51 + >=dev-libs/jsoncpp-0.6_pre:0=
52 + dev-libs/libb64:0=
53 + dev-libs/protobuf:0=
54 + net-dns/c-ares:0=
55 + net-libs/grpc: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 + virtual/os-headers
63 + test? ( dev-cpp/gtest )"
64 +PDEPEND="
65 + modules? ( >=dev-util/sysdig-kmod-${PV} )"
66 +
67 +src_prepare() {
68 + sed -i -e 's:-ggdb::' CMakeLists.txt || die
69 +
70 + cmake_src_prepare
71 +}
72 +
73 +src_configure() {
74 + local mycmakeargs=(
75 + -DCREATE_TEST_TARGETS=$(usex test)
76 +
77 + # done in dev-util/sysdig-kmod
78 + -DBUILD_DRIVER=OFF
79 + # libscap examples are not installed or really useful
80 + -DBUILD_LIBSCAP_EXAMPLES=OFF
81 +
82 + # unbundle the deps
83 + -DUSE_BUNDLED_DEPS=OFF
84 + )
85 +
86 + cmake_src_configure
87 +}
88 +
89 +src_install() {
90 + cmake_src_install
91 +
92 + # remove sources
93 + rm -r "${ED}"/usr/src || die
94 +
95 + # move bashcomp to the proper location
96 + dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die
97 + rm -r "${ED}"/usr/etc || die
98 +}