summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-22 10:36:18 +0000
committerMichał Górny <mgorny@gentoo.org>2014-11-22 10:36:18 +0000
commit2753df2cdfa47ed4078d322ba6e0b2147a29b8bc (patch)
treee9fb5e89fc8630d95faee265d0625ee645e847d2 /dev-util/sysdig
parentbump; add missed rdep, rm old (diff)
downloadgentoo-2-2753df2cdfa47ed4078d322ba6e0b2147a29b8bc.tar.gz
gentoo-2-2753df2cdfa47ed4078d322ba6e0b2147a29b8bc.tar.bz2
gentoo-2-2753df2cdfa47ed4078d322ba6e0b2147a29b8bc.zip
Add USE=modules to support disabling kernel modules (e.g. to work with dumpfiles only). Add a pkg_pretend().
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'dev-util/sysdig')
-rw-r--r--dev-util/sysdig/ChangeLog7
-rw-r--r--dev-util/sysdig/metadata.xml5
-rw-r--r--dev-util/sysdig/sysdig-0.1.92.ebuild14
3 files changed, 20 insertions, 6 deletions
diff --git a/dev-util/sysdig/ChangeLog b/dev-util/sysdig/ChangeLog
index 25aa9e1e0761..ba875f3e8cb1 100644
--- a/dev-util/sysdig/ChangeLog
+++ b/dev-util/sysdig/ChangeLog
@@ -1,6 +1,11 @@
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysdig/ChangeLog,v 1.2 2014/11/22 10:36:18 mgorny Exp $
+
+ 22 Nov 2014; Michał Górny <mgorny@gentoo.org> metadata.xml,
+ sysdig-0.1.92.ebuild:
+ Add USE=modules to support disabling kernel modules (e.g. to work with
+ dumpfiles only). Add a pkg_pretend().
*sysdig-0.1.92 (11 Nov 2014)
diff --git a/dev-util/sysdig/metadata.xml b/dev-util/sysdig/metadata.xml
index 5cb9324943ab..33c7008e71d7 100644
--- a/dev-util/sysdig/metadata.xml
+++ b/dev-util/sysdig/metadata.xml
@@ -5,4 +5,9 @@
<email>mgorny@gentoo.org</email>
<name>Michał Górny</name>
</maintainer>
+ <use>
+ <flag name='modules'>Build kernel modules needed for tracing local
+ events. Disable this only if you intend to use sysdig purely
+ to work with dumpfiles.</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-util/sysdig/sysdig-0.1.92.ebuild b/dev-util/sysdig/sysdig-0.1.92.ebuild
index 51e6a63811bd..5f742875680b 100644
--- a/dev-util/sysdig/sysdig-0.1.92.ebuild
+++ b/dev-util/sysdig/sysdig-0.1.92.ebuild
@@ -1,6 +1,6 @@
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/sysdig/sysdig-0.1.92.ebuild,v 1.2 2014/11/22 10:36:18 mgorny Exp $
EAPI=5
@@ -14,7 +14,7 @@ SRC_URI="http://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="kernel_linux"
+IUSE="+modules"
RDEPEND="dev-lang/luajit:2=
dev-libs/jsoncpp:0=
@@ -26,8 +26,12 @@ DEPEND="${RDEPEND}
# needed for the kernel module
CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS TRACEPOINTS"
+pkg_pretend() {
+ use modules && linux-mod_pkg_setup
+}
+
pkg_setup() {
- use kernel_linux && linux-mod_pkg_setup
+ use modules && linux-mod_pkg_setup
}
src_prepare() {
@@ -64,13 +68,13 @@ src_configure() {
src_compile() {
cmake-utils_src_compile
- use kernel_linux && linux-mod_src_compile
+ use modules && linux-mod_src_compile
}
src_install() {
cmake-utils_src_install
- use kernel_linux && linux-mod_src_install
+ use modules && linux-mod_src_install
# remove sources
rm -r "${ED%/}"/usr/src || die