/
Portfile
44 lines (34 loc) · 1.21 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- 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/anchore/grype 0.77.0 v
revision 0
description \
A vulnerability scanner for container images and filesystems
long_description \
A vulnerability scanner for container images and filesystems. Works with \
Syft, the powerful SBOM (software bill of materials) tool for container \
images and filesystems.
categories security
installs_libs no
license Apache-2
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
fetch.type git
depends_build-append \
port:goreleaser
go.offline_build no
build {
system -W ${worksrcpath} \
{
goreleaser build --single-target \
--id=darwin-build \
--skip=post-hooks \
--skip=validate
}
}
destroot {
xinstall -m 0755 \
{*}[glob ${worksrcpath}/dist/*darwin*/${name}] \
${destroot}${prefix}/bin/
}