New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25902: Portfile

File Portfile, 1.3 KB (added by jul_bsd@…, 4 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                tcpdstat
6version             1.0
7distname            ${name}-uw
8extract.suffix      .tar
9extract.cmd         tar
10extract.pre_args    -xf
11categories          net security
12platforms           darwin
13maintainers         ports@
14description         Produces a per-protocol breakdown of traffic by bytes and packets, with average and maximum transfer rates, for a given libpcap file (e.g., from tcpdump, ethereal, snort, etc.) Useful for getting a high-level view of traffic patterns.
15homepage            http://staff.washington.edu/dittrich/talks/core02/tools/tools.html
16master_sites        http://staff.washington.edu/dittrich/talks/core02/tools/
17
18checksums           md5     64b246fb0a4ee47ae37e83d721b205df \
19                    sha1    3f0d95499bd33118bbcf86752a2d524eb2802fa7 \
20                    rmd160  6b03265d2b075e3f85b4c0e93c42bc05d010fc5e
21
22depends_lib         port:libpcap
23
24configure           {}
25
26pre-build           {
27        reinplace "s|-L../libpcap-0.7.1|-L${prefix}/lib|" \
28                ${worksrcpath}/Makefile
29        reinplace "s|-I../libpcap-0.7.1|-I${prefix}/include|" \
30                ${worksrcpath}/Makefile
31        reinplace "s|PREFIX=/usr/local|PREFIX=${destroot}${prefix}|" \
32                ${worksrcpath}/Makefile
33        reinplace "s|static int packet_length;|int packet_length;|" \
34                ${worksrcpath}/net_read.c
35
36}
37
38