# -*- 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.99.8 v
go.package          github.com/trufflesecurity/trufflehog/v3
go.offline_build    no
go.toolchain_min    1.26.0
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  121cf45f3478b3e3b1dcd478c4746e5ec192fa41 \
                    sha256  c6b7ca37d8ce7fe03baeb129b2ab75021c44ab65a80241860a2872e0f232ccfe \
                    size    6477038

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

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