summaryrefslogtreecommitdiffstats
path: root/network/dnstop/dnstop.SlackBuild
diff options
context:
space:
mode:
author Menno Duursma <druiloor@zonnet.nl>2010-05-12 17:43:10 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-12 17:43:10 +0200
commit84202d6a21fdad97480e0b097eb7528d556e46ce (patch)
treefaf895441309475cd6e81cde35208b9f568f71d0 /network/dnstop/dnstop.SlackBuild
parentb8acdcfadf3c3292de14e656f069bb7f2232aba0 (diff)
downloadslackbuilds-84202d6a21fdad97480e0b097eb7528d556e46ce.tar.gz
slackbuilds-84202d6a21fdad97480e0b097eb7528d556e46ce.tar.xz
network/dnstop: Updated for version 20080502
Diffstat (limited to 'network/dnstop/dnstop.SlackBuild')
-rw-r--r--network/dnstop/dnstop.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/network/dnstop/dnstop.SlackBuild b/network/dnstop/dnstop.SlackBuild
index 810bd970a4..77d8074b17 100644
--- a/network/dnstop/dnstop.SlackBuild
+++ b/network/dnstop/dnstop.SlackBuild
@@ -1,10 +1,15 @@
#!/bin/sh
# Slackware build script for dnstop
+
# Written by Menno Duursma <druiloor@zonnet.nl>
+# This program is free software. It comes without any warranty.
+# Granted WTFPL, Version 2, as published by Sam Hocevar. See
+# http://sam.zoy.org/wtfpl/COPYING for more details.
+
PRGNAM=dnstop
-VERSION=20080502
+VERSION=20090128
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,6 +22,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e # Exit on most errors
@@ -44,10 +51,8 @@ CFLAGS="$SLKCFLAGS -DUSE_PPP=1" \
make
make install
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;