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