aboutsummaryrefslogtreecommitdiff
path: root/desktop/wmmon/wmmon.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-14 00:44:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:06:58 +0700
commite40d57b685cfd6b9b9a18df5c64be3e02986d767 (patch)
tree428b5cb66ddef96082da050bc5711b3c4d04e5fc /desktop/wmmon/wmmon.SlackBuild
parent73bde3008b9c3c22cb8583115c778fb2df9d3776 (diff)
desktop/wmmon: Support NVME devices.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/wmmon/wmmon.SlackBuild')
-rw-r--r--desktop/wmmon/wmmon.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/desktop/wmmon/wmmon.SlackBuild b/desktop/wmmon/wmmon.SlackBuild
index bc860934b3..b02b781bab 100644
--- a/desktop/wmmon/wmmon.SlackBuild
+++ b/desktop/wmmon/wmmon.SlackBuild
@@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230214 bkw: BUILD=2
+# - add patch to detect I/O on NVME devices (in -i mode).
+
# 20191211 bkw: Update for v1.4. Script can no longer build the old version.
# - add libdockapp dep
# - get rid of patches (no longer needed)
@@ -25,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wmmon
VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -66,6 +69,11 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# I/O monitoring works by checking /proc/diskstats. Each line is
+# a device name, and nvme devices weren't invented yet when the
+# code was originally written...
+patch -p1 < $CWD/nvme.diff
+
# Man page taken from Debian, slightly corrected, and -c option added.
cat $CWD/$PRGNAM.1 > $PRGNAM.1