Revision: 70314 http://trac.macports.org/changeset/70314 Author: ryandesign@macports.org Date: 2010-08-05 17:02:10 -0700 (Thu, 05 Aug 2010) Log Message: ----------- openfpc: new port, version 0.1a; see #25906 Added Paths: ----------- trunk/dports/security/openfpc/ trunk/dports/security/openfpc/Portfile trunk/dports/security/openfpc/files/ trunk/dports/security/openfpc/files/patch-prefix.diff Added: trunk/dports/security/openfpc/Portfile =================================================================== --- trunk/dports/security/openfpc/Portfile (rev 0) +++ trunk/dports/security/openfpc/Portfile 2010-08-06 00:02:10 UTC (rev 70314) @@ -0,0 +1,54 @@ +# $Id$ + +PortSystem 1.0 +PortGroup perl5 1.0 + +name openfpc +version 0.1a +categories security +platforms darwin +maintainers yahoo.fr:jul_bsd + +description lightweight full-packet network traffic recorder & buffering tool + +long_description OpenFPC is a set of scripts that combine to provide a \ + ${description}. Its design goal is to allow non-expert \ + users to deploy a distributed network traffic recorder \ + on COTS hardware while integrating into existing alert \ + and log tools. + +homepage http://code.google.com/p/openfpc/ +master_sites googlecode + +extract.suffix .tgz + +checksums md5 4ff90b078354c814740680792645b54d \ + sha1 717b350f4b9b89cc18aa67131f5a3ca8f4fcbbfb \ + rmd160 c69ef174061329b2a1710fc8c49170b45471f5f0 + +depends_lib path:bin/perl:perl5 +#depends_run port:tcpdump + +patchfiles patch-prefix.diff + +post-patch { + reinplace "s|@PERL5_BIN@|${perl5.bin}|g" ${worksrcpath}/ofpc-extract.pl + reinplace "s|@PERL5_LIB@|${perl5.lib}|g" ${worksrcpath}/ofpc-extract.pl + reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/ofpc-extract.pl ${worksrcpath}/openfpc +} + +supported_archs noarch + +use_configure no + +build {} + +destroot { + xinstall -m 755 -W ${worksrcpath} ofpc-extract.pl openfpc ${destroot}${prefix}/bin + xinstall -m 644 -W ${worksrcpath} ofpcParse.pm ${perl5.lib} + xinstall -m 644 -W ${worksrcpath} openfpc.conf ${destroot}${prefix}/etc + + xinstall -d ${destroot}${prefix}/share/doc/${name} + xinstall -m 644 -W ${worksrcpath} README \ + ${destroot}${prefix}/share/doc/${name} +} Property changes on: trunk/dports/security/openfpc/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/security/openfpc/files/patch-prefix.diff =================================================================== --- trunk/dports/security/openfpc/files/patch-prefix.diff (rev 0) +++ trunk/dports/security/openfpc/files/patch-prefix.diff 2010-08-06 00:02:10 UTC (rev 70314) @@ -0,0 +1,29 @@ +--- ofpc-extract.pl.orig 2010-05-24 16:01:00.000000000 -0500 ++++ ofpc-extract.pl 2010-08-05 18:40:11.000000000 -0500 +@@ -1,4 +1,5 @@ +-#!/usr/bin/perl -I /opt/openfpc/ . ++#!@PERL5_BIN@ ++use lib ('@PERL5_LIB@'); + + ######################################################################################### + # Copyright (C) 2009 Leon Ward +@@ -28,7 +29,7 @@ + use ofpcParse; + + # List of config files to look for, first one wins +-my @CONFIG_FILES=("openfpc.conf", "/etc/openfpc/openfpc.conf","/opt/openfpc/openfpc.conf"); ++my @CONFIG_FILES=("openfpc.conf", "@PREFIX@/etc/openfpc.conf"); + my $CONFIG_FILE; + my %config; + my $openfpcver="0.1a"; +--- openfpc.orig 2010-05-24 16:01:00.000000000 -0500 ++++ openfpc 2010-08-05 18:40:10.000000000 -0500 +@@ -24,7 +24,7 @@ + # ---------------- Nothing to do below here ------------- + # List of config files to try in order + +-CONFIG_FILES="./openfpc.conf /etc/openfpc/openfpc.conf /opt/openfpc/openfpc.conf" ++CONFIG_FILES="./openfpc.conf @PREFIX@/etc/openfpc.conf" + + for i in $CONFIG_FILES + do
participants (1)
-
ryandesign@macports.org