diff options
author | chopp <nix4me@gmail.com> | 2011-05-07 23:03:31 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-05-07 23:03:31 -0500 |
commit | 210dabd53a3a52b65c4519b315cb9c448b1e0c3b (patch) | |
tree | 7a2a1bafcd593aa08b74fb40b7ce252084fa42bf /network/iftop/iftop.SlackBuild | |
parent | f858be99f7d6d6ecaae1727cd4c92d689eda2567 (diff) |
network/iftop: Updated for version 0.17.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/iftop/iftop.SlackBuild')
-rw-r--r-- | network/iftop/iftop.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/network/iftop/iftop.SlackBuild b/network/iftop/iftop.SlackBuild index a2f48a185ee5c..5eeb5dfb5defc 100644 --- a/network/iftop/iftop.SlackBuild +++ b/network/iftop/iftop.SlackBuild @@ -5,16 +5,14 @@ # http://slackbuilds.org/template.SlackBuild PRGNAM=iftop -VERSION=${VERSION:-0.17pre3} +VERSION=${VERSION:-0.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -24,8 +22,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -set -e - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -40,12 +36,14 @@ else LIBDIRSUFFIX="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -56,10 +54,11 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --mandir=/usr/man + --mandir=/usr/man \ + --build=$ARCH-slackware-linux -make || exit -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/* |