# -*- 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
maintainers {snc @nerdling} openmaintainer
description A C library for creating IP packets
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/
master_sites sourceforge:libnet-dev
distname libnet-${version}
checksums rmd160 b0549f639abfd21a892b73989f11b9b0716d62bc \
sha256 d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
patchfiles patch-configure.in.diff
reinplace "s|#include <net/bpf.h>||" ${worksrcpath}/src/libnet_link_bpf.c
file mkdir ${worksrcpath}/m4
file attributes ${worksrcpath}/m4 -permissions ugo+rwx
worksrcdir libnet-${version}
xinstall -m 755 ${worksrcpath}/libnet-config \
${destroot}${prefix}/bin/libnet-config
livecheck.regex libnet-(1\\.1(\\.\\d+)+)