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

PortSystem          1.0
PortGroup           perl5 1.0

name                log2timeline
version             0.65
revision            8
categories          security
maintainers         nomaintainer
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/archive/p/${name}/
master_sites        googlecode
extract.suffix      .tgz
distname            ${name}_${version}

checksums           rmd160  c9dad4035bad1dbbf87e82f123aa014f03aa647f \
                    sha256  3d2ad0ac52bc7d902bdc7c7ce5f27e2d5a283fedb41327b75609e5ef3be01afc \
                    size    579325

supported_archs     noarch
platforms           {darwin any}

perl5.conflict_variants yes
perl5.branches          5.28 5.30 5.32 5.34
perl5.default_branch    5.34
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}-date-manip \
                    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 {
    delete {*}[glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
    ln -s ${prefix}/libexec/perl${perl5.major}/sitebin/log2timeline ${destroot}${prefix}/bin/
}

# deprecated, moved to archive storage
# see https://github.com/log2timeline/plaso for recommended (Python) replacement
livecheck.type      none