# $Id: Portfile 54601 2009-07-30 06:26:57Z toby@macports.org $

PortSystem 1.0
name             dsniff-devel
version          2.4b1
revision         1
categories       net
maintainers      nomaintainer
description      network auditing and penetration testing tools
long_description \
	dsniff is a collection of tools for network auditing and penetration \
	testing. dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf, and \
	webspy passively monitor a network for interesting data (passwords, \
	e-mail, files, etc.). arpspoof, dnsspoof, and macof facilitate the \
	interception of network traffic normally unavailable to an attacker \
	(e.g, due to layer-2 switching). sshmitm and webmitm implement \
	active monkey-in-the-middle attacks against redirected SSH and HTTPS \
	sessions by exploiting weak bindings in ad-hoc PKI.
homepage         http://monkey.org/~dugsong/dsniff/
platforms        darwin

depends_lib      port:libpcap
depends_build    port:libnet lib:libnids:libnids

master_sites     ${homepage}beta/
distname         dsniff-${version}
checksums        md5 2f761fa3475682a7512b0b43568ee7d6

worksrcdir       dsniff-2.4

patchfiles       patch-pcaputil.c patch-sshcrypto.c

configure.args   --mandir=${prefix}/share/man
configure.cflags-append	"-DBIND_8_COMPAT"

destroot.destdir install_prefix=${destroot}

platform darwin 9 {
	patchfiles-append	patch-sshow.c.diff
}
