diff options
Diffstat (limited to 'network/dnstop/dnstop.SlackBuild')
-rw-r--r-- | network/dnstop/dnstop.SlackBuild | 28 |
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 |