diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-05-13 00:36:18 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:36:18 +0200 |
commit | ffadad9a9fce671d53007519cc7f5c0b346998e5 (patch) | |
tree | 6c75e1594afb7eea6eeba9a24b4da4d3aa434e71 /network/dsniff/dsniff.SlackBuild | |
parent | 4d4863ae506357c850b9be5a1645f715c8bcf5e9 (diff) | |
download | slackbuilds-ffadad9a9fce671d53007519cc7f5c0b346998e5.tar.gz |
network/dsniff: Updated for version 2.4b1
Diffstat (limited to 'network/dsniff/dsniff.SlackBuild')
-rw-r--r-- | network/dsniff/dsniff.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/network/dsniff/dsniff.SlackBuild b/network/dsniff/dsniff.SlackBuild index 3a8363ed5d..33aeeb1fc2 100644 --- a/network/dsniff/dsniff.SlackBuild +++ b/network/dsniff/dsniff.SlackBuild @@ -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} |