diff options
author | Michales Michaloudes <korgie@gmail.com> | 2010-05-12 17:43:55 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:43:55 +0200 |
commit | af0b321aa9c080bf373f6b46fccad417d506ae54 (patch) | |
tree | 1293dc77bbf684de21b3f168ca9707614455e905 /network/nethogs/nethogs.SlackBuild | |
parent | 0730e3738db95c77f2d6c89eb6e60cf7130b27db (diff) | |
download | slackbuilds-af0b321aa9c080bf373f6b46fccad417d506ae54.tar.gz |
network/nethogs: Updated for version 0.7.0
Diffstat (limited to 'network/nethogs/nethogs.SlackBuild')
-rw-r--r-- | network/nethogs/nethogs.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
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/ |