mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 12:33:40 -04:00
dev-util/trivy: add 0.55.2, drop 0.55.1-r1
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
31
dev-util/trivy/trivy-0.55.2.ebuild
Normal file
31
dev-util/trivy/trivy-0.55.2.ebuild
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Vulnerability scanner for container images, file systems, and Git repos"
|
||||
HOMEPAGE="https://aquasecurity.github.io/trivy"
|
||||
SRC_URI="
|
||||
https://github.com/aquasecurity/trivy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/ixti/trivy/releases/download/v${PV}/${P}-vendor.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.22.0
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
ego build -ldflags="-s -X github.com/aquasecurity/trivy/pkg/version/app.ver=${PV}" ./cmd/trivy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin trivy
|
||||
|
||||
default
|
||||
}
|
||||
Reference in New Issue
Block a user