Ticket #43574: Portfile

File Portfile, 2.3 KB (added by jul_bsd@…, 10 years ago)
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$
3
4PortSystem          1.0
5
6PortGroup           python 1.0
7
8name                honeysnap
9version             1.0.7
10categories          security net
11platforms           darwin
12maintainers         yahoo.fr:jul_bsd openmaintainer
13license             GPL-2
14description         \
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
18long_description    ${description}
19homepage            https://projects.honeynet.org/honeysnap/
20master_sites        https://projects.honeynet.org/honeysnap/raw-attachment/wiki/WikiStart/
21
22checksums           rmd160  d0c8b2b731dc53f666be644ab8ca54f2b6f9c886 \
23                    sha256  3426d7b0ece9d92a978b38d0ccd72fc298d76a772a0f9fa357fb72b67d6780ed
24
25depends_lib         port:libpcap
26
27python.versions     24 25 26 27
28python.default_version 27
29
30post-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
47if {${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
53notes "
54To run honeysnap, you can:
55$ ${prefix}/bin/honeysnap -c honeynet.cfg myfile.pcap
56"
57
58livecheck.type      regex
59livecheck.url       ${homepage}
60livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+).tar.gz"