Files

42 lines
1.3 KiB
Tcl
Raw Permalink Normal View History

2021-01-24 06:04:43 -05:00
# -*- 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
2023-12-01 17:30:41 -05:00
go.setup github.com/snyk/driftctl 0.40.0 v
2021-01-24 06:04:43 -05:00
revision 0
homepage https://driftctl.com
description Detect, track and alert on infrastructure drift
long_description {*}${description}. Measures infrastructure as code \
coverage, and tracks infrastructure drift.
2021-11-29 12:29:44 -05:00
categories sysutils
installs_libs no
license Apache-2
2021-01-24 06:04:43 -05:00
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
2023-12-01 17:30:41 -05:00
checksums rmd160 de440c96d9729fce4307c8dbbe579974418beeab \
sha256 30781d35092dd1dd1b34f22e63e3130a062cf4a3f511f61be013a0ff2a0c7767 \
size 1864461
2021-01-24 06:04:43 -05:00
# Allow fetching dependencies at build time
go.offline_build no
2021-01-24 06:04:43 -05:00
2021-04-14 10:13:40 -04:00
build.env-append OS_ARCH=${os.platform}/${goarch}
2022-06-16 09:50:29 -04:00
build.cmd "${go.bin} generate ./... && ${go.bin} build"
2021-07-28 10:40:31 -04:00
build.pre_args-append \
2021-11-05 21:56:32 -04:00
-ldflags \" \
-X ${go.package}/pkg/version.version=${github.tag_prefix}${version} \
-X ${go.package}/build.env=release \
\"
2021-01-24 06:04:43 -05:00
destroot {
2021-11-05 21:56:32 -04:00
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
2021-01-24 06:04:43 -05:00
}