aboutsummaryrefslogtreecommitdiff
path: root/network/nethogs/nethogs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nethogs/nethogs.SlackBuild')
-rw-r--r--network/nethogs/nethogs.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/network/nethogs/nethogs.SlackBuild b/network/nethogs/nethogs.SlackBuild
index e1985eb67306c..b4c7c3cc5d4fe 100644
--- a/network/nethogs/nethogs.SlackBuild
+++ b/network/nethogs/nethogs.SlackBuild
@@ -6,19 +6,19 @@
# Modified by Erik Hanson <erik@slackbuilds.org>
# sed in SLKCFLAGS and removed template left-overs.
-# Exit on most errors
-set -e
-
PRGNAM=nethogs
-VERSION=0.6.0
+VERSION=0.7.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -52,13 +52,14 @@ mkdir -p $PKG/usr/man/man8
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-make
-make install DESTDIR=$PKG
+make
+# was working with 0.6.0 version
+# make install DESTDIR=$PKG
-find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : \
- | xargs strip --strip-unneeded 2> /dev/null
+install -s -m 755 nethogs $PKG/usr/bin/
+install -m 644 nethogs.8 $PKG/usr/man/man8/
-gzip -9 $PKG/usr/man/man?/*.?
+gzip -9 $PKG/usr/man/man8/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION/