# -*- 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/zricethezav/gitleaks 8.24.0 v
go.package          github.com/zricethezav/gitleaks/v8
go.offline_build    no
revision            0
epoch               1

description         \
    Scan git repos (or files) for secrets using regex and entropy

long_description    \
    Gitleaks is a SAST tool for detecting and preventing hardcoded secrets \
    like passwords, api keys, and tokens in git repos. Gitleaks is an \
    easy-to-use, all-in-one solution for detecting secrets, past or present, \
    in your code.

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

checksums           rmd160  94021563f20e0fab4e8a0fc68be69ed4433556d7 \
                    sha256  a0c1e7c3b5d0ee621f1e48b3d502132f8a3e20f9ac2ce3f450c6fca55c702038 \
                    size    240871

build.cmd           make
build.pre_args-append \
                    VERSION=${version}
build.args          build

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