network/dnstop: Updated for version 20080502

This commit is contained in:
Menno E. Duursma 2010-05-11 22:25:10 +02:00 committed by Erik Hanson
parent 46a8806fdf
commit d11b5ffd11
2 changed files with 20 additions and 18 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="dnstop"
VERSION="20070510"
VERSION="20080502"
HOMEPAGE="http://dns.measurement-factory.com/tools/dnstop/"
DOWNLOAD="http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20070510.tar.gz"
MD5SUM="a68f764a10c7ad7bf16a19223df865af"
MAINTAINER="Menno Duursma"
DOWNLOAD="http://dns.measurement-factory.com/tools/dnstop/src/dnstop-20080502.tar.gz"
MD5SUM="67f24e8fe47a6b8387b863d19224f20c"
MAINTAINER="Menno E. Duursma"
EMAIL="druiloor@zonnet.nl"
APPROVED="BP{k}"
APPROVED="Erik Hanson"