# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                xprobe2
categories          net security
version             0.3
platforms	    darwin
maintainers	    pmq

description         Remote, active OS fingerprinting tool
long_description    \
    The purpose of the tool is to perform ICMP fingerprinting of remote TCP/IP \
    stacks based on Ofir Arkin's ICMP fingerprinting. This tool is a practical \
    implementation of results discovered during 'project X' (see \
    http://www.sys-security.com/html/projects/X.html).

homepage            http://xprobe.sourceforge.net
master_sites        sourceforge:xprobe
checksums           md5 3ebb89ed9380038d368327816e34ec54

depends_lib         port:libpcap
patchfiles	    patch-Makefile.in.diff

configure.args      --with-libpcap-libraries=${prefix}/lib \
		    --with-libpcap-includes=${prefix}/include \
                    --mandir=${prefix}/share/man

platform darwin 8 {
    post-patch {
        foreach makefile [glob -directory ${worksrcpath}/src/xpmodules */Makefile.in */*/Makefile.in] {
            reinplace "s|CC=@CC@|CXX=@CXX@|g" ${makefile}
        }
    }

    configure.args-append CC=gcc-3.3 CXX=g++-3.3
}

livecheck.type	    none
