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: Thu, 22 Aug 2019 06:49:38
Message-Id: 1566456563.3f11aae5869f83944fe71c20f340df0235a6bb9a.mgorny@gentoo
1 commit: 3f11aae5869f83944fe71c20f340df0235a6bb9a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 22 05:20:06 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 22 06:49:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f11aae5
7
8 dev-util/sysdig: Bump to 0.26.4
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.4.ebuild | 88 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
17 index 3e21b7bcf7d..c9294446013 100644
18 --- a/dev-util/sysdig/Manifest
19 +++ b/dev-util/sysdig/Manifest
20 @@ -1,3 +1,4 @@
21 DIST sysdig-0.26.1.tar.gz 892441 BLAKE2B 38302458c54a10719fadaf5e5bb6d29931a262550eaf44350543e99cd33e6a90889d81f49096d2f57fcc903bc9245a1f782b438a48613f9fc9f90273c46f0f39 SHA512 817573dd2945e20094c548a481205d7ae700e8242a12c75bcab41c52330fb6f508214d71f3d3ba4ecc86576e555c8c2a0c155921d61d29a5861bbf982600f6fb
22 DIST sysdig-0.26.2.tar.gz 907496 BLAKE2B ce489d7c1a54aa2930599aa7141b1a3d4815c0395b4a444dea565334a1b39a36d339eb2bc9d0c2b3924e8c54f9c3adec6b31278017cfee955fe9ed9d3c29977f SHA512 1a2476060f43559ec89663377361d1fcaace7fe3aa3b472629dca78557e6d5868d8f5cfce3411c46804b501d6a56dcb074f6becf3d8e756b7f7fd943087cd3ae
23 DIST sysdig-0.26.3.tar.gz 902206 BLAKE2B ec25d0441c69b8c4c4fc431d073d2f93e476ece7add98412e54ce4286bcd7e32d4b1ff89f75dd728dc66c7d77da157bed2182bad85557c0dcec09648f86abb3d SHA512 f700d1ddae687a3474a8bf6816d2fef6c69e963a269a90a8362287dee698ac9799da18f01f383368c906d294ceb046160a8b0792292a72a3b08fc614b5b69d32
24 +DIST sysdig-0.26.4.tar.gz 902181 BLAKE2B a7ac38be2f7a3d7e4f4fdec6a2fbf5305a8224ee27352da70f509139ebefd14616f84c7b8860f50d2546819a94deb1117034bceddd22128fcf25386b835274f2 SHA512 f56f5d0a522b861df4803bfdafcaf8db3fc9c0e751d06c321082757f6828a210cb86bab4550a3b35bf6412f930e44ab0f5cf709a30651c57dd7064a68e273a88
25
26 diff --git a/dev-util/sysdig/sysdig-0.26.4.ebuild b/dev-util/sysdig/sysdig-0.26.4.ebuild
27 new file mode 100644
28 index 00000000000..2d4c0de2f51
29 --- /dev/null
30 +++ b/dev-util/sysdig/sysdig-0.26.4.ebuild
31 @@ -0,0 +1,88 @@
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 + cmake-utils_src_prepare
83 +}
84 +
85 +src_configure() {
86 + local mycmakeargs=(
87 + # we will use linux-mod for that
88 + -DBUILD_DRIVER=OFF
89 + # libscap examples are not installed or really useful
90 + -DBUILD_LIBSCAP_EXAMPLES=OFF
91 +
92 + # unbundle the deps
93 + -DUSE_BUNDLED_DEPS=OFF
94 + )
95 +
96 + cmake-utils_src_configure
97 +
98 + # setup linux-mod ugliness
99 + MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver/src:)"
100 + BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
101 + BUILD_TARGETS="all"
102 +}
103 +
104 +src_compile() {
105 + cmake-utils_src_compile
106 + linux-mod_src_compile
107 +}
108 +
109 +src_install() {
110 + cmake-utils_src_install
111 + linux-mod_src_install
112 +
113 + # remove sources
114 + rm -r "${ED}"/usr/src || die
115 +
116 + # move bashcomp to the proper location
117 + dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die
118 + rm -r "${ED}"/usr/etc || die
119 +}