summaryrefslogtreecommitdiffstats
path: root/desktop/wmsupermon
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmsupermon')
-rw-r--r--desktop/wmsupermon/README26
-rw-r--r--desktop/wmsupermon/example-wmsupermonrc-cputemponly8
-rw-r--r--desktop/wmsupermon/exampleconfig.diff18
-rw-r--r--desktop/wmsupermon/slack-desc19
-rw-r--r--desktop/wmsupermon/wmsupermon.191
-rw-r--r--desktop/wmsupermon/wmsupermon.SlackBuild89
-rw-r--r--desktop/wmsupermon/wmsupermon.info10
-rw-r--r--desktop/wmsupermon/wmsupermon.rst80
8 files changed, 341 insertions, 0 deletions
diff --git a/desktop/wmsupermon/README b/desktop/wmsupermon/README
new file mode 100644
index 0000000000..88ea9aa704
--- /dev/null
+++ b/desktop/wmsupermon/README
@@ -0,0 +1,26 @@
+wmsupermon (universal monitoring dockapp for WindowMaker)
+
+wmsupermon is a highly configurable dockapp that can monitor almost any
+system statistic you can think of.
+
+Examples:
+
+ 1. CPU usage
+ 2. disk i/o
+ 3. memory
+ 4. swap
+ 5. filesystems - space utilization
+ 6. network traffic
+ 7. wireless link quality
+ 8. CPU frequency
+ 9. CPU temperature, fan speed, voltages (no lm_sensors required!)
+10. battery status (with actual - not guessed - discharge rate!)
+11. traffic from your router
+12. anything else :)
+
+The dockapp is configured via ~/.wmsupermonrc file, which specifies what
+to monitor and how to present the results.
+
+*** NOTE: Installing this package does NOT create a config file.
+You will have to create one before the dockapp will start. See README
+and example-wmsupermonrc in /usr/doc/wmsupermon-1.2.2 for details.
diff --git a/desktop/wmsupermon/example-wmsupermonrc-cputemponly b/desktop/wmsupermon/example-wmsupermonrc-cputemponly
new file mode 100644
index 0000000000..dd848dbc5a
--- /dev/null
+++ b/desktop/wmsupermon/example-wmsupermonrc-cputemponly
@@ -0,0 +1,8 @@
+[tmp]
+Source = /sys/class/hwmon/hwmon0/temp1_input
+Scale = 1000
+Range = 37 .. 70
+
+[[wmsupermon]]
+tmp = number -label
+tmp = graph
diff --git a/desktop/wmsupermon/exampleconfig.diff b/desktop/wmsupermon/exampleconfig.diff
new file mode 100644
index 0000000000..6df959d5ad
--- /dev/null
+++ b/desktop/wmsupermon/exampleconfig.diff
@@ -0,0 +1,18 @@
+diff -Naur dockapps-c2fa6a3/example-wmsupermonrc dockapps-c2fa6a3.patched/example-wmsupermonrc
+--- dockapps-c2fa6a3/example-wmsupermonrc 2016-08-03 20:18:50.000000000 -0400
++++ dockapps-c2fa6a3.patched/example-wmsupermonrc 2020-06-10 02:10:51.872534759 -0400
+@@ -30,11 +30,11 @@
+ Source = /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
+ Scale = 1000
+
+-# temperature from the second sensor (cpu temperature on my motherboard)
++# temperature from the first sensor (cpu temperature on my motherboard)
+ [Tem]
+-Source = /sys/bus/i2c/drivers/w83627hf/9191-0290/temp2_input
++Source = /sys/class/hwmon/hwmon0/temp1_input
+ Scale = 1000
+-Range = 37 .. 55
++Range = 37 .. 75
+
+ # second fan speed (cpu fan on my motherboard)
+ [fan]
diff --git a/desktop/wmsupermon/slack-desc b/desktop/wmsupermon/slack-desc
new file mode 100644
index 0000000000..a0d85f0b9c
--- /dev/null
+++ b/desktop/wmsupermon/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+wmsupermon: wmsupermon (universal monitoring dockapp for WindowMaker)
+wmsupermon:
+wmsupermon: wmsupermon is a highly configurable dockapp that can monitor almost
+wmsupermon: any system statistic you can think of.
+wmsupermon:
+wmsupermon:
+wmsupermon:
+wmsupermon:
+wmsupermon:
+wmsupermon:
+wmsupermon:
diff --git a/desktop/wmsupermon/wmsupermon.1 b/desktop/wmsupermon/wmsupermon.1
new file mode 100644
index 0000000000..8592020cef
--- /dev/null
+++ b/desktop/wmsupermon/wmsupermon.1
@@ -0,0 +1,91 @@
+.\" Man page generated from reStructuredText.
+.
+.
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+.TH "WMSUPERMON" 1 "2023-01-29" "1.2.2" "SlackBuilds.org"
+.SH NAME
+wmsupermon \- universal monitoring dockapp for WindowMaker
+.\" RST source for wmsupermon(1) man page. Convert with:
+.
+.\" rst2man.py wmsupermon.rst > wmsupermon.1
+.
+.SH SYNOPSIS
+.sp
+wmsupermon [\fB\-d|display\fP \fIdisplay\fP] [\fB\-c|\-\-config\fP \fIfile\fP]
+.sp
+wmsupermon [\fB\-h|\-\-help\fP]
+.sp
+wmsupermon [\fB\-v|\-\-version\fP]
+.SH DESCRIPTION
+.sp
+\fBwmsupermon\fP is a WindowMaker dockapp that can be used to monitor
+CPU usage, frequency, and temperature; disk I/O; memory, swap, and
+filesystem usage; network traffic (local or to/from your router);
+wireless link quality; battery status; and anything else you can think
+of that has a numeric value.
+.sp
+The dockapp is configured via the config file (\fI~/.wmsupermonrc\fP
+by default), which specifies what to monitor and how to present the
+results.
+.sp
+See /usr/doc/wmsupermon\-1.2.2/README for the syntax of the config
+file. In the same directory are some example configs.
+.SH OPTIONS
+.INDENT 0.0
+.TP
+.B \-d, \-\-display \fIdisplay\fP
+Display to use (default: \fIDISPLAY\fP in environment).
+.TP
+.B \-c, \-\-config \fIfile\fP
+Path to config file (default: \fI~/.wmsupermonrc\fP). Useful if you want
+to run multiple instances that show different data.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-h\fP,\fB \-\-help
+Shows help text and exits.
+.TP
+.B \-v\fP,\fB \-\-version
+Shows program version and exits.
+.UNINDENT
+.SH COPYRIGHT
+.sp
+See the file /usr/doc/wmsupermon\-1.2.2/COPYING for license information.
+.SH AUTHORS
+.sp
+wmsupermon was written by Sergei Golubchik.
+.sp
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.
+.SH SEE ALSO
+.sp
+\fBWindowMaker\fP(1), \fBwmmon\fP(1), \fBwmnet\fP(1)
+.sp
+\fI\%http://dockapps.net\fP, for a large collection of other dockapps.
+.\" Generated by docutils manpage writer.
+.
diff --git a/desktop/wmsupermon/wmsupermon.SlackBuild b/desktop/wmsupermon/wmsupermon.SlackBuild
new file mode 100644
index 0000000000..318f3926f7
--- /dev/null
+++ b/desktop/wmsupermon/wmsupermon.SlackBuild
@@ -0,0 +1,89 @@
+#!/bin/bash
+
+# Slackware build script for wmsupermon
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=wmsupermon
+VERSION=${VERSION:-1.2.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+# top-level dir doesn't match tarball filename, so:
+mkdir -p $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd */
+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 {} \+
+
+# adjust the sensor path in the example config file.
+patch -p1 < $CWD/exampleconfig.diff
+
+# fix the config filename in the README, this caused me some grief.
+sed -i 's,~/\.wmsupermon,&rc,' README
+
+make FLAGS="$SLKCFLAGS"
+mkdir -p $PKG/usr/bin
+install -s -m0755 -oroot -groot $PRGNAM $PKG/usr/bin
+
+# 20230129 bkw: wrote a man page. seemed like there should be one.
+mkdir -p $PKG/usr/man/man1
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a example-wmsupermonrc COPYING ChangeLog README TODO $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+# include a simpler example config file, which I actually use.
+install -oroot -groot -m0644 $CWD/example-wmsupermonrc-cputemponly $PKGDOC
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/wmsupermon/wmsupermon.info b/desktop/wmsupermon/wmsupermon.info
new file mode 100644
index 0000000000..38190804e5
--- /dev/null
+++ b/desktop/wmsupermon/wmsupermon.info
@@ -0,0 +1,10 @@
+PRGNAM="wmsupermon"
+VERSION="1.2.2"
+HOMEPAGE="https://www.dockapps.net/wmsupermon"
+DOWNLOAD="https://www.dockapps.net/download/wmsupermon-1.2.2.tar.gz"
+MD5SUM="b0cd98755ca35b9c62dae799a9a465ff"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/desktop/wmsupermon/wmsupermon.rst b/desktop/wmsupermon/wmsupermon.rst
new file mode 100644
index 0000000000..daaba76bb5
--- /dev/null
+++ b/desktop/wmsupermon/wmsupermon.rst
@@ -0,0 +1,80 @@
+.. RST source for wmsupermon(1) man page. Convert with:
+.. rst2man.py wmsupermon.rst > wmsupermon.1
+
+.. |version| replace:: 1.2.2
+.. |date| date::
+
+==========
+wmsupermon
+==========
+
+--------------------------------------------
+universal monitoring dockapp for WindowMaker
+--------------------------------------------
+
+:Manual section: 1
+:Manual group: SlackBuilds.org
+:Date: |date|
+:Version: |version|
+
+SYNOPSIS
+========
+
+wmsupermon [**-d|display** *display*] [**-c|--config** *file*]
+
+wmsupermon [**-h|--help**]
+
+wmsupermon [**-v|--version**]
+
+DESCRIPTION
+===========
+
+**wmsupermon** is a WindowMaker dockapp that can be used to monitor
+CPU usage, frequency, and temperature; disk I/O; memory, swap, and
+filesystem usage; network traffic (local or to/from your router);
+wireless link quality; battery status; and anything else you can think
+of that has a numeric value.
+
+The dockapp is configured via the config file (*~/.wmsupermonrc*
+by default), which specifies what to monitor and how to present the
+results.
+
+See /usr/doc/wmsupermon-|version|/README for the syntax of the config
+file. In the same directory are some example configs.
+
+OPTIONS
+=======
+
+-d, --display *display*
+ Display to use (default: *DISPLAY* in environment).
+
+-c, --config *file*
+ Path to config file (default: *~/.wmsupermonrc*). Useful if you want
+ to run multiple instances that show different data.
+
+-h, --help
+ Shows help text and exits.
+
+-v, --version
+ Shows program version and exits.
+
+
+COPYRIGHT
+=========
+
+See the file /usr/doc/wmsupermon-|version|/COPYING for license information.
+
+AUTHORS
+=======
+
+wmsupermon was written by Sergei Golubchik.
+
+This man page written for the SlackBuilds.org project
+by B. Watson, and is licensed under the WTFPL.
+
+SEE ALSO
+========
+
+**WindowMaker**\(1), **wmmon**\(1), **wmnet**\(1)
+
+http://dockapps.net, for a large collection of other dockapps.