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