# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 61736 2009-12-20 20:34:56Z ryandesign@macports.org $

PortSystem          1.0

name                libnet11
conflicts           libnet
version             1.1.4
categories          net
maintainers         snc openmaintainer
description         A C library for creating IP packets
long_description \
    libnet is a high-level API (toolkit) allowing the application \
    programmer to construct and inject network packets. It provides a \
    portable and simplified interface for low-level network packet \
    shaping, handling and injection. Libnet hides much of the tedium of \
    packet creation from the application programmer such as \
    multiplexing, buffer management, arcane packet header information, \
    byte-ordering, OS-dependent issues, and much more. Libnet features \
    portable packet creation interfaces at the IP layer and link layer, \
    as well as a host of supplementary and complementary functionality. \
    Using libnet, quick and simple packet assembly applications can be \
    whipped up with little effort. With a bit more time, more complex \
    programs can be written (Traceroute and ping were easily rewritten \
    using libnet and libpcap).
homepage            http://sourceforge.net/projects/libnet-dev/
platforms           darwin

master_sites        sourceforge:libnet-dev
distname            libnet-${version}
checksums           md5     c5e06418a89cc4209f677a776a798fd9 \
                    sha1    86a2f75b52c5b15dbd41c3e03356167de9c883e4 \
                    rmd160  e9dd2026ac9191e62646ec97eb4896703b445685
patchfiles          patch-configure.in
worksrcdir          libnet-${version}

use_autoreconf      yes

post-destroot {
    xinstall -m 755 ${worksrcpath}/libnet-config \
        ${destroot}${prefix}/bin/libnet-config
}

livecheck.regex     "(?i)<title>libnet\\-dev libnet\\-(.*) released.*</title>"
