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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | PortGroup python 1.0 |
---|
7 | |
---|
8 | name honeysnap |
---|
9 | version 1.0.7 |
---|
10 | categories security net |
---|
11 | platforms darwin |
---|
12 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
13 | license GPL-2 |
---|
14 | description \ |
---|
15 | command-line tool for parsing single or multiple pcap data \ |
---|
16 | files and producing a 'first-cut' analysis report \ |
---|
17 | that identifies significant events within the processed data |
---|
18 | long_description ${description} |
---|
19 | homepage https://projects.honeynet.org/honeysnap/ |
---|
20 | master_sites https://projects.honeynet.org/honeysnap/raw-attachment/wiki/WikiStart/ |
---|
21 | |
---|
22 | checksums rmd160 d0c8b2b731dc53f666be644ab8ca54f2b6f9c886 \ |
---|
23 | sha256 3426d7b0ece9d92a978b38d0ccd72fc298d76a772a0f9fa357fb72b67d6780ed |
---|
24 | |
---|
25 | depends_lib port:libpcap |
---|
26 | |
---|
27 | python.versions 24 25 26 27 |
---|
28 | python.default_version 27 |
---|
29 | |
---|
30 | post-destroot { |
---|
31 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
32 | copy ${worksrcpath}/USAGE ${destroot}${prefix}/share/doc/${name}/ |
---|
33 | copy ${worksrcpath}/FAQ ${destroot}${prefix}/share/doc/${name}/ |
---|
34 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
35 | copy ${worksrcpath}/words ${destroot}${prefix}/share/examples/${name}/ |
---|
36 | copy ${worksrcpath}/honeynet.cfg ${destroot}${prefix}/share/examples/${name}/ |
---|
37 | copy ${worksrcpath}/misc/do_files.sh ${destroot}${prefix}/share/examples/${name}/ |
---|
38 | |
---|
39 | foreach f { honeysnap thresholdflows xBytesNseconds } { |
---|
40 | ln -s ${python.prefix}/bin/${f} ${destroot}${prefix}/bin/ |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | # py27-irclib, py27-dpkt NOK for 3.3? |
---|
45 | ## http://www.demonseed.net/~jp/code/magic.py is 404 |
---|
46 | ## py-pcap: not compiling => try w nothing or py-pcapy |
---|
47 | if {${name} ne ${subport}} { |
---|
48 | configure.args-append --with-python=${prefix}/bin/python${python.branch} |
---|
49 | configure.python ${prefix}/bin/python${python.branch} |
---|
50 | depends_lib-append port:python${python.version} port:py${python.version}-irclib port:py${python.version}-dpkt |
---|
51 | } |
---|
52 | |
---|
53 | notes " |
---|
54 | To run honeysnap, you can: |
---|
55 | $ ${prefix}/bin/honeysnap -c honeynet.cfg myfile.pcap |
---|
56 | " |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url ${homepage} |
---|
60 | livecheck.regex "${name}-(\\d+\\.\\d+\\.\\d+).tar.gz" |
---|