PKGBUILDs/community/dsniff/PKGBUILD
2009-10-09 21:15:33 -05:00

32 lines
1 KiB
Bash

# $Id: PKGBUILD 3084 2009-09-26 21:22:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: ViNS <gladiator@fastwebnet.it>
pkgname=dsniff
pkgver=2.4b1
pkgrel=14
pkgdesc="Collection of tools for network auditing and penetration testing."
url="http://www.monkey.org/~dugsong/dsniff/"
arch=(i686 x86_64)
license=('GPL')
depends=('libpcap' 'openssl' 'db' 'libxmu' 'glib2')
makedepends=('libnet' 'libnids')
source=(http://www.monkey.org/~dugsong/dsniff/beta/$pkgname-$pkgver.tar.gz \
http://ftp.de.debian.org/debian/pool/main/d/dsniff/dsniff_2.4b1+debian-18.diff.gz)
md5sums=('2f761fa3475682a7512b0b43568ee7d6'
'fbc9f62f9ab2f98f24f53ad497c1ce5d')
build() {
cd $startdir/src/dsniff-2.4
patch -N < ../dsniff_2.4b1+debian-18.diff || return 1
for i in *.dpatch; do
patch -N < "$i" || return 1
done
LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install || return 1
mkdir -p $pkgdir/usr/share
mv $pkgdir/usr/man $pkgdir/usr/share/
}