Skip to content

Commit

Permalink
dev-util/trivy: new package, add 0.55.1
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zapparov <[email protected]>
  • Loading branch information
ixti committed Sep 16, 2024
1 parent abb6b42 commit 8b973e4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev-util/trivy/Manifest
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions dev-util/trivy/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>
33 changes: 33 additions & 0 deletions dev-util/trivy/trivy-0.55.1.ebuild
Original file line number Diff line number Diff line change
@@ -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=""

This comment has been minimized.

Copy link
@stkw0

stkw0 Sep 17, 2024

Contributor

I don't know if you seen the pkgcheck failure. In case you didn't, please add a license.

This comment has been minimized.

Copy link
@ixti

ixti Sep 17, 2024

Author Contributor

Oh. I've meant to add them and completely forgot. Sorry about that.

PS: Thanks for catching this. Fixed.

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
}

0 comments on commit 8b973e4

Please sign in to comment.