# $Id: Portfile 89345 2012-01-26 07:57:06Z jmr@macports.org $

PortSystem 1.0

name             libnids
version          1.24
categories       net
license          GPL-2
maintainers      nomaintainer
description      E-component of Network Intrusion Detection System
long_description \
	Libnids is an implementation of an E-component of Network \
	Intrusion Detection System. It emulates the IP stack of \
	Linux 2.0.x. Libnids offers IP defragmentation, TCP stream \
	assembly and TCP port scan detection.
homepage         http://libnids.sourceforge.net/
platforms        darwin

master_sites     sourceforge:project/${name}/${name}/${version}
checksums        md5     72d37c79c85615ffe158aa524d649610 \
                 sha1    9a421df05cefdc4f5f7db95efc001b3c2b5249ce \
                 rmd160  66a1a332a70b316fd83905887dc731b5bf28d715

depends_lib      port:libpcap

configure.args   --mandir=${prefix}/share/man --disable-libglib

destroot.destdir install_prefix=${destroot}

variant libnet conflicts libnet11 description {Use libnet 1.0.x} {
    depends_lib-append port:libnet
}

variant libnet11 conflicts libnet description {Use libnet 1.1.x} {
    depends_lib-append port:libnet11
}

if {![variant_isset libnet]} {
    default_variants +libnet11
}
