Files

59 lines
2.1 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/betterleaks/betterleaks 1.4.1 v
go.offline_build no
revision 0
homepage https://betterleaks.com/
description \
A Better Secrets Scanner built for configurability and speed
long_description \
Betterleaks is a tool for detecting secrets like passwords, API keys, and \
tokens in git repos, files, and whatever else you wanna throw at it via \
stdin.
categories security
installs_libs no
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 9466cc27e62dc1b3d70a603089cb8aa4eb32c4e1 \
sha256 ddebea272658c703c8ca9b3096f3e98eedb1495fdca1159f350e10e25d11bc9f \
size 1344504
build.cmd make
build.pre_args-append \
VERSION=${github.tag_prefix}${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}
}