contrib/dsniff/Pkgfile

43 lines
1.8 KiB
Plaintext
Raw Normal View History

2008-07-13 01:14:23 +02:00
# Description: tools for network auditing and penetration testing
# URL: http://monkey.org/~dugsong/dsniff
# Maintainer: Thomas Penteker, tek at serverop dot de
2011-02-18 21:55:56 +01:00
# Depends on: libnids
2008-07-13 01:14:23 +02:00
name=dsniff
version=2.4b1
2020-01-20 15:43:33 +01:00
release=2
2008-07-13 01:14:23 +02:00
source=(http://monkey.org/~dugsong/dsniff/beta/$name-$version.tar.gz
2020-01-20 15:43:33 +01:00
http://ftp.de.debian.org/debian/pool/main/d/$name/${name}_2.4b1+debian-29.debian.tar.xz
2008-07-13 01:14:23 +02:00
2.3-makefile.patch dsniff-2.4_beta1-debian-r1.patch
2020-01-20 15:43:33 +01:00
dsniff-httppostfix.patch dsniff-rpc.patch
dsniff-macof-size-calculation.patch
dsniff-rpc.patch dsniff-macof-size-calculation.patch)
2008-07-13 01:14:23 +02:00
build() {
cd $name-2.4
2020-01-20 15:43:33 +01:00
## https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dsniff
while IFS='' read -r patch || [[ -n "${patch}" ]]; do
echo "** Applying patch ${patch}"
patch -Np1 < "../debian/patches/${patch}"
done < ../debian/patches/series
patch -i ../dsniff-macof-size-calculation.patch
2008-07-13 01:14:23 +02:00
patch -i ../dsniff-httppostfix.patch
2020-01-20 15:43:33 +01:00
patch -i ../dsniff-rpc.patch
2008-07-13 01:14:23 +02:00
sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' sshow.c
2020-01-20 15:43:33 +01:00
export LDFLAGS="`pkg-config --libs gthread-2.0` -lresolv"
export CFLAGS="`pkg-config --cflags gthread-2.0`"
autoreconf -fiv
./configure --prefix=/usr --with-libtirpc
2010-06-04 22:52:47 +02:00
#echo 'LDFLAGS += -lresolv' >> Makefile
2008-07-13 01:14:23 +02:00
make
install -d -m 755 $PKG/usr/sbin
for prog in arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
2020-01-20 15:43:33 +01:00
sshmitm sshow tcpkill tcpnice urlsnarf webmitm; do \
2008-07-13 01:14:23 +02:00
install -m 755 $prog $PKG/usr/sbin/; done
2020-01-20 15:43:33 +01:00
install -d -m 755 $PKG/usr/share/man/man8
for man in *.8; do install -D -m 644 $man $PKG/usr/share/man/man8; done
2008-07-13 01:14:23 +02:00
install -d -m 755 $PKG/usr/share/dsniff
for shares in dnsspoof.hosts dsniff.magic dsniff.services; do \
install -m 644 $shares $PKG/usr/share/dsniff; done
}