# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem              1.0
PortGroup               active_variants 1.1

name                    dsniff
version                 2.4b1
revision                1
categories              net
license                 BSD ISC
maintainers             nomaintainer
platforms               darwin

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/
master_sites            ${homepage}beta/
distname                dsniff-${version}
checksums               rmd160  4d5dee193f0d252d22cfe2417f067460db9638b1 \
                        sha256  a9803a7a02ddfe5fb9704ce86f0ffc48453c321e88db85810db411ba0841152a

depends_lib             port:libpcap \
                        path:lib/libssl.dylib:openssl \
                        port:libnids \
                        port:xorg-libXmu

worksrcdir              dsniff-2.4

patchfiles              patch-pcaputil.c \
                        patch-sshcrypto.c \
                        patch-sshow.c.diff \
                        patch-arpspoof.c.diff \
                        patch-dnsspoof.c.diff \
                        patch-filesnarf.c.diff \
                        patch-macof.c.diff \
                        patch-record.c.diff \
                        patch-sshmitm.c.diff \
                        patch-tcp_raw.c.diff \
                        patch-tcp_raw.h.diff \
                        patch-tcpkill.c.diff \
                        patch-tcpnice.c.diff \
                        patch-trigger.c.diff \
                        patch-trigger.h.diff \
                        patch-urlsnarf.c.diff \
                        patch-webmitm.c.diff \
                        patch-webspy.c.diff \
                        patch-sshmitm.c-redef-of-csin.diff \
                        patch-webmitm.c-redef-of-csin.diff

require_active_variants libnids libnet11 libnet
configure.args          --mandir=${prefix}/share/man
configure.cflags-append -DBIND_8_COMPAT

use_parallel_build      no

destroot.destdir        install_prefix=${destroot}

livecheck.type          regex
livecheck.url           ${master_sites}
livecheck.regex         "dsniff-(\\d+(?:\\.\[\\da-z\]+)*)[quotemeta ${extract.suffix}]"