1 |
commit: 44bf9d98544a4750a95d5947f82786b2ab99ca14 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 02:11:09 2022 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 02:11:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44bf9d98 |
7 |
|
8 |
app-containers/skopeo: add 1.7.0 |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
app-containers/skopeo/Manifest | 1 + |
13 |
app-containers/skopeo/skopeo-1.7.0.ebuild | 52 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/app-containers/skopeo/Manifest b/app-containers/skopeo/Manifest |
17 |
index 6b6b26a66c12..e0afe357dfcb 100644 |
18 |
--- a/app-containers/skopeo/Manifest |
19 |
+++ b/app-containers/skopeo/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST skopeo-1.3.1.tar.gz 5595931 BLAKE2B eda2767a1b1b899b99fc70ef361541c388cab77 |
21 |
DIST skopeo-1.5.1.tar.gz 5636533 BLAKE2B 7f0e86cdee5c3250ec1280d7e71554ac2f8ad96ababe0e81dfabc00e8c128a13fc0c9c561b7a9be389d7386e9f664b95118bd2122612b9c2e8844db49769c03c SHA512 3f8c730eaa739bf2a29b82d3b04aa4eee1c09f957b61964fc8c48e59d1537bcb87b5bdf9c18fa48f9d36cf2b7ede3a1448918a20b5a3167f6ce09881a6cd3dde |
22 |
DIST skopeo-1.6.0.tar.gz 6542541 BLAKE2B d2898d8f80a04340e3174179e2397f7b5e66ed50ec8c11919adf1b0620c74a3a69f8be548c5c3bf081735e1a86dc5ae3390d058ef64fc4b73d8f01074ef4a210 SHA512 13a3660780ce43e31a9840811aaa7626f9d0de9999e52c469a2a58b4bf96bd5e4d67e0f0556ac2baef14c5a662afae1f2d407b260c8833d573326791a2193e48 |
23 |
DIST skopeo-1.6.1.tar.gz 6543397 BLAKE2B 25ca8bc99b03516cb2312c5ce36c13ec87ad34f3831a04e37d5c0f5d4afe2a60ae5d8e6039d8d3651b978459cbdec65f6f43259116368a11b8c6d3478b8ca733 SHA512 92ebe121ae41b2f192e52e24ae05a2f12fedf3483f8d342f6bdde9cb902a291e0297b187c614a64a5c1a62098c7dc59d8a5e5fd1f61b48e4030b163822b47a2b |
24 |
+DIST skopeo-1.7.0.tar.gz 6542347 BLAKE2B 990ad594df9483ad114debeb2882ed3976306d69983ae3d91d807e2654583e7a6599ddf50152df9a937c1c64c1e5a8abb6ed83433036e7efd4ef7e911f99c191 SHA512 7d17f98e86677150fb2ddba9edae18d8b1ac8f06fba575268e6ba54c60f7b371b5e5a9eab1a4fe19da6c7e85eb79c1eef169ad2a39eff979130ee8d141bd8d6b |
25 |
|
26 |
diff --git a/app-containers/skopeo/skopeo-1.7.0.ebuild b/app-containers/skopeo/skopeo-1.7.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..d228fd00e921 |
29 |
--- /dev/null |
30 |
+++ b/app-containers/skopeo/skopeo-1.7.0.ebuild |
31 |
@@ -0,0 +1,52 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+COMMIT=f45ae950aacb7b61ec13223fc22269f2fe270eab |
37 |
+inherit go-module bash-completion-r1 |
38 |
+ |
39 |
+DESCRIPTION="Command line utility foroperations on container images and image repositories" |
40 |
+HOMEPAGE="https://github.com/containers/skopeo" |
41 |
+SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm64" |
46 |
+IUSE="btrfs" |
47 |
+ |
48 |
+COMMON_DEPEND=">=app-crypt/gpgme-1.5.5:= |
49 |
+ >=dev-libs/libassuan-2.4.3:= |
50 |
+ dev-libs/libgpg-error:= |
51 |
+ btrfs? ( >=sys-fs/btrfs-progs-4.0.1 ) |
52 |
+ >=sys-fs/lvm2-2.02.145:=" |
53 |
+DEPEND="${COMMON_DEPEND} |
54 |
+ dev-go/go-md2man" |
55 |
+RDEPEND="${COMMON_DEPEND}" |
56 |
+ |
57 |
+RESTRICT+=" test" |
58 |
+ |
59 |
+src_compile() { |
60 |
+ local BUILDTAGS |
61 |
+ BUILDTAGS="containers_image_ostree_stub $(usex btrfs "" exclude_graphdriver_btrfs)" |
62 |
+ set -- go build -mod=vendor -ldflags "-X main.gitCommit=${COMMIT}" \ |
63 |
+ -gcflags "${GOGCFLAGS}" -tags "${BUILDTAGS}" \ |
64 |
+ -o skopeo ./cmd/skopeo |
65 |
+ echo "$@" |
66 |
+ "$@" || die |
67 |
+ cd docs || die |
68 |
+ for f in *.1.md; do |
69 |
+ go-md2man -in ${f} -out ${f%%.md} || die |
70 |
+ done |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ dobin skopeo |
75 |
+ doman docs/*.1 |
76 |
+ dobashcomp completions/bash/skopeo |
77 |
+ insinto /etc/containers |
78 |
+ newins default-policy.json policy.json |
79 |
+ insinto /etc/containers/registries.d |
80 |
+ doins default.yaml |
81 |
+ keepdir /var/lib/atomic/sigstore |
82 |
+ einstalldocs |
83 |
+} |