Ticket #43573: Portfile

File Portfile, 1.7 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
6name                nfex
7version             0.1
8categories          security net
9platforms           darwin
10maintainers         yahoo.fr:jul_bsd openmaintainer
11license             GPL-2
12description         Network File EXtractor
13long_description    ${description}
14homepage            https://code.google.com/p/nfex/
15
16fetch.type          svn
17svn.url             http://nfex.googlecode.com/svn/trunk/
18## No tag or release
19svn.revision        r20
20worksrcdir          trunk
21
22depends_lib         port:libpcap port:libnet11 port:clamav
23
24destroot.dir        ${worksrcpath}/src
25
26## nfex_exe_pp, http://blogs.cisco.com/security/network-based-file-carving/
27## FIXME! how to adjust arch
28post-configure {
29    system -W ${worksrcpath}/nfex_exe_pp "env CFLAGS='-I${prefix}/include' LDFLAGS='-L${prefix}/lib/x86_64' ./configure --prefix=${prefix}"
30}
31
32post-build {
33    system -W ${worksrcpath}/nfex_exe_pp "make"
34}
35
36post-destroot {
37    system -W ${worksrcpath}/nfex_exe_pp "env DESTDIR=${destroot} make install"
38}
39
40notes "
41usage:
42 $ nfex -f file.pcap -c ${prefix}/etc/nfex.conf -v
43Before using nfex_exe_pp, you will need to setup and update signatures for clamav.
44Also, for some reasons libclamav is looking for virus database in a non-std directory.
45 $ sudo freshclam -v
46 $ sudo ln -s ${prefix}/var/lib/clamav ${prefix}/share/clamav
47 $ nfex_exe_pp <file_whatever>
48
49BUGS:
50nfex - realtime network file extraction engine
51loading configuration file...
52 1 exe search code compiled (10000000 byte max)
53Abort trap: 6
54"
55
56
57livecheck.type      none