summaryrefslogtreecommitdiff
path: root/network/dsniff/dsniff.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-18 09:19:17 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-18 09:19:17 +0700
commitdde28b4c342bae2dab4fbf5bd053146925a8ebbd (patch)
tree0ad50b7b3a688951f6013e7700ca47aca75156b2 /network/dsniff/dsniff.SlackBuild
parent2ae00a0e323c984d31c801d4af0869a2a4ca6f42 (diff)
downloadslackbuilds-dde28b4c342bae2dab4fbf5bd053146925a8ebbd.tar.gz
network/dsniff: Fix build on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/dsniff/dsniff.SlackBuild')
-rw-r--r--network/dsniff/dsniff.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/network/dsniff/dsniff.SlackBuild b/network/dsniff/dsniff.SlackBuild
index 764025181b..3b548e5b17 100644
--- a/network/dsniff/dsniff.SlackBuild
+++ b/network/dsniff/dsniff.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=dsniff
VERSION=${VERSION:-2.4b1}
SRCVER=${SRCVER:-2.4}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -68,18 +68,16 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# 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/patches/libnet11$LIBDIRSUFFIX.patch
-
-patch -p1 < $CWD/patches/arpspoof-r-switch.patch
-patch -p1 < $CWD/patches/rewrite-and-modernize-POP-decoder.patch
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+zcat $CWD/dsniff_2.4b1+debian-18.diff.gz | patch -p1
+for i in debian/patches/*.dpatch; do
+ patch -N < "$i"
+done
+sed -i 's|${CC-cc} -E|${CC-cc} -O2 -E|g' configure
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \