aboutsummaryrefslogtreecommitdiff
path: root/network/dnstracer
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-11-04 00:25:06 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-03 12:18:35 -0600
commit82398f1a71e22945da7c969fa57e7cec6bc6ee33 (patch)
treef2f2ebf718ae6f3bba9c58ec64032c08954910b0 /network/dnstracer
parent3deebab4bfc372f260b6c0b4e90f6a5229ed212e (diff)
network/dnstracer: Updated for version 1.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/dnstracer')
-rw-r--r--network/dnstracer/dnstracer.SlackBuild29
-rw-r--r--network/dnstracer/dnstracer.info6
2 files changed, 14 insertions, 21 deletions
diff --git a/network/dnstracer/dnstracer.SlackBuild b/network/dnstracer/dnstracer.SlackBuild
index 8c11bcc4e76bb..1b7ec57db73c0 100644
--- a/network/dnstracer/dnstracer.SlackBuild
+++ b/network/dnstracer/dnstracer.SlackBuild
@@ -10,16 +10,14 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=dnstracer
-VERSION=${VERSION:-1.9}
+VERSION=${VERSION:-1.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -43,14 +41,14 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -58,27 +56,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man
+make CC="$(which gcc) $SLKCFLAGS"
-make
-make install DESTDIR=$PKG
+mkdir -p $PKG/usr/{bin,man,doc}
+mkdir -p $PKG/usr/man/man8
+install -m 0755 dnstracer $PKG/usr/bin
+install -m 0644 dnstracer.8 $PKG/usr/man/man8/
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 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/doc/MSVC.BAT
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/network/dnstracer/dnstracer.info b/network/dnstracer/dnstracer.info
index b62ed1e01b439..f0fe02b4c628a 100644
--- a/network/dnstracer/dnstracer.info
+++ b/network/dnstracer/dnstracer.info
@@ -1,8 +1,8 @@
PRGNAM="dnstracer"
-VERSION="1.9"
+VERSION="1.10"
HOMEPAGE="http://www.mavetju.org/unix/dnstracer.php"
-DOWNLOAD="http://www.mavetju.org/download/dnstracer-1.9.tar.gz"
-MD5SUM="7db73ce3070119c98049a617fe52ea84"
+DOWNLOAD="http://www.mavetju.org/download/dnstracer-1.10.tar.bz2"
+MD5SUM="1ce6960647637383466349b0aff2e10e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""