summaryrefslogtreecommitdiffstats
path: root/network/wmnd
diff options
context:
space:
mode:
Diffstat (limited to 'network/wmnd')
-rw-r--r--network/wmnd/README8
-rw-r--r--network/wmnd/wmnd.SlackBuild32
-rw-r--r--network/wmnd/wmnd.info10
3 files changed, 29 insertions, 21 deletions
diff --git a/network/wmnd/README b/network/wmnd/README
index a346f7e3e1..479b9edccc 100644
--- a/network/wmnd/README
+++ b/network/wmnd/README
@@ -1,3 +1,5 @@
+wmnd (WindowMaker Network Devices DockApp)
+
WMND is a dockapp for monitoring network interfaces under WindowMaker
and other compatible window managers. WMND currently works on Linux,
FreeBSD, NetBSD, Solaris, OpenSolaris, Darwin and IRIX.
@@ -8,6 +10,6 @@ display modes and can also monitor remote interfaces through SNMP.
An optional dep is "Trend" (not on SBo) which can be used to zoom in on
the bars inside the dockapp.
-Note: This dockapp has an automatically generated RC file in
-~/.wmnd FIXME You can see an example of how to customize it in
-/usr/doc/wmnd-0.4.17/examples/wmndrc
+Note: This dockapp uses a config file "~/.wmndrc". If it's not found,
+an empty one is created. You can see an example of how to customize it
+in: /usr/doc/wmnd-0.4.18/examples/wmndrc
diff --git a/network/wmnd/wmnd.SlackBuild b/network/wmnd/wmnd.SlackBuild
index a996f95b74..3f5fa43554 100644
--- a/network/wmnd/wmnd.SlackBuild
+++ b/network/wmnd/wmnd.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for wmnd
#
@@ -25,8 +25,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Now maintained by B. Watson <yalhcru@gmail.com>
+# Now maintained by B. Watson <urchlay@slackware.uk>
+# 20210926 bkw: update for v0.4.18.
# 20160816 bkw:
# - take over maintenance
# - BUILD=2
@@ -36,10 +37,13 @@
# - don't install INSTALL in docdir
# - fix path to example config in man page
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=wmnd
-VERSION=${VERSION:-0.4.17}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.4.18}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -49,7 +53,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
@@ -77,14 +85,12 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
sed -i \
- "s,/usr/share/doc/$PRGNAM/,/usr/doc/$PRGNAM-$VERSION/${PRGNAM}rc," \
+ -e "s,/usr/share/doc/$PRGNAM/,/usr/doc/$PRGNAM-$VERSION/${PRGNAM}rc," \
+ -e "s,it's outer,its outer," \
doc/$PRGNAM.1
CFLAGS="$SLKCFLAGS" \
@@ -104,7 +110,7 @@ make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog* COPYING examples/${PRGNAM}rc NEWS README THANKS TODO \
+cp -a ChangeLog* examples/${PRGNAM}rc *.rst \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -112,4 +118,4 @@ 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:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/wmnd/wmnd.info b/network/wmnd/wmnd.info
index ab516c2634..6e87b4aade 100644
--- a/network/wmnd/wmnd.info
+++ b/network/wmnd/wmnd.info
@@ -1,10 +1,10 @@
PRGNAM="wmnd"
-VERSION="0.4.17"
-HOMEPAGE="http://www.thregr.org/~wavexx/software/wmnd/"
-DOWNLOAD="http://www.thregr.org/~wavexx/software/wmnd/releases/wmnd-0.4.17.tar.gz"
-MD5SUM="dbf6d6c42ab3e036388d261d2e7bea16"
+VERSION="0.4.18"
+HOMEPAGE="https://www.thregr.org/~wavexx/software/wmnd/"
+DOWNLOAD="https://www.thregr.org/~wavexx/software/wmnd/releases/wmnd-0.4.18.tar.gz"
+MD5SUM="729d0208a7acc5ff185735f51020eefe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"