Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/iotop-c/
Date: Wed, 08 Sep 2021 12:24:32
Message-Id: 1631103843.d2a560187c928c06c16fb88387957f4c241c0cae.arthurzam@gentoo
1 commit: d2a560187c928c06c16fb88387957f4c241c0cae
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 8 12:22:50 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 8 12:24:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a56018
7
8 sys-process/iotop-c: initial import (from ::guru)
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 sys-process/iotop-c/Manifest | 1 +
13 sys-process/iotop-c/iotop-c-1.18.ebuild | 36 +++++++++++++++++++++++++++++++++
14 sys-process/iotop-c/iotop-c-9999.ebuild | 34 +++++++++++++++++++++++++++++++
15 sys-process/iotop-c/metadata.xml | 18 +++++++++++++++++
16 4 files changed, 89 insertions(+)
17
18 diff --git a/sys-process/iotop-c/Manifest b/sys-process/iotop-c/Manifest
19 new file mode 100644
20 index 00000000000..4c6717c0a8c
21 --- /dev/null
22 +++ b/sys-process/iotop-c/Manifest
23 @@ -0,0 +1 @@
24 +DIST iotop-c-1.18.tar.gz 114838 BLAKE2B 8b3e13d00de4a5cd385a2d441d84bb27cc1d03a27012163b9628285c31176698bf840951e39199abef11b2d3c0413d500d6e7699f32a3b542360a1333307d00e SHA512 f0affbfdb106eb36078e7994860155f52d47878017f47e64d69aa7c04cc29756ca516a6634fd19d6d39c931100b9a0e93e07ca2f4d14c18014dc1c4f477907ea
25
26 diff --git a/sys-process/iotop-c/iotop-c-1.18.ebuild b/sys-process/iotop-c/iotop-c-1.18.ebuild
27 new file mode 100644
28 index 00000000000..b6d52c5d05f
29 --- /dev/null
30 +++ b/sys-process/iotop-c/iotop-c-1.18.ebuild
31 @@ -0,0 +1,36 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit fcaps linux-info toolchain-funcs
38 +
39 +DESCRIPTION="top utility for IO (C port)"
40 +HOMEPAGE="https://github.com/Tomas-M/iotop"
41 +SRC_URI="https://github.com/Tomas-M/iotop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +S="${WORKDIR}/iotop-${PV}"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +RDEPEND="sys-libs/ncurses:=
49 + !sys-process/iotop"
50 +DEPEND="${RDEPEND}"
51 +BDEPEND="virtual/pkgconfig"
52 +
53 +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS"
54 +
55 +FILECAPS=(
56 + cap_net_admin=eip usr/bin/iotop
57 +)
58 +
59 +src_compile() {
60 + emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1
61 +}
62 +
63 +src_install() {
64 + dobin iotop
65 + dodoc README.md
66 + doman iotop.8
67 +}
68
69 diff --git a/sys-process/iotop-c/iotop-c-9999.ebuild b/sys-process/iotop-c/iotop-c-9999.ebuild
70 new file mode 100644
71 index 00000000000..b05952298d1
72 --- /dev/null
73 +++ b/sys-process/iotop-c/iotop-c-9999.ebuild
74 @@ -0,0 +1,34 @@
75 +# Copyright 2021 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=8
79 +
80 +EGIT_REPO_URI="https://github.com/Tomas-M/iotop"
81 +inherit fcaps git-r3 linux-info toolchain-funcs
82 +
83 +DESCRIPTION="top utility for IO (C port)"
84 +HOMEPAGE="https://github.com/Tomas-M/iotop"
85 +
86 +LICENSE="GPL-2+"
87 +SLOT="0"
88 +
89 +RDEPEND="sys-libs/ncurses:=
90 + !sys-process/iotop"
91 +DEPEND="${RDEPEND}"
92 +BDEPEND="virtual/pkgconfig"
93 +
94 +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS ~VM_EVENT_COUNTERS"
95 +
96 +FILECAPS=(
97 + cap_net_admin=eip usr/bin/iotop
98 +)
99 +
100 +src_compile() {
101 + emake V=1 CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" NO_FLTO=1
102 +}
103 +
104 +src_install() {
105 + dobin iotop
106 + dodoc README.md
107 + doman iotop.8
108 +}
109
110 diff --git a/sys-process/iotop-c/metadata.xml b/sys-process/iotop-c/metadata.xml
111 new file mode 100644
112 index 00000000000..e99460ff502
113 --- /dev/null
114 +++ b/sys-process/iotop-c/metadata.xml
115 @@ -0,0 +1,18 @@
116 +<?xml version="1.0" encoding="UTF-8"?>
117 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
118 +<pkgmetadata>
119 + <maintainer type="person">
120 + <email>arthurzam@g.o</email>
121 + <name>Arthur Zamarin</name>
122 + </maintainer>
123 + <longdescription lang="en">
124 +Your Linux server is too slow or load is too high? One of the possible causes of such symptoms may be high IO (input/output) waiting time, which basically means that some of your processes need to read or write to a hard drive while it is too slow and not ready yet, serving data for some other processes.
125 +
126 +Common practice is to use iostat -x in order to find out which block device (hard drive) is slow, but such information is not always much helpful. It could help you much more if you knew which process reads or writes the most data from your slow disk, so you could possibly renice it using ionice or even kill it.
127 +
128 +IOTop will identify processes, which use high amount of input/output requests on your machine. It is similar to the well known top utility, but instead of showing you what consumes CPU the most, it lists processes by their IO consumption. Inspired by iotop python script from Guillaume Chazarain, but rewritten to C by Vyacheslav Trushkin so it now runs without python at all.
129 + </longdescription>
130 + <upstream>
131 + <remote-id type="github">Tomas-M/iotop</remote-id>
132 + </upstream>
133 +</pkgmetadata>