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: Mon, 28 Sep 2015 11:10:29
Message-Id: 1443255915.eaea9055c8b569896a92655199287e70ad3baa10.mgorny@gentoo
1 commit: eaea9055c8b569896a92655199287e70ad3baa10
2 Author: Gregory M. Turner <gmt <AT> be-evil <DOT> net>
3 AuthorDate: Sun Sep 20 22:59:11 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 08:25:15 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaea9055
7
8 dev-util/sysdig: Version bump: 0.1.104
9
10 Update to latest upstream release. Fix SRC_URI to reference
11 auto-generated github "tag" tarball.
12
13 Fixes: #559218
14 Signed-off-by: Gregory M. Turner <gmt <AT> be-evil.net>
15
16 dev-util/sysdig/Manifest | 1 +
17 dev-util/sysdig/sysdig-0.1.104.ebuild | 84 +++++++++++++++++++++++++++++++++++
18 2 files changed, 85 insertions(+)
19
20 diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
21 index b042b53..c16e1c5 100644
22 --- a/dev-util/sysdig/Manifest
23 +++ b/dev-util/sysdig/Manifest
24 @@ -1,2 +1,3 @@
25 +DIST sysdig-0.1.104.tar.gz 459784 SHA256 05a7ed95a1b73053cae0a77de199e84d7c9804014166527e3b211ed637c3fbab SHA512 5b2a3daeee5ce1860c3feb0e21796157f7228286df86432ec201d3ff6568458f2c2d77010b72de2f6c9cea0e7eb53ea112e988c9e83eb4df084754e0cd91b126 WHIRLPOOL b873e977403d9c36a10e77b85cbdb1bf72a70bd03b846a82c844964a57d8e84fded357e7ef7ec0ffff33c2724810eca8e19ba4c4265405f6ead446d09e41d409
26 DIST sysdig-0.1.92.tar.xz 244728 SHA256 794ae6cef6ab8dae029979f5985b72c15f209e927518a3881e8a7624d77d5132 SHA512 661af8eece353ba0b0ea518496da89f4525f767c2797ff9f9e5caf670b6b3e7fa0c5cb14c3852971f563b665b42105a143d458a041b270d7107a403b2ec98b11 WHIRLPOOL bb47d717bcb3c5c948f4344a56e45996cfe275a48ea19f0fa12c2fce91f81fad317c9b5c05812e9c2aaf02240b597fb85f60a5ad3ee391a1a825de62a7eab57c
27 DIST sysdig-0.1.98.tar.xz 263328 SHA256 5d60896ad2997f3dcf5d7252a53f5f7808ded11bd7c63f3a8c2aaaa1421f018f SHA512 8e4ab622fd0d69567e63054df256bfddda5765e2cf4d89490cd871625e4bb16d3d25ecbf0965f00e312d03ef3044615a7fd94d2f704b1a833ae1da9e2f66f33a WHIRLPOOL a96f8e8635d03351e4f42e8b3959c890a63a1232df5c9cc03f9359e18a926e23561e4f4fb10986285ff757e3ee47305a7fde01905541984e5582ba740962db70
28
29 diff --git a/dev-util/sysdig/sysdig-0.1.104.ebuild b/dev-util/sysdig/sysdig-0.1.104.ebuild
30 new file mode 100644
31 index 0000000..5ada6f7
32 --- /dev/null
33 +++ b/dev-util/sysdig/sysdig-0.1.104.ebuild
34 @@ -0,0 +1,84 @@
35 +# Copyright 1999-2015 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +
41 +inherit linux-mod bash-completion-r1 cmake-utils
42 +
43 +DESCRIPTION="A system exploration and troubleshooting tool"
44 +HOMEPAGE="http://www.sysdig.org/"
45 +SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="+modules"
51 +
52 +RDEPEND="dev-lang/luajit:2=
53 + >=dev-libs/jsoncpp-0.6_pre:0=
54 + sys-libs/zlib:0="
55 +DEPEND="${RDEPEND}
56 + app-arch/xz-utils
57 + virtual/os-headers"
58 +
59 +# needed for the kernel module
60 +CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS TRACEPOINTS"
61 +
62 +pkg_pretend() {
63 + use modules && linux-mod_pkg_setup
64 +}
65 +
66 +pkg_setup() {
67 + use modules && linux-mod_pkg_setup
68 +}
69 +
70 +src_prepare() {
71 + sed -i -e 's:-ggdb::' CMakeLists.txt || die
72 +
73 + cmake-utils_src_prepare
74 +}
75 +
76 +src_configure() {
77 + local mycmakeargs=(
78 + # we will use linux-mod for that
79 + -DBUILD_DRIVER=OFF
80 + # libscap examples are not installed or really useful
81 + -DBUILD_LIBSCAP_EXAMPLES=OFF
82 +
83 + # unbundle the deps
84 + -DUSE_BUNDLED_LUAJIT=OFF
85 + -DLUAJIT_PREFIX="${EPREFIX}"/usr
86 + -DLUAJIT_INCLUDE="${EPREFIX}"/usr/include/luajit-2.0
87 + -DUSE_BUNDLED_JSONCPP=OFF
88 + -DJSONCPP_PREFIX="${EPREFIX}"/usr
89 + -DJSONCPP_INCLUDE="${EPREFIX}"/usr/include/jsoncpp
90 + -DUSE_BUNDLED_ZLIB=OFF
91 + -DZLIB_PREFIX="${EPREFIX}"/usr
92 + )
93 +
94 + cmake-utils_src_configure
95 +
96 + # setup linux-mod ugliness
97 + MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver:)"
98 + BUILD_TARGETS="driver"
99 +}
100 +
101 +src_compile() {
102 + cmake-utils_src_compile
103 +
104 + use modules && linux-mod_src_compile
105 +}
106 +
107 +src_install() {
108 + cmake-utils_src_install
109 +
110 + use modules && linux-mod_src_install
111 +
112 + # remove sources
113 + rm -r "${ED%/}"/usr/src || die
114 +
115 + # move bashcomp to the proper location
116 + dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
117 + rm -r "${ED%/}"/usr/etc || die
118 +}