summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-11 21:51:49 +0000
committerMichał Górny <mgorny@gentoo.org>2014-11-11 21:51:49 +0000
commit432939761fb685d37929c8ff11779f3973b23956 (patch)
tree79730b426c27a081859d72ae954afe79b3f5d0d9 /dev-util/sysdig
parentUpdate e-mail :/ (diff)
downloadhistorical-432939761fb685d37929c8ff11779f3973b23956.tar.gz
historical-432939761fb685d37929c8ff11779f3973b23956.tar.bz2
historical-432939761fb685d37929c8ff11779f3973b23956.zip
Introduce initial version of sysdig, bug #510718.
Package-Manager: portage-2.2.14/cvs/Linux x86_64 Manifest-Sign-Key: 0xEFB4464E!
Diffstat (limited to 'dev-util/sysdig')
-rw-r--r--dev-util/sysdig/ChangeLog9
-rw-r--r--dev-util/sysdig/Manifest26
-rw-r--r--dev-util/sysdig/metadata.xml8
-rw-r--r--dev-util/sysdig/sysdig-0.1.92.ebuild81
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-util/sysdig/ChangeLog b/dev-util/sysdig/ChangeLog
new file mode 100644
index 000000000000..25aa9e1e0761
--- /dev/null
+++ b/dev-util/sysdig/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/sysdig
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysdig/ChangeLog,v 1.1 2014/11/11 21:51:43 mgorny Exp $
+
+*sysdig-0.1.92 (11 Nov 2014)
+
+ 11 Nov 2014; Michał Górny <mgorny@gentoo.org> +metadata.xml,
+ +sysdig-0.1.92.ebuild:
+ Introduce initial version of sysdig, bug #510718.
diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
new file mode 100644
index 000000000000..19e86b25a294
--- /dev/null
+++ b/dev-util/sysdig/Manifest
@@ -0,0 +1,26 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST sysdig-0.1.92.tar.xz 244728 SHA256 794ae6cef6ab8dae029979f5985b72c15f209e927518a3881e8a7624d77d5132 SHA512 661af8eece353ba0b0ea518496da89f4525f767c2797ff9f9e5caf670b6b3e7fa0c5cb14c3852971f563b665b42105a143d458a041b270d7107a403b2ec98b11 WHIRLPOOL bb47d717bcb3c5c948f4344a56e45996cfe275a48ea19f0fa12c2fce91f81fad317c9b5c05812e9c2aaf02240b597fb85f60a5ad3ee391a1a825de62a7eab57c
+EBUILD sysdig-0.1.92.ebuild 1930 SHA256 7f62210294a65e95338b10b9bd8861b65b15beb67f00cf5094ddd5b3cc4b05c8 SHA512 71e93c7d27307f9853cc0e8198712fa83e553a3a4c493f98afff24b4f697746b94e694dd9dc19491f6e9d5a5ba7689ec7ee1ebe0c9f574c459f20c9ffd40c8cc WHIRLPOOL bb9542f5d9dbd62db7b5408bebff67d2db975dc25185acd560241a5ade83cfca08d9fe9afec600484ccf7bed0f9a12081f9e16d6f36e16d99a5c84b4df036b70
+MISC ChangeLog 375 SHA256 900de622b3e55910d1542c030027bf540f7275e55dc4fddfae15eabfa68bed5c SHA512 6ca6cf381efe9d5d91845bdf176b5dd6bddd5bee48272d2772eeeb35ff7bcd040d3e43d3c68982a4997ecf4ad8ea00f821bf05f0a655baf6e20c6e9efe516e82 WHIRLPOOL d9824156078451fc53109b1086fdc6f66137370759fc7c0fbd0a29ba023bd3d98fbe70395f3ed7385c35c33415acc8f33995026639f85796d4d683300834e02b
+MISC metadata.xml 233 SHA256 fd88d74157f79eb4a06067443b7138cfb56fe1c66bfa5dfe72bda038ea5a9dda SHA512 6676f74cc1b612ba4f95101b64570f257e4b37cfd803a987e3afd9e12ef9b1480918c5d6e4fa955b8447eba9e319c94aac11abe247187870406986b476b154e8 WHIRLPOOL 3c1f192d1fb5e213e407a70a7be417170b651f3049b32ddf1f6b1c1983dedbcb498fa92eb96a41463c0ff0754044930150f0e5940708a6584923e12b86200349
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQJ8BAEBCABmBQJUYoT1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
+MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOkJMQAIDGTTSmDGIT6IoqGcL+lEVr
+MFWOJzhmBUB5Oo9Re+UHSfIhrq99/g1Vrw+I7RAYhqwMGh3rBT5nY2SQGvswNg/t
+U6fUAPzp7OcarDyCsOPwmSinhLbOwmBd6RdEEkXgX//KkpnRRKrvU+bl0xly4sNP
+cMysQIfIxzxVqMNqKy+T/7XPa73WPAxBL8v3NWEjPdxKOMimhdHlowH98MMo6Cmn
+u2nlaJ/dvse5M5LeXwH2GRXHSLc+jAt26ESKaSp5mtiNOs83ATid4DQsd5CbTOz5
+mbx4FDyeGF5f8rcF9OqWymCV2j1X/zJfeLn0gVXRdE+VXhT7/beLEvpW+T+TOinB
+zxT8PWnMxekMvnxfPrP9DqLbKSrJoBSvIkkqPEmUMoiuRxioxkjFSl5rEoi10daU
+w0XUYT4+I6Yq0upsoMTYpYAEXjacIP+RaArR6Fszt53GP29pSfjn+kEagxUYm1YU
+fsncTi42NnzAOzzSp3AkXNh89eKyTnkjRNWSAhFl2OwVns0vMuSMptzN8OFQsdxy
+5/k0cS62t2Pp7MigT6aWImeX/RlvHVaGiTfGIL70NXltb0aFpUY2CiGTmHq4v/zx
+yJZ2WbwKFdLHLNEHu8WqFmsDXM69rwklIldMZqii3hCZwzVMZl71/YHmkcoyXJI4
+SSSX20nwupkJdMBQajiy
+=U47D
+-----END PGP SIGNATURE-----
diff --git a/dev-util/sysdig/metadata.xml b/dev-util/sysdig/metadata.xml
new file mode 100644
index 000000000000..5cb9324943ab
--- /dev/null
+++ b/dev-util/sysdig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/sysdig/sysdig-0.1.92.ebuild b/dev-util/sysdig/sysdig-0.1.92.ebuild
new file mode 100644
index 000000000000..51e6a63811bd
--- /dev/null
+++ b/dev-util/sysdig/sysdig-0.1.92.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysdig/sysdig-0.1.92.ebuild,v 1.1 2014/11/11 21:51:43 mgorny Exp $
+
+EAPI=5
+
+inherit linux-mod bash-completion-r1 cmake-utils
+
+DESCRIPTION="A system exploration and troubleshooting tool"
+HOMEPAGE="http://www.sysdig.org/"
+# mirrored from https://github.com/draios/sysdig/archive/${PV}.tar.gz
+SRC_URI="http://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="kernel_linux"
+
+RDEPEND="dev-lang/luajit:2=
+ dev-libs/jsoncpp:0=
+ sys-libs/zlib:0="
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/os-headers"
+
+# needed for the kernel module
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS TRACEPOINTS"
+
+pkg_setup() {
+ use kernel_linux && linux-mod_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # we will use linux-mod for that
+ -DBUILD_DRIVER=OFF
+ # libscap examples are not installed or really useful
+ -DBUILD_LIBSCAP_EXAMPLES=OFF
+
+ # unbundle the deps
+ -DUSE_BUNDLED_LUAJIT=OFF
+ -DLUAJIT_PREFIX="${EPREFIX}"/usr
+ -DLUAJIT_INCLUDE="${EPREFIX}"/usr/include/luajit-2.0
+ -DUSE_BUNDLED_JSONCPP=OFF
+ -DJSONCPP_PREFIX="${EPREFIX}"/usr
+ -DJSONCPP_INCLUDE="${EPREFIX}"/usr/include/jsoncpp
+ -DUSE_BUNDLED_ZLIB=OFF
+ -DZLIB_PREFIX="${EPREFIX}"/usr
+ )
+
+ cmake-utils_src_configure
+
+ # setup linux-mod ugliness
+ MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver:)"
+ BUILD_TARGETS="driver"
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ use kernel_linux && linux-mod_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use kernel_linux && linux-mod_src_install
+
+ # remove sources
+ rm -r "${ED%/}"/usr/src || die
+
+ # move bashcomp to the proper location
+ dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
+ rm -r "${ED%/}"/usr/etc || die
+}