git: f08836ef7bde - main - ecurity/trivy: add a new security scanner
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Mar 2024 05:36:48 UTC
The branch main has been updated by mfechner: URL: https://cgit.FreeBSD.org/ports/commit/?id=f08836ef7bded933702cdd8119ce12f68fd46883 commit f08836ef7bded933702cdd8119ce12f68fd46883 Author: Matthias Fechner <mfechner@FreeBSD.org> AuthorDate: 2024-03-09 05:35:43 +0000 Commit: Matthias Fechner <mfechner@FreeBSD.org> CommitDate: 2024-03-09 05:36:41 +0000 ecurity/trivy: add a new security scanner Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more --- security/Makefile | 1 + security/trivy/Makefile | 26 ++++++++++++++++++++++++++ security/trivy/distinfo | 5 +++++ security/trivy/pkg-descr | 2 ++ 4 files changed, 34 insertions(+) diff --git a/security/Makefile b/security/Makefile index c56b39cc9fd2..62633883efa3 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1328,6 +1328,7 @@ SUBDIR += transcrypt SUBDIR += trezord SUBDIR += tripwire + SUBDIR += trivy SUBDIR += trousers SUBDIR += trufflehog SUBDIR += tthsum diff --git a/security/trivy/Makefile b/security/trivy/Makefile new file mode 100644 index 000000000000..44282f9226e1 --- /dev/null +++ b/security/trivy/Makefile @@ -0,0 +1,26 @@ +PORTNAME= trivy +DISTVERSION= 0.49.1 +DISTVERSIONPREFIX= v +CATEGORIES= security + +MAINTAINER= mfechner@FreeBSD.org +COMMENT= Security scanner written in go +WWW= https://github.com/aquasecurity/trivy + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules,1.21 + +GO_MODULE= github.com/aquasecurity/trivy +GO_TARGET= ./cmd/trivy +GO_BUILDFLAGS= -ldflags=" \ + -extldflags '-static' \ + -X github.com/aquasecurity/trivy/pkg/version.ver=${DISTVERSION} \ + -s -w" + +PLIST_FILES= bin/${PORTNAME} + + + +.include <bsd.port.mk> diff --git a/security/trivy/distinfo b/security/trivy/distinfo new file mode 100644 index 000000000000..61d83462dc59 --- /dev/null +++ b/security/trivy/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1709899091 +SHA256 (go/security_trivy/trivy-v0.49.1/v0.49.1.mod) = 49e23b72ebeef255b19969704ddf58c118888efad7058ae732cb5701b15b1145 +SIZE (go/security_trivy/trivy-v0.49.1/v0.49.1.mod) = 22827 +SHA256 (go/security_trivy/trivy-v0.49.1/v0.49.1.zip) = 71fd4e3d5abf9e7fdcff4b844cdfdd28cac91a78d36c22de1f581e4bafbe567f +SIZE (go/security_trivy/trivy-v0.49.1/v0.49.1.zip) = 40379854 diff --git a/security/trivy/pkg-descr b/security/trivy/pkg-descr new file mode 100644 index 000000000000..bc47a5f20e4f --- /dev/null +++ b/security/trivy/pkg-descr @@ -0,0 +1,2 @@ +Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, +code repositories, clouds and more