Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysdig/
Date: Tue, 23 Aug 2022 05:34:48
Message-Id: 1661232859.577e733cd936ecf7c734de289cc731308a41db94.sam@gentoo
1 commit: 577e733cd936ecf7c734de289cc731308a41db94
2 Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
3 AuthorDate: Wed Jul 20 11:57:23 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 05:34:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=577e733c
7
8 dev-util/sysdig: bump to 0.29.3
9
10 Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
11 Closes: https://github.com/gentoo/gentoo/pull/26496
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 dev-util/sysdig/Manifest | 2 +
15 dev-util/sysdig/metadata.xml | 9 +++-
16 dev-util/sysdig/sysdig-0.29.3.ebuild | 88 ++++++++++++++++++++++++++++++++++++
17 3 files changed, 98 insertions(+), 1 deletion(-)
18
19 diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
20 index cc1b76c77570..9262fd7968f3 100644
21 --- a/dev-util/sysdig/Manifest
22 +++ b/dev-util/sysdig/Manifest
23 @@ -1 +1,3 @@
24 +DIST falcosecurity-libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a.tar.gz 816972 BLAKE2B b47ae6a7677935500ebdab8aea7f4c49ef50b7175ec097e7213a1f041ac2b5aa642379924927ec12c84271016e9ab9d191c0c1d4ffacd6ade58b7a03c37f9221 SHA512 65e5916e5f9507fd867a5e9ba3b2670a1b73b7672a22479d3019e948a52ad74441d7e2ce1c74ebd0fdbd1ce66808efa49f285bd5180bceae9d4e6730a60787ce
25 DIST sysdig-0.27.1.tar.gz 936415 BLAKE2B f4c15e3a2d4b974c5eafc8374f927dd82f123c05cc1976d04b08e77e1a7c0ff53f37c4e2c0022b7073fcc936310daf76ca3c3611141799ae4f51991bc6f3a0a3 SHA512 690f012c7db0a75ec2eb78fae17aae0f422aa1db0d4c2b15c4a09153fd2f60bd3c00d62238976fdcff2a906d87b2e34b81d02c0c78ad2684a1d6016a9988eb08
26 +DIST sysdig-0.29.3.tar.gz 306984 BLAKE2B 51e9a0a085fa91d65963fd33e00b139d97d22b551de8ca85e48b4af73991897378970dfde54754a970e79300f06a54bad1d9c8fdfdb44f24150d0b21077e423f SHA512 1dbe1195f245921c671ed2343325aee79fd0cde34681b9cab445135662d3ed7c84884e46b2270c0e868b5de1a3f2800b84e8bf9fcf0dfe581dd17e2e633f46d8
27
28 diff --git a/dev-util/sysdig/metadata.xml b/dev-util/sysdig/metadata.xml
29 index 8e4769903018..c16f8ef41665 100644
30 --- a/dev-util/sysdig/metadata.xml
31 +++ b/dev-util/sysdig/metadata.xml
32 @@ -1,7 +1,14 @@
33 <?xml version="1.0" encoding="UTF-8"?>
34 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
35 <pkgmetadata>
36 - <!-- maintainer-needed -->
37 + <maintainer type="person" proxied="yes">
38 + <email>holger@××××××××××××××××××.com</email>
39 + <name>Holger Hoffstätte</name>
40 + </maintainer>
41 + <maintainer type="project" proxied="proxy">
42 + <email>proxy-maint@g.o</email>
43 + <name>Proxy Maintainers</name>
44 + </maintainer>
45 <use>
46 <flag name="modules">Build kernel modules needed for tracing local
47 events. Disable this only if you intend to use sysdig purely
48
49 diff --git a/dev-util/sysdig/sysdig-0.29.3.ebuild b/dev-util/sysdig/sysdig-0.29.3.ebuild
50 new file mode 100644
51 index 000000000000..2c0745f73303
52 --- /dev/null
53 +++ b/dev-util/sysdig/sysdig-0.29.3.ebuild
54 @@ -0,0 +1,88 @@
55 +# Copyright 1999-2022 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=8
59 +
60 +LUA_COMPAT=( luajit )
61 +
62 +inherit bash-completion-r1 cmake lua-single
63 +
64 +DESCRIPTION="A system exploration and troubleshooting tool"
65 +HOMEPAGE="https://sysdig.com/"
66 +
67 +# For now we need to bump this version of falcosecurity/libs manually;
68 +# check the used git revision in <src>/cmake/modules/falcosecurity-libs.cmake
69 +LIBS_COMMIT="e5c53d648f3c4694385bbe488e7d47eaa36c229a"
70 +
71 +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz
72 + https://github.com/falcosecurity/libs/archive/${LIBS_COMMIT}.tar.gz -> falcosecurity-libs-${LIBS_COMMIT}.tar.gz"
73 +
74 +LICENSE="Apache-2.0"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE="+modules"
78 +REQUIRED_USE="${LUA_REQUIRED_USE}"
79 +
80 +RDEPEND="${LUA_DEPS}
81 + app-misc/jq
82 + dev-cpp/tbb:=
83 + dev-cpp/yaml-cpp:=
84 + dev-libs/libb64:=
85 + dev-libs/openssl:=
86 + dev-libs/protobuf:=
87 + net-dns/c-ares:=
88 + net-libs/grpc:=
89 + net-misc/curl
90 + sys-libs/ncurses:=
91 + sys-libs/zlib:="
92 +
93 +DEPEND="${RDEPEND}
94 + dev-cpp/nlohmann_json
95 + dev-cpp/valijson
96 + virtual/os-headers"
97 +
98 +# for now pin the driver to the same ebuild version
99 +PDEPEND="modules? ( =dev-util/scap-driver-${PV}* )"
100 +
101 +src_prepare() {
102 + sed -i -e 's:-ggdb::' CMakeLists.txt || die
103 + cmake_src_prepare
104 +}
105 +
106 +src_configure() {
107 + local mycmakeargs=(
108 + # don't build driver
109 + -DBUILD_DRIVER=OFF
110 +
111 + # libscap examples are not installed or really useful
112 + -DBUILD_LIBSCAP_EXAMPLES=OFF
113 +
114 + # point to the falcosecurity-libs tree
115 + -DFALCOSECURITY_LIBS_SOURCE_DIR="${WORKDIR}"/libs-${LIBS_COMMIT}
116 +
117 + # explicitly set version
118 + -DSYSDIG_VERSION=${PV}
119 +
120 + # unbundle the deps
121 + -DUSE_BUNDLED_DEPS=OFF
122 +
123 + # add valijson include path to prevent downloading
124 + -DVALIJSON_INCLUDE="${ESYSROOT}"/usr/include
125 +
126 + # enable chisels
127 + -DWITH_CHISEL=ON
128 + )
129 +
130 + cmake_src_configure
131 +}
132 +
133 +src_install() {
134 + cmake_src_install
135 +
136 + # remove driver headers
137 + rm -r "${ED}"/usr/src || die
138 +
139 + # move bashcomp to the proper location
140 + dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die
141 + rm -r "${ED}"/usr/etc || die
142 +}