# -*- 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.90.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  cefe99f716c0ece8ca5a2c3fbfc0b5b2fd8340ea \
                    sha256  8426a99077fb4b2753755e33328ad9d6690b82ae45c974bd0b02b5a42219605a \
                    size    4089039

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

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