summaryrefslogtreecommitdiff
path: root/manualPorts/iotop
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-03 14:05:09 +0200
committerErich Eckner <git@eckner.net>2021-04-03 14:05:09 +0200
commitb52eeb4059ee22da846a68dd0f40388e4ce5c13b (patch)
tree486ff65730c5502c104d78b0c143d0508ef281f7 /manualPorts/iotop
parente263b55ccad4329d3df20476d61452410d19c6e2 (diff)
downloadcrux-ports-b52eeb4059ee22da846a68dd0f40388e4ce5c13b.tar.xz
iotop new
Diffstat (limited to 'manualPorts/iotop')
-rw-r--r--manualPorts/iotop/.footprint28
-rw-r--r--manualPorts/iotop/.md5sum2
-rw-r--r--manualPorts/iotop/.signature6
-rw-r--r--manualPorts/iotop/0001-Make-setp.py-compatible-with-python3.patch30
-rw-r--r--manualPorts/iotop/Pkgfile25
5 files changed, 91 insertions, 0 deletions
diff --git a/manualPorts/iotop/.footprint b/manualPorts/iotop/.footprint
new file mode 100644
index 0000000..ddb6ee6
--- /dev/null
+++ b/manualPorts/iotop/.footprint
@@ -0,0 +1,28 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/python3.9/
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/iotop/
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__init__.py (EMPTY)
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/iotop/__pycache__/
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/__init__.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/data.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/genetlink.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/ioprio.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/netlink.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/ui.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/version.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/__pycache__/vmstat.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/data.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/genetlink.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/ioprio.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/netlink.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/ui.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/version.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/iotop/vmstat.py
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/iotop
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/iotop.8.gz
diff --git a/manualPorts/iotop/.md5sum b/manualPorts/iotop/.md5sum
new file mode 100644
index 0000000..1e60d17
--- /dev/null
+++ b/manualPorts/iotop/.md5sum
@@ -0,0 +1,2 @@
+190e68a42a02fcb5d09a5cd3ade9aa32 0001-Make-setp.py-compatible-with-python3.patch
+5ef9456b26d7694abf3101a72e1e0d1d iotop-0.6.tar.bz2
diff --git a/manualPorts/iotop/.signature b/manualPorts/iotop/.signature
new file mode 100644
index 0000000..8e89872
--- /dev/null
+++ b/manualPorts/iotop/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/deepthought.pub
+RWQxCptPusLGGoy0qk7ahlG6wSIzh3ve/KYz7b2T4GQ9LuTN1P8JC0i+PDksnGlzzQGvQHhXLYhkz/IqB8h+p6USjSjqes8upAA=
+SHA256 (Pkgfile) = e6651ef0d72b77797d60c166eca3190b7b10118208eae814a5067b02f212d389
+SHA256 (.footprint) = 47fae6b0fabaa4b3ff0c1da63359f8be63dbe21eeac32133f71ef816775ee6a7
+SHA256 (iotop-0.6.tar.bz2) = 3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
+SHA256 (0001-Make-setp.py-compatible-with-python3.patch) = 1f1eb0cfde45911de9429771d90c9a282f5fed23455a9678a8e44e205f4103a3
diff --git a/manualPorts/iotop/0001-Make-setp.py-compatible-with-python3.patch b/manualPorts/iotop/0001-Make-setp.py-compatible-with-python3.patch
new file mode 100644
index 0000000..cd103a2
--- /dev/null
+++ b/manualPorts/iotop/0001-Make-setp.py-compatible-with-python3.patch
@@ -0,0 +1,30 @@
+From 98a5985e52e7041eb96c80dd95fd5c70634f5ee7 Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Tue, 18 Jun 2013 08:19:28 +0200
+Subject: [PATCH 1/4] Make setp.py compatible with python3
+
+Dictionaries in python 3 do not contain the itervalues() method anymore.
+The values() method should be used and can also safely applied for
+python 2.
+
+Signed-off-by: Justin Lecher <jlec@gentoo.org>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 7150102..9de6068 100755
+--- a/setup.py
++++ b/setup.py
+@@ -7,7 +7,7 @@ from iotop.version import VERSION
+ # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
+ # while still honoring the choice of installing into local/ or not.
+ if hasattr(distutils_install, 'INSTALL_SCHEMES'):
+- for d in distutils_install.INSTALL_SCHEMES.itervalues():
++ for d in distutils_install.INSTALL_SCHEMES.values():
+ if d.get('scripts', '').endswith('/bin'):
+ d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
+
+--
+2.24.1
+
diff --git a/manualPorts/iotop/Pkgfile b/manualPorts/iotop/Pkgfile
new file mode 100644
index 0000000..ef27c60
--- /dev/null
+++ b/manualPorts/iotop/Pkgfile
@@ -0,0 +1,25 @@
+# Description: Top like program to display I/O load.
+# URL: http://guichaz.free.fr/iotop/
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Contributor: Lin SiFuh, #crux at freenode dot net
+# Depends on: python3
+
+name=iotop
+version=0.6
+release=1
+source=(http://guichaz.free.fr/${name}/files/${name}-${version}.tar.bz2 \
+ 0001-Make-setp.py-compatible-with-python3.patch)
+
+build() {
+
+ cd "${name}"-"${version}"
+
+ chmod ag+r iotop.8
+
+ patch -p1 -i "${SRC}"/0001-Make-setp.py-compatible-with-python3.patch
+
+ /usr/bin/python3 setup.py install --root="${PKG}" --prefix=/usr
+
+ rm -r "${PKG}"/usr/lib/python*/site-packages/iotop-*.egg-info
+
+}