Files

60 lines
2.2 KiB
Tcl

# -*- 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/gitleaks/gitleaks 8.30.1 v
go.package github.com/gitleaks/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 82fbbe813898c7ce13f269609a6324fbc8f89dc6 \
sha256 244e3497082180d664bf76599cc3aeb664f7a6018766b31e022204621508f706 \
size 305433
build.cmd make
build.pre_args-append \
VERSION=${version}
build.args build
post-build {
system -W ${worksrcpath} "./${name} completion bash > ${name}.bash"
system -W ${worksrcpath} "./${name} completion fish > ${name}.fish"
system -W ${worksrcpath} "./${name} completion zsh > ${name}.zsh"
}
destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
set bash_completions_dir share/bash-completion/completions
xinstall -d ${destroot}${prefix}/${bash_completions_dir}
xinstall -m 0644 ${worksrcpath}/${name}.bash \
${destroot}${prefix}/${bash_completions_dir}/${name}
set fish_completions_dir share/fish/vendor_completions.d
xinstall -d ${destroot}${prefix}/${fish_completions_dir}
xinstall -m 0644 ${worksrcpath}/${name}.fish \
${destroot}${prefix}/${fish_completions_dir}
set zsh_completions_dir share/zsh/site-functions
xinstall -d ${destroot}${prefix}/${zsh_completions_dir}
xinstall -m 0644 ${worksrcpath}/${name}.zsh \
${destroot}${prefix}/${zsh_completions_dir}/_${name}
}