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: Wed, 01 Aug 2018 07:27:06
Message-Id: 1533108411.5f4afbfe30ec4f5cf900fc9a5b8017bccdd591d9.mgorny@gentoo
1 commit: 5f4afbfe30ec4f5cf900fc9a5b8017bccdd591d9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 1 06:58:50 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 07:26:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f4afbfe
7
8 dev-util/sysdig: Bump to 0.22.1
9
10 dev-util/sysdig/Manifest | 1 +
11 dev-util/sysdig/sysdig-0.22.1.ebuild | 92 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 93 insertions(+)
13
14 diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
15 index 6e96475c742..89aa7bd7421 100644
16 --- a/dev-util/sysdig/Manifest
17 +++ b/dev-util/sysdig/Manifest
18 @@ -1,2 +1,3 @@
19 DIST sysdig-0.21.0.tar.gz 756010 BLAKE2B 0dfcc3e7f5c830e8b250e4edd9d470764ea6be25804fefbc59b020f208edc313a51b3fb783e538d2acb520c56ad7c8555f224fb90999c87b89125394a90d54a1 SHA512 73c516c9fccb504d4ccd37384aee37ece542d29f82d696acf7c90df18b3a1538faf8d2b29065eae1f3dca7c04c6c2dbe93ed9369bc1340216482c4af2f61d23a
20 DIST sysdig-0.22.0.tar.gz 824519 BLAKE2B 7d46376f4f3c346fb6e9ce55552a0377aea6dc258ce3487b1e5a970a25721fca95d731d7313d1dc4b72dbefd9ac37e4050d7a934b8b9bdce027b5b6774ea1351 SHA512 599195bce77f4c2d3f62b11c00361420ab15da5fda4553486a7f812a1a464927cfa4ead36bf046fb1cecd3cf03e5d80a261d4571405d6bc309383bd2b4ad0204
21 +DIST sysdig-0.22.1.tar.gz 825171 BLAKE2B aa4836ed0be30fb3d8318b151c3f60586daaea15974558e7d81ba2da6d9c511bedc67fe8bc518697b6a268ea93bd112f64ae5772ef75c10d8b57d06e1468ff13 SHA512 e9f5ca594dc31832b4ea365a624208f5319add1480cfe9fb3d0e960757229fbe6ce46b906a390a667147ae1a7c0a31fd7ffeb9a1a0b376376530d4f60f397453
22
23 diff --git a/dev-util/sysdig/sysdig-0.22.1.ebuild b/dev-util/sysdig/sysdig-0.22.1.ebuild
24 new file mode 100644
25 index 00000000000..e366e662630
26 --- /dev/null
27 +++ b/dev-util/sysdig/sysdig-0.22.1.ebuild
28 @@ -0,0 +1,92 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI="6"
33 +
34 +: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
35 +MODULES_OPTIONAL_USE=modules
36 +inherit linux-mod bash-completion-r1 cmake-utils
37 +
38 +DESCRIPTION="A system exploration and troubleshooting tool"
39 +HOMEPAGE="https://www.sysdig.org/"
40 +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="libressl +modules"
46 +
47 +RDEPEND="
48 + app-misc/jq:0=
49 + dev-lang/luajit:2=
50 + >=dev-libs/jsoncpp-0.6_pre:0=
51 + dev-libs/libb64:0=
52 + sys-libs/ncurses:0=
53 + sys-libs/zlib:0=
54 + libressl? ( dev-libs/libressl:0= )
55 + !libressl? ( dev-libs/openssl:0= )
56 + net-misc/curl:0="
57 +DEPEND="${RDEPEND}
58 + app-arch/xz-utils
59 + virtual/os-headers"
60 +
61 +# needed for the kernel module
62 +CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
63 +
64 +pkg_pretend() {
65 + linux-mod_pkg_setup
66 +}
67 +
68 +pkg_setup() {
69 + linux-mod_pkg_setup
70 +}
71 +
72 +src_prepare() {
73 + sed -i -e 's:-ggdb::' CMakeLists.txt || die
74 +
75 + cmake-utils_src_prepare
76 +}
77 +
78 +src_configure() {
79 + local mycmakeargs=(
80 + # we will use linux-mod for that
81 + -DBUILD_DRIVER=OFF
82 + # libscap examples are not installed or really useful
83 + -DBUILD_LIBSCAP_EXAMPLES=OFF
84 +
85 + # unbundle the deps
86 + -DUSE_BUNDLED_DEPS=OFF
87 + )
88 +
89 + cmake-utils_src_configure
90 +
91 + # setup linux-mod ugliness
92 + MODULE_NAMES="sysdig-probe(extra:${S}/driver:)"
93 + BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
94 + BUILD_TARGETS="all"
95 +
96 + if use modules; then
97 + cmake-utils_src_make configure_driver
98 +
99 + cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die
100 + fi
101 +}
102 +
103 +src_compile() {
104 + cmake-utils_src_compile
105 +
106 + linux-mod_src_compile
107 +}
108 +
109 +src_install() {
110 + cmake-utils_src_install
111 +
112 + linux-mod_src_install
113 +
114 + # remove sources
115 + rm -r "${ED%/}"/usr/src || die
116 +
117 + # move bashcomp to the proper location
118 + dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
119 + rm -r "${ED%/}"/usr/etc || die
120 +}