blob: 627ea3a184e18303e80eb9e854fb6888a8646f17 (
plain)
1 # Description: tools for network auditing and penetration testing
2 # URL: http://monkey.org/~dugsong/dsniff
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Depends on: libnids
5
6 name=dsniff
7 version=2.4b1
8 release=2
9 source=(http://monkey.org/~dugsong/dsniff/beta/$name-$version.tar.gz
10 http://ftp.de.debian.org/debian/pool/main/d/$name/${name}_2.4b1+debian-29.debian.tar.xz
11 2.3-makefile.patch dsniff-2.4_beta1-debian-r1.patch
12 dsniff-httppostfix.patch dsniff-rpc.patch
13 dsniff-macof-size-calculation.patch
14 dsniff-rpc.patch dsniff-macof-size-calculation.patch)
15
16 build() {
17 cd $name-2.4
18 ## https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dsniff
19 while IFS='' read -r patch || [[ -n "${patch}" ]]; do
20 echo "** Applying patch ${patch}"
21 patch -Np1 < "../debian/patches/${patch}"
22 done < ../debian/patches/series
23 patch -i ../dsniff-macof-size-calculation.patch
24 patch -i ../dsniff-httppostfix.patch
25 patch -i ../dsniff-rpc.patch
26 sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' sshow.c
27 export LDFLAGS="`pkg-config --libs gthread-2.0` -lresolv"
28 export CFLAGS="`pkg-config --cflags gthread-2.0`"
29 autoreconf -fiv
30 ./configure --prefix=/usr --with-libtirpc
31 #echo 'LDFLAGS += -lresolv' >> Makefile
32 make
33 install -d -m 755 $PKG/usr/sbin
34 for prog in arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
35 sshmitm sshow tcpkill tcpnice urlsnarf webmitm; do \
36 install -m 755 $prog $PKG/usr/sbin/; done
37 install -d -m 755 $PKG/usr/share/man/man8
38 for man in *.8; do install -D -m 644 $man $PKG/usr/share/man/man8; done
39 install -d -m 755 $PKG/usr/share/dsniff
40 for shares in dnsspoof.hosts dsniff.magic dsniff.services; do \
41 install -m 644 $shares $PKG/usr/share/dsniff; done
42 }
|