# -*- 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/tfsec/tfsec 1.28.11 v github.tarball_from archive revision 0 description Security scanner for your Terraform code long_description {*}${description}. tfsec uses static analysis of your \ Terraform templates to spot potential security issues. categories security sysutils installs_libs no license MIT maintainers {gmail.com:herby.gillot @herbygillot} \ openmaintainer checksums rmd160 853df73a01f5a6ab922fa68d1475a81bb5d35eca \ sha256 9fed7ad6b7098ca0af355cc602b7de9cbaf6b3cff48ff6fa6f22e6a2c0063d4e \ size 6547974 # Allow Go to fetch dependencies at build time go.offline_build no build.env-append TRAVIS_TAG=${version} build.cmd "go mod vendor && make build" patch { # Delete lines building for Linux or Windows reinplace -E {/GOOS=(linux|windows)/ d} ${worksrcpath}/scripts/build.sh } destroot { foreach tfsec_build_bin [glob ${worksrcpath}/bin/${os.platform}/*] { set tfsec_install_bin \ [file tail [strsed $tfsec_build_bin s/-${os.platform}.*//]] xinstall -m 0755 \ ${tfsec_build_bin} ${destroot}${prefix}/bin/${tfsec_install_bin} } }