diff options
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 a2f48a185e..5eeb5dfb5d 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?/* |