network/dsniff: Updated for version 2.4b1

This commit is contained in:
Marco Bonetti 2010-05-13 00:36:18 +02:00 committed by Michiel van Wessem
parent 4d4863ae50
commit ffadad9a9f
3 changed files with 6404 additions and 5 deletions

View file

@ -27,7 +27,7 @@ PRGNAM=dsniff
VERSION=${VERSION:-2.4b1}
SRCVER=${SRCVER:-2.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -35,14 +35,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="LICENSE README"
DOCS="CHANGES LICENSE README TODO"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -63,12 +66,13 @@ find . \
# This patch adds support for libnet 1.1.x, it's heavily based on Gentoo ebuild
# which, in turn, is heavily based on Debian patch set. And I added a couple
# of bits myself in the mix too... - sid77
patch -p1 < $CWD/libnet11.patch
patch -p1 < $CWD/libnet11$LIBDIRSUFFIX.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
@ -97,4 +101,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -3,6 +3,8 @@ VERSION="2.4b1"
HOMEPAGE="http://monkey.org/~dugsong/dsniff/"
DOWNLOAD="http://monkey.org/~dugsong/dsniff/beta/dsniff-2.4b1.tar.gz"
MD5SUM="2f761fa3475682a7512b0b43568ee7d6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Marco Bonetti"
EMAIL="sid77@slackware.it"
APPROVED="rworkman"
APPROVED="michiel"

File diff suppressed because it is too large Load diff