Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/syft/
Date: Wed, 11 May 2022 21:30:01
Message-Id: 1652304231.cc576ef164959ceb193b083706f6d5dd0bf70acb.williamh@gentoo
1 commit: cc576ef164959ceb193b083706f6d5dd0bf70acb
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 21:23:47 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 21:23:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc576ef1
7
8 app-containers/syft: initial import
9
10 Syft is a CLI tool and library for generating a Software Bill of
11 Materials from container images and filesystems
12
13 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
14
15 app-containers/syft/Manifest | 2 ++
16 app-containers/syft/metadata.xml | 8 ++++++++
17 app-containers/syft/syft-0.45.1.ebuild | 22 ++++++++++++++++++++++
18 3 files changed, 32 insertions(+)
19
20 diff --git a/app-containers/syft/Manifest b/app-containers/syft/Manifest
21 new file mode 100644
22 index 000000000000..9b3293a93e5f
23 --- /dev/null
24 +++ b/app-containers/syft/Manifest
25 @@ -0,0 +1,2 @@
26 +DIST syft-0.45.1-deps.tar.xz 619145524 BLAKE2B c39ce29edb6820ff620f2d25b564084b2328f24cd453aad0cfed3a799768ff5e18f6de2fd11d981c544b6f377bb8ef64433158c71cab63c184587e648ab6bae0 SHA512 f734266b51956543e2aa94b62d47abeb45fa63de31b4f2d2d6e084b2c9233a1a0dbd36890523f54836d4e341c6fb38c3a2a0aca775a8ce2ca2bf3672e7dfbd72
27 +DIST syft-0.45.1.tar.gz 3826388 BLAKE2B 9600f44d4d0390c2cda422ccec04ab8f27165ed00cb031dfc441e21a156f5abfb1e63ed26bbc5795b074d2b8f578486624f8a88c87248a5c70a02268d728bbf2 SHA512 938af62b5c9d724d206db98174892bede409f4bfb9199d636cf3cedfa605cc79f2e4d9c2b49868e4f9ac1ab64d05b42849d15c9f28bf4c7a2b531449f346ef85
28
29 diff --git a/app-containers/syft/metadata.xml b/app-containers/syft/metadata.xml
30 new file mode 100644
31 index 000000000000..3b2a9c591010
32 --- /dev/null
33 +++ b/app-containers/syft/metadata.xml
34 @@ -0,0 +1,8 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 +<maintainer type="person">
39 +<email>williamh@g.o</email>
40 +<name>William Hubbs</name>
41 +</maintainer>
42 +</pkgmetadata>
43
44 diff --git a/app-containers/syft/syft-0.45.1.ebuild b/app-containers/syft/syft-0.45.1.ebuild
45 new file mode 100644
46 index 000000000000..2c42d972b97c
47 --- /dev/null
48 +++ b/app-containers/syft/syft-0.45.1.ebuild
49 @@ -0,0 +1,22 @@
50 +# Copyright 2022 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=8
54 +inherit go-module
55 +
56 +DESCRIPTION="Generate a Software Bill of Materials from container images and filesystems"
57 +HOMEPAGE="https://www.anchore.com"
58 +SRC_URI="https://github.com/anchore/syft/archive/v${PV}.tar.gz -> ${P}.tar.gz"
59 +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
60 +
61 +LICENSE="Apache-2.0"
62 +SLOT="0"
63 +KEYWORDS="~amd64"
64 +
65 +src_compile() {
66 + ego build -o bin/syft ./cmd/syft
67 +}
68 +
69 +src_install() {
70 +dobin bin/*
71 +}