mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
41 lines
1.4 KiB
Tcl
41 lines
1.4 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/tfsec/tfsec 1.28.14 v
|
|
go.offline_build no
|
|
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 00367e6968d7f507500c60bb597ef7c866cc4fee \
|
|
sha256 61fe8ee670cceaf45d85c2789da66616d0045f8dbba4ec2b9db453436f9b9804 \
|
|
size 6547680
|
|
|
|
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}
|
|
}
|
|
}
|