source: trunk/dports/security/openfpc/Portfile

Last change on this file was 151662, checked in by mf2k@…, 11 months ago

chaosreader daemonlogger libcdata libcdatetime libcerror libcfile libclocale libcnotify libcsplit libcstring libcthreads log2timeline logsentry masscan openfpc openvpn openvpn2 p5-file-mork p5-parse-win32registry pads pdfid pdfparser rekall snort tcpdstat tcpxtract volatility: Ports abandoned. (#52039)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 151662 2016-08-19 14:16:01Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           perl5 1.0
5
6name                openfpc
7version             0.1a
8revision            3
9categories          security
10license             GPL-2+
11platforms           darwin
12maintainers         nomaintainer
13
14description         lightweight full-packet network traffic recorder & buffering tool
15
16long_description    OpenFPC is a set of scripts that combine to provide a \
17                    ${description}. Its design goal is to allow non-expert \
18                    users to deploy a distributed network traffic recorder \
19                    on COTS hardware while integrating into existing alert \
20                    and log tools.
21
22homepage            http://code.google.com/p/openfpc/
23master_sites        googlecode
24
25extract.suffix      .tgz
26
27checksums           md5     4ff90b078354c814740680792645b54d \
28                    sha1    717b350f4b9b89cc18aa67131f5a3ca8f4fcbbfb \
29                    rmd160  c69ef174061329b2a1710fc8c49170b45471f5f0
30                   
31depends_lib         path:bin/perl:perl5
32#depends_run         port:tcpdump
33
34patchfiles          patch-prefix.diff
35
36post-patch {
37    reinplace "s|@PERL5_BIN@|${perl5.bin}|g" ${worksrcpath}/ofpc-extract.pl
38    reinplace "s|@PERL5_LIB@|${perl5.lib}|g" ${worksrcpath}/ofpc-extract.pl
39    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/ofpc-extract.pl ${worksrcpath}/openfpc
40}
41
42supported_archs     noarch
43
44use_configure       no
45
46build               {}
47
48destroot {
49    xinstall -m 755 -W ${worksrcpath} ofpc-extract.pl openfpc ${destroot}${prefix}/bin
50    xinstall -d ${destroot}${perl5.lib}
51    xinstall -m 644 -W ${worksrcpath} ofpcParse.pm ${destroot}${perl5.lib}
52    xinstall -m 644 ${worksrcpath}/openfpc.conf ${destroot}${prefix}/etc/openfpc.conf.sample
53   
54    xinstall -d ${destroot}${prefix}/share/doc/${name}
55    xinstall -m 644 -W ${worksrcpath} README \
56        ${destroot}${prefix}/share/doc/${name}
57}
58
59post-activate {
60    if {![file exists ${prefix}/etc/openfpc.conf]} {
61        copy ${prefix}/etc/openfpc.conf.sample ${prefix}/etc/openfpc.conf
62    }
63}
64
65notes "
66To configure ${name}, edit ${prefix}/etc/openfpc.conf
67"
Note: See TracBrowser for help on using the repository browser.