summaryrefslogtreecommitdiff
path: root/network/dnstop/dnstop.SlackBuild
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 22:25:10 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:25:10 +0200
commitd11b5ffd117b05f5f626963dff7a4f276a3af741 (patch)
treebe3aa3fc90c56de5574837a32bb5b899d150e844 /network/dnstop/dnstop.SlackBuild
parent46a8806fdf8cd9d79dc209902e191c8073af3e90 (diff)
downloadslackbuilds-d11b5ffd117b05f5f626963dff7a4f276a3af741.tar.gz
network/dnstop: Updated for version 20080502
Diffstat (limited to 'network/dnstop/dnstop.SlackBuild')
-rw-r--r--network/dnstop/dnstop.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/network/dnstop/dnstop.SlackBuild b/network/dnstop/dnstop.SlackBuild
index 4172220e2c..810bd970a4 100644
--- a/network/dnstop/dnstop.SlackBuild
+++ b/network/dnstop/dnstop.SlackBuild
@@ -3,11 +3,8 @@
# Slackware build script for dnstop
# Written by Menno Duursma <druiloor@zonnet.nl>
-# Exit on most errors
-set -e
-
PRGNAM=dnstop
-VERSION=20070510
+VERSION=20080502
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -16,6 +13,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -e # Exit on most errors
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -29,16 +34,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Create destdirs
-mkdir -p $PKG/usr/bin
-mkdir -p $PKG/usr/man/man8
-
-# Set the destdir and enable PPP support
-mv Makefile Makefile.std
-cat Makefile.std \
- | sed -e s#/usr/local#$PKG/usr# \
- -e 's/DUSE_PPP=0/DUSE_PPP=1/' > Makefile
+# Create destination directories
+mkdir -p $PKG/usr/bin $PKG/usr/man/man8
+CFLAGS="$SLKCFLAGS -DUSE_PPP=1" \
+./configure \
+ --bindir=$PKG/usr/bin \
+ --mandir=$PKG/usr/man
make
make install