# -*- 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
# $Id$

PortSystem          1.0
PortGroup           perl5 1.0

name                log2timeline
version             0.65
revision            3
categories          security
platforms           darwin
maintainers         yahoo.fr:jul_bsd openmaintainer
license             GPL-3+

description         framework for automatic creation of a super timeline

long_description    ${name} provides a single tool to parse \
                    various log files and artifacts found on suspect systems \
                    (and supporting systems, such as network equipment) and \
                    produces a timeline that can be analysed by forensic \
                    investigators/analysts.

homepage            https://code.google.com/p/log2timeline/
master_sites        googlecode
extract.suffix      .tgz
distname            ${name}_${version}

checksums           rmd160  c9dad4035bad1dbbf87e82f123aa014f03aa647f \
                    sha256  3d2ad0ac52bc7d902bdc7c7ce5f27e2d5a283fedb41327b75609e5ef3be01afc

supported_archs     noarch

perl5.branches          5.16 5.18 5.20 
perl5.default_branch    5.16
perl5.create_variants   ${perl5.branches}

depends_lib         port:perl${perl5.major} \
                    port:p${perl5.major}-archive-zip \
                    port:p${perl5.major}-carp-assert \
                    port:p${perl5.major}-datetime-format-strptime \
                    port:p${perl5.major}-datetime-timezone \
                    port:p${perl5.major}-dbd-sqlite \
                    port:p${perl5.major}-dbi \
                    port:p${perl5.major}-digest-crc \
                    port:p${perl5.major}-gtk2 \
                    port:p${perl5.major}-html-parser \
                    port:p${perl5.major}-html-scrubber \
                    port:p${perl5.major}-image-exiftool \
                    port:p${perl5.major}-libwww-perl \
                    port:p${perl5.major}-net-pcap \
                    port:p${perl5.major}-netpacket \
                    port:p${perl5.major}-xml-libxml \
                    port:p${perl5.major}-datemanip \
                    port:p${perl5.major}-parse-win32registry \
                    port:p${perl5.major}-file-mork \
                    port:p${perl5.major}-data-hexify \
                    port:p${perl5.major}-version \
                    port:p${perl5.major}-params-validate \
                    port:p${perl5.major}-xml-entities \
                    port:p${perl5.major}-mac-propertylist

configure.pre_args
configure.cmd       ${prefix}/bin/perl${perl5.major} Makefile.PL

post-destroot {
    eval delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
    ln -s ${prefix}/libexec/perl${perl5.major}/sitebin/log2timeline ${destroot}${prefix}/bin/
}

livecheck.type      regex
livecheck.url       ${homepage}downloads/list
livecheck.regex     ${name}_(\\d+(\\.\[0-9a-z\]+)+)${extract.suffix}