summaryrefslogtreecommitdiff
path: root/dsniff/Pkgfile
blob: cbf75aca65036b9ddb1ab7156cfcae65264e0546 (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:  libpcap libnids
    5 
    6 name=dsniff
    7 version=2.4b1
    8 release=1
    9 source=(http://monkey.org/~dugsong/dsniff/beta/$name-$version.tar.gz
   10         2.3-makefile.patch dsniff-2.4_beta1-debian-r1.patch
   11         dsniff-httppostfix.patch)
   12 
   13 build() {
   14     cd  $name-2.4
   15     patch -i ../2.3-makefile.patch
   16     patch -i ../dsniff-2.4_beta1-debian-r1.patch
   17     patch -i ../dsniff-httppostfix.patch
   18     sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' sshow.c
   19     export LDFLAGS="`pkg-config --libs gthread-2.0`" 
   20     export CFLAGS="`pkg-config --cflags gthread-2.0`" 
   21     ./configure --prefix=/usr
   22     make
   23     install -d -m 755 $PKG/usr/sbin
   24     for prog in arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
   25     sshmitm sshow tcpkill tcpnice  urlsnarf webmitm webspy; do \
   26       install -m 755 $prog $PKG/usr/sbin/; done
   27     install -d -m 755 $PKG/usr/man/man8
   28     for man in *.8; do install -D -m 644 $man $PKG/usr/man/man8; done
   29     install -d -m 755 $PKG/usr/share/dsniff
   30     for shares in dnsspoof.hosts dsniff.magic dsniff.services; do \
   31       install -m 644 $shares $PKG/usr/share/dsniff; done
   32 
   33 }

Generated by cgit