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

go.setup            github.com/trufflesecurity/trufflehog 3.93.8 v
go.package          github.com/trufflesecurity/trufflehog/v3
go.offline_build    no
revision            0

description         Find credentials all over the place

long_description    \
    ${name} scans for credentials in Github & Gitlab repositories, \
    filesystems, and S3 buckets.  It utilizes 700 credential detectors that \
    support active verification against their respective APIs.

categories          security
installs_libs       no
license             AGPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.args-append \
    -ldflags \" -X ${go.package}/pkg/version.BuildVersion=${version} \"

checksums           rmd160  29e9c72fd9cade9d2cbe5f8942e7df84d395c216 \
                    sha256  5ede8393977eac38f634228aaa434135a2d51b868d1ea92037ccf4e039c702e5 \
                    size    4177229

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

github.livecheck.regex \
                    {([0-9.]+)}
