diff options
Diffstat (limited to 'network/dnstop/dnstop.SlackBuild')
-rw-r--r-- | network/dnstop/dnstop.SlackBuild | 15 |
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 {} \; |