summaryrefslogtreecommitdiff
path: root/community/dsniff/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dsniff/PKGBUILD')
-rw-r--r--community/dsniff/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/dsniff/PKGBUILD b/community/dsniff/PKGBUILD
new file mode 100644
index 000000000..648521f0c
--- /dev/null
+++ b/community/dsniff/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 30651 2010-10-19 13:53:33Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: ViNS <gladiator@fastwebnet.it>
+
+pkgname=dsniff
+pkgver=2.4b1
+pkgrel=18
+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' '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 $srcdir/$pkgname-2.4
+ patch -N < ../dsniff_2.4b1+debian-18.diff || return 1
+ for i in *.dpatch; do
+ patch -N < "$i"
+ done
+
+ [ $NOEXTRACT -eq 1 ] || LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd $srcdir/$pkgname-2.4
+ make prefix=$pkgdir/usr install || return 1
+
+ mkdir -p $pkgdir/usr/share
+ mv $pkgdir/usr/man $pkgdir/usr/share/
+}