# $Id$

PortSystem          1.0

name                xprobe2
categories          net security
version             0.3
platforms	    darwin
maintainers	    wohner.eu:normen

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 \
                    patch-libs-external-USI++-src-ip.cc.diff \
                    patch-libs-external-USI++-src-misc.cc.diff \
                    patch-libs-external-USI++-usi++-tcp.h.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