Files

36 lines
1.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/kubescape/kubescape 4.0.8 v
revision 0
description Tool for testing if Kubernetes is deployed securely as \
defined in Kubernetes Hardening Guidance by NSA and CISA
long_description {*}${description}
categories sysutils security
installs_libs no
license Apache-2
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 f7a6559d8c4c2ad32f061d5514d094775dff35cd \
sha256 28866380b6c8a17c7548d5467aaf4197937602c673d8fed51b973e4aadee8298 \
size 9855075
# Allow Go to fetch dependencies at build time
go.offline_build no
build.pre_args-append -ldflags \" \
-X main.version=v${version} \
-X main.commit=d7539c2264560a8685f59e89a731d6de833258a6 \
-X main.date=20260508 \
\"
build.cmd "${go.bin} mod tidy && ${go.bin} build"
destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}