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: Portfile 111353 2013-09-19 07:21:56Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name xplico |
---|
7 | version 1.1.0 |
---|
8 | categories security |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license GPL-2+CC_BY-NC-SA |
---|
12 | |
---|
13 | description Network Forensic Analysis Tool (NFAT) |
---|
14 | |
---|
15 | homepage http://www.xplico.org/ |
---|
16 | master_sites sourceforge |
---|
17 | extract.suffix .tgz |
---|
18 | |
---|
19 | checksums rmd160 6eaa5591fe3e5ca0b33e05a53899ef01241db476 \ |
---|
20 | sha256 3e0854ca7338efe0a0688525ac09c015a0cf8cc16db0840fa5c65351038594ac |
---|
21 | |
---|
22 | depends_lib port:recode |
---|
23 | depends_build port:libpcap \ |
---|
24 | port:sqlite3 \ |
---|
25 | port:json-c |
---|
26 | ## geo-ip? ndpi? ghostpcl(not in ghoscripts port) |
---|
27 | |
---|
28 | use_configure no |
---|
29 | |
---|
30 | ## clang: error: argument unused during compilation: '-rdynamic' |
---|
31 | ## gcc-mp-4.9: error: unrecognized command line option '-rdynamic' |
---|
32 | ## gcc-mp-4.8: error: unrecognized command line option '-rdynamic' |
---|
33 | ## ld: unknown option: -soname |
---|
34 | configure.compiler macports-gcc-4.9 |
---|
35 | ## istypes.h: error: two or more data types in declaration specifiers |
---|
36 | |
---|
37 | ## xplico Makefile has its own tree and clean it before install... |
---|
38 | build.env DEFAULT_DIR=${prefix}/var/xplico |
---|
39 | |
---|
40 | pre-build { |
---|
41 | reinplace "s|^INCLUDE_DIR = |INCLUDE_DIR = -I${prefix}/include |" ${worksrcpath}/Makefile |
---|
42 | ## Makefile:48: *** Recursive variable `LDFLAGS' references itself (eventually). Stop. |
---|
43 | # reinplace "s|^LDFLAGS = |LDFLAGS = \$(LDFLAGS) |" ${worksrcpath}/Makefile |
---|
44 | reinplace "s|^LDFLAGS = |LDFLAGS = -L${prefix}/lib |" ${worksrcpath}/Makefile |
---|
45 | ## Makefile:103: *** Recursive variable `CFLAGS' references itself (eventually). Stop. |
---|
46 | # reinplace "s|^CFLAGS = |CFLAGS = \$(CFLAGS) |" ${worksrcpath}/Makefile |
---|
47 | reinplace "s|^CFLAGS = -rdynamic |CFLAGS = |" ${worksrcpath}/Makefile |
---|
48 | reinplace "s|^STRIP = strip|CC = ${configure.cc}\\\nSTRIP = strip|" ${worksrcpath}/Makefile |
---|
49 | reinplace "s|^all: thirdparty subdir xplico mdl check_version|all: subdir xplico mdl check_version|" ${worksrcpath}/Makefile |
---|
50 | } |
---|
51 | |
---|
52 | livecheck.type regex |
---|
53 | livecheck.url ${homepage}/download |
---|
54 | livecheck.regex "Xplico (\\d+\\.\\d+\\.\\d+\\), " |
---|
55 | |
---|
56 | default_variants +geoip +voip |
---|
57 | |
---|
58 | variant voip { |
---|
59 | depends_run port:sox port:lame |
---|
60 | ## + videosnarf +patch (no port) |
---|
61 | } |
---|
62 | |
---|
63 | variant geoip { |
---|
64 | depends_build-append port:libgeoip |
---|
65 | reinplace "s|^GEOIP_LIB =\$(GEOIP_V)/libGeoIP/.libs/libGeoIP.a|GEOIP_LIB =${prefix}/lib/libGeoIP.a|" ${worksrcpath}/Makefile |
---|
66 | reinplace "s|^INCLUDE_DIR += -I\$(GEOIP_V)/libGeoIP/|INCLUDE_DIR += -I${prefix}/include|" ${worksrcpath}/Makefile |
---|
67 | } |
---|
68 | |
---|