# $Id: Portfile,v 1.1 2005/07/31 18:27:44 ben Exp $

PortSystem          1.0

name                xprobe2
categories          net security
version             0.3
platforms	    darwin
maintainers	    pierre@queinnec.org ben@opendarwin.org
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

# Apple already ships pcap, so make it explicitly depend on DP's own version
# depends_lib         lib:libpcap:libpcap
depends_lib         port:libpcap

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

configure.env       CPPFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

patchfiles	    patch-Makefile.in.diff

platform darwin 8 {
post-patch      {
		cd ${worksrcpath}/src/xpmodules
                foreach makefile [glob */Makefile.in */*/Makefile.in] {
                   reinplace "s|CC=@CC@|CXX=@CXX@|g" ${makefile}
                }
} 
configure.args-append CC=gcc-3.3 CXX=g++-3.3
}
