summaryrefslogtreecommitdiff
path: root/network/dnstop/dnstop.SlackBuild
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-13 00:36:13 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:36:13 +0200
commitee4727e4f695ed7c49626d740fff17d68abfea3a (patch)
treef35879bbb4322efab422ba7f852fbb889acf6ae0 /network/dnstop/dnstop.SlackBuild
parent99d411267fc5eddb246ce8e33fee8e63909b3f2e (diff)
downloadslackbuilds-ee4727e4f695ed7c49626d740fff17d68abfea3a.tar.gz
network/dnstop: Updated for version 20080502
Diffstat (limited to 'network/dnstop/dnstop.SlackBuild')
-rw-r--r--network/dnstop/dnstop.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/dnstop/dnstop.SlackBuild b/network/dnstop/dnstop.SlackBuild
index 77d8074b17..e5abfa0e4b 100644
--- a/network/dnstop/dnstop.SlackBuild
+++ b/network/dnstop/dnstop.SlackBuild
@@ -13,6 +13,7 @@ VERSION=20090128
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -20,10 +21,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e # Exit on most errors
@@ -67,4 +71,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}