summaryrefslogtreecommitdiff
path: root/dev-util/fatrace
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/fatrace')
-rw-r--r--dev-util/fatrace/Manifest4
-rw-r--r--dev-util/fatrace/fatrace-0.12.ebuild40
-rw-r--r--dev-util/fatrace/files/fatrace-0.11-sysmacros.patch13
-rw-r--r--dev-util/fatrace/metadata.xml14
4 files changed, 71 insertions, 0 deletions
diff --git a/dev-util/fatrace/Manifest b/dev-util/fatrace/Manifest
new file mode 100644
index 000000000000..652611d75d22
--- /dev/null
+++ b/dev-util/fatrace/Manifest
@@ -0,0 +1,4 @@
+AUX fatrace-0.11-sysmacros.patch 295 BLAKE2B a7f5350f0158e1f0c529b3a67a59b4a4255cd640287822b57e1f0952029b899fbdaab15e2d22394357e1210bcbafe8678866462a8213a030d5dfed2ec57f214b SHA512 0b3946043f74b957eb1b8caad39cc1b031e40bad564a1ffaa593dd77d5f96f06a1103d8d0b3689b4fe58f4bb4ff105d81855c9088ea5eec9d4ce6876d4a6f7f9
+DIST fatrace-0.12.tar.bz2 19377 BLAKE2B 5279af5497408fdc614f090060e56552e0f396501a0d4155752ab44bfa666878ab4b969979314051b9b3f529e3870ffdc8071f332dbc146f0d2a7798c8b2549a SHA512 76dfc9dfc5c6b8e13f5d0c5c01c5c1b91093a5d980ded1f8fd776c9e861a6679eea193bcdd92b1c8770c9af346820300f186b7167ff4313e670f27ea31f765ea
+EBUILD fatrace-0.12.ebuild 844 BLAKE2B d20c3845d873391b4a429b541cc45a8f55adc6cff1423e9dd757d34500b3948a1769d812a13494ab5e91fee403bf92e9dfed3f8794b7c92c70eb02baf5297c3d SHA512 befb801bc29cce8b63e896355c68e99b28f3adb4c5eb1b73244653e62e1b576b9485a562295391ba3d507dc62685a6515d3739b9a26888995a775ce80b42376f
+MISC metadata.xml 388 BLAKE2B 3725d4392852682048ac5ef723a192389940988dbacec188d1956b73db5f2988b07c2b0a24912afdefa94765f70ababe8033f8778f82d016ac632d58b16cb84c SHA512 195cef9daf519cc93f44926498d1d58f3751bbdb54df19fe1745d245c4ded2c190da45637bb52a2682a6d2fc5ae692bed0cb3f5c111c4f6e156b11d0690e3036
diff --git a/dev-util/fatrace/fatrace-0.12.ebuild b/dev-util/fatrace/fatrace-0.12.ebuild
new file mode 100644
index 000000000000..e6bad36cf676
--- /dev/null
+++ b/dev-util/fatrace/fatrace-0.12.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+
+inherit linux-info python-r1 toolchain-funcs
+
+DESCRIPTION="report file access events from all running processes"
+HOMEPAGE="https://launchpad.net/fatrace"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="powertop"
+
+RDEPEND="powertop? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}"
+REQUIRED_USE="powertop? ( ${PYTHON_REQUIRED_USE} )"
+
+CONFIG_CHECK="~FANOTIFY"
+
+pkg_setup() {
+ use powertop && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.11-sysmacros.patch #580082
+ tc-export CC
+}
+
+src_install() {
+ dosbin fatrace
+ use powertop && dosbin power-usage-report
+
+ doman fatrace.1
+ dodoc NEWS
+}
diff --git a/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch b/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch
new file mode 100644
index 000000000000..6f1816dc011b
--- /dev/null
+++ b/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch
@@ -0,0 +1,13 @@
+https://bugs.launchpad.net/fatrace/+bug/1572396
+https://bugs.gentoo.org/580082
+
+--- a/fatrace.c
++++ b/fatrace.c
+@@ -33,6 +33,7 @@
+ #include <signal.h>
+ #include <time.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <sys/fanotify.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
diff --git a/dev-util/fatrace/metadata.xml b/dev-util/fatrace/metadata.xml
new file mode 100644
index 000000000000..1c2ccfe5c948
--- /dev/null
+++ b/dev-util/fatrace/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <use>
+ <flag name="powertop">Add powetop integration</flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">fatrace</remote-id>
+ </upstream>
+</pkgmetadata>