commit:     8b973e4717b6f33da2a3c2e6653c11fcc37f1b1c
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Mon Sep 16 17:12:19 2024 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Mon Sep 16 17:12:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8b973e47

dev-util/trivy: new package, add 0.55.1

Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>

 dev-util/trivy/Manifest            |  2 ++
 dev-util/trivy/metadata.xml        | 11 +++++++++++
 dev-util/trivy/trivy-0.55.1.ebuild | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)

diff --git a/dev-util/trivy/Manifest b/dev-util/trivy/Manifest
new file mode 100644
index 000000000..34bf30172
--- /dev/null
+++ b/dev-util/trivy/Manifest
@@ -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

diff --git a/dev-util/trivy/metadata.xml b/dev-util/trivy/metadata.xml
new file mode 100644
index 000000000..0415fa18b
--- /dev/null
+++ b/dev-util/trivy/metadata.xml
@@ -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>[email protected]</email>
+               <name>Alexey Zapparov</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">aquasecurity/trivy</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-util/trivy/trivy-0.55.1.ebuild 
b/dev-util/trivy/trivy-0.55.1.ebuild
new file mode 100644
index 000000000..0df1e3505
--- /dev/null
+++ b/dev-util/trivy/trivy-0.55.1.ebuild
@@ -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
+}

Reply via email to