1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name tcpdstat |
---|
6 | version 1.0 |
---|
7 | distname ${name}-uw |
---|
8 | extract.suffix .tar |
---|
9 | extract.cmd tar |
---|
10 | extract.pre_args -xf |
---|
11 | categories net security |
---|
12 | platforms darwin |
---|
13 | maintainers ports@ |
---|
14 | description 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. |
---|
15 | homepage http://staff.washington.edu/dittrich/talks/core02/tools/tools.html |
---|
16 | master_sites http://staff.washington.edu/dittrich/talks/core02/tools/ |
---|
17 | |
---|
18 | checksums md5 64b246fb0a4ee47ae37e83d721b205df \ |
---|
19 | sha1 3f0d95499bd33118bbcf86752a2d524eb2802fa7 \ |
---|
20 | rmd160 6b03265d2b075e3f85b4c0e93c42bc05d010fc5e |
---|
21 | |
---|
22 | depends_lib port:libpcap |
---|
23 | |
---|
24 | configure {} |
---|
25 | |
---|
26 | pre-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 | |
---|