# $Id$

PortSystem        1.0

name              honeyd
version           1.5c
revision          3
categories        net
maintainers       nomaintainer

description       A small daemon that creates virtual hosts appearing to run various \
		  operating systems and services.

long_description  Honeyd is a small daemon that creates virtual hosts (tested up to \
		  65,536 ip addresses) that can appear to be running individual operating \
		  systems and services of your choice.  Honeyd improves cyber security \
		  by providing mechanisms for threat detection and assessment, and also deters \
		  adversaries by hiding real systems in the middle of virtual systems.

homepage          http://www.honeyd.org/
master_sites      http://www.citi.umich.edu/u/provos/honeyd/
platforms         darwin
checksums         md5 9887b44333e380a2205f64fa245cb727

depends_lib       port:libevent1 \
		  port:libdnet \
		  port:libpcap \
		  port:pcre \
		  port:py27-libdnet \
		  port:py27-pylibpcap

patchfiles        configure.patch dpkt_Makefile.patch
platform darwin {
    patchfiles-append   darwin_rlimit.patch
}
post-patch {
    reinplace "s|__PYTHON__|${prefix}/bin/python2.7|" ${worksrcpath}/dpkt/Makefile
}

configure.args	  --with-python
configure.env     PATH_PYTHON=${prefix}/bin/python2.7 \
                  EVENTINC="-I${prefix}/include/libevent1" \
                  EVENTLIB="-L${prefix}/lib/libevent1 -levent"

variant rrdtool {
	depends_lib-append	port:rrdtool
}