dev-util/trivy: new package, add 0.55.1

Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
This commit is contained in:
Alexey Zapparov
2024-09-16 19:12:19 +02:00
parent abb6b42196
commit 8b973e4717
3 changed files with 46 additions and 0 deletions

2
dev-util/trivy/Manifest Normal file
View File

@@ -0,0 +1,2 @@
DIST trivy-0.55.1-vendor.tar.gz 65614814 BLAKE2B 1fb45b854185fe18b637e5be1ddde96b8d483c9a3d4ca55db3492f6aa921dd04fc628998e1f1ca413447b93097ed694015a171c1e6a3b3de3ebb86ddff238f3d SHA512 7d360a64f863824ef401d604dd14c227b81f6ce1edddd5494f2fbb17154b1a3bba913a65e8d14a706c0317f848b7f9523fd365473eaa6fefc1a1f12d82b523dd
DIST trivy-0.55.1.tar.gz 56420808 BLAKE2B 2f223432394b1dd9458464f9d6e5ea77de952883ac9e7451051236a686096f240be74c5a94ae48c62de6a2e414cc06278e463745a973d96dd1f53cc81c727ac7 SHA512 d769eab5d20124ddd30abf38b20ba12f165914766d36557104bb724dc670a0b67b6b950d146a57cebfb48deeb7870a0c36d83becc12a0668e2b06ee6289b0173

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>alexey@zapparov.com</email>
<name>Alexey Zapparov</name>
</maintainer>
<upstream>
<remote-id type="github">aquasecurity/trivy</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,33 @@
# 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}/trivy-${PV}-vendor.tar.gz
"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
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
}