summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2010-05-12 17:43:55 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:43:55 +0200
commitaf0b321aa9c080bf373f6b46fccad417d506ae54 (patch)
tree1293dc77bbf684de21b3f168ca9707614455e905 /network
parent0730e3738db95c77f2d6c89eb6e60cf7130b27db (diff)
downloadslackbuilds-af0b321aa9c080bf373f6b46fccad417d506ae54.tar.gz
network/nethogs: Updated for version 0.7.0
Diffstat (limited to 'network')
-rw-r--r--network/nethogs/README2
-rw-r--r--network/nethogs/nethogs.SlackBuild19
-rw-r--r--network/nethogs/nethogs.info9
3 files changed, 15 insertions, 15 deletions
diff --git a/network/nethogs/README b/network/nethogs/README
index 9abc86ad8f..bcd6735dbc 100644
--- a/network/nethogs/README
+++ b/network/nethogs/README
@@ -5,5 +5,3 @@ module to be loaded. If there's suddenly a lot of network traffic,
you can fire up NetHogs and immediately see which PID is causing
this. This makes it easy to indentify programs that have gone wild
and are suddenly taking up your bandwidth.
-
-Depends on libcap, available at SlackBuilds.org
diff --git a/network/nethogs/nethogs.SlackBuild b/network/nethogs/nethogs.SlackBuild
index e1985eb673..b4c7c3cc5d 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/
diff --git a/network/nethogs/nethogs.info b/network/nethogs/nethogs.info
index bab5070b08..19a72d103b 100644
--- a/network/nethogs/nethogs.info
+++ b/network/nethogs/nethogs.info
@@ -1,8 +1,9 @@
PRGNAM="nethogs"
-VERSION="0.6.0"
+VERSION="0.7.0"
HOMEPAGE="http://nethogs.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/nethogs/nethogs-0.6.0.tar.gz"
-MD5SUM="d7fc44acd19cb55ee32137540f6a6f0e"
+DOWNLOAD="http://downloads.sourceforge.net/sourceforge/nethogs/nethogs-0.7.0.tar.gz"
+MD5SUM="e5f04071571e469e14c89f637cfa34a2"
MAINTAINER="Michales Michaloudes"
EMAIL="korgie@gmail.com"
-APPROVED="Erik Hanson"
+APPROVED="dsomero"
+