# -*- 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.88.14 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  0bf5e8e1c9938cc77058e089ec92660fe5270823 \
                    sha256  89e3ffa727380386c11749639e9323b34ee5938b8cc2ee4538a1f2e44a1fe8ac \
                    size    3799674

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

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