source: trunk/dports/net/libnet11/Portfile

Last change on this file was 105402, checked in by snc@…, 4 years ago

libnet11: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 105402 2013-04-19 20:18:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libnet11
7conflicts           libnet
8version             1.1.6
9revision            2
10categories          net
11license             BSD
12maintainers         snc openmaintainer
13description         A C library for creating IP packets
14long_description \
15    libnet is a high-level API (toolkit) allowing the application \
16    programmer to construct and inject network packets. It provides a \
17    portable and simplified interface for low-level network packet \
18    shaping, handling and injection. Libnet hides much of the tedium of \
19    packet creation from the application programmer such as \
20    multiplexing, buffer management, arcane packet header information, \
21    byte-ordering, OS-dependent issues, and much more. Libnet features \
22    portable packet creation interfaces at the IP layer and link layer, \
23    as well as a host of supplementary and complementary functionality. \
24    Using libnet, quick and simple packet assembly applications can be \
25    whipped up with little effort. With a bit more time, more complex \
26    programs can be written (Traceroute and ping were easily rewritten \
27    using libnet and libpcap).
28homepage            http://sourceforge.net/projects/libnet-dev/
29platforms           darwin
30
31master_sites        sourceforge:libnet-dev
32distname            libnet-${version}
33
34checksums           rmd160  b0549f639abfd21a892b73989f11b9b0716d62bc \
35                    sha256  d392bb5825c4b6b672fc93a0268433c86dc964e1500c279dc6d0711ea6ec467a
36
37patchfiles          patch-configure.in.diff
38
39post-patch {
40    reinplace "s|#include <net/bpf.h>||" ${worksrcpath}/src/libnet_link_bpf.c
41    file mkdir ${worksrcpath}/m4
42    file attributes ${worksrcpath}/m4 -permissions ugo+rwx
43}
44
45worksrcdir          libnet-${version}
46
47use_autoreconf      yes
48
49post-destroot {
50    xinstall -m 755 ${worksrcpath}/libnet-config \
51        ${destroot}${prefix}/bin/libnet-config
52}
53
54livecheck.regex     libnet-(1\\.1(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.