1 |
commit: c2320916136f52a9f3089f60b21ac3fd87a32ab7 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 20:49:17 2022 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 20:49:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2320916 |
7 |
|
8 |
app-containers/docker-registry: add 2.8.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/872410 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-containers/docker-registry/Manifest | 1 + |
14 |
.../docker-registry/docker-registry-2.8.1.ebuild | 55 ++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/app-containers/docker-registry/Manifest b/app-containers/docker-registry/Manifest |
18 |
index c13a696e584b..1c86f766db1e 100644 |
19 |
--- a/app-containers/docker-registry/Manifest |
20 |
+++ b/app-containers/docker-registry/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST docker-registry-2.7.1.tar.gz 1996699 BLAKE2B 2e22db69f476be5a4688f5b3d6b41fbbf71460351543ae849f707dd5b3d56624f674815a25214002886b057f0859f75fd197bb275a7b3cc8a7787422f716ad0e SHA512 f6baf0e7aa96ebe828c628f7dfd84ee899331c3c1bdab86662aef595b092702b6d9b2c9be766a6de6d153ff4ca55d85c5fd8785a0968f285f56a32a50092c754 |
23 |
+DIST docker-registry-2.8.1.tar.gz 2007611 BLAKE2B abf3e630652f195cf3ad4d07e6d9845000e79d340b0bb8046528bb62592df754c125fd38a92d1af27d068fcd51910f80f356d6a894cb1b97f28d7042af24b898 SHA512 b9c8525051458ff4bf4592ca3ddba83c4325e88c6812ddb28c1567e331c1571f112e3b646ca970f0fe420f3b1d61d00f7151450d7b9948a08733606255731266 |
24 |
|
25 |
diff --git a/app-containers/docker-registry/docker-registry-2.8.1.ebuild b/app-containers/docker-registry/docker-registry-2.8.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..773fa15bb205 |
28 |
--- /dev/null |
29 |
+++ b/app-containers/docker-registry/docker-registry-2.8.1.ebuild |
30 |
@@ -0,0 +1,55 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit golang-vcs-snapshot systemd |
37 |
+ |
38 |
+EGIT_COMMIT="b5ca020cfbe998e5af3457fda087444cf5116496" |
39 |
+EGO_PN="github.com/docker/distribution" |
40 |
+ |
41 |
+DESCRIPTION="Docker Registry 2.0" |
42 |
+HOMEPAGE="https://github.com/docker/distribution" |
43 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="amd64 ~arm64" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ acct-group/registry |
51 |
+ acct-user/registry |
52 |
+" |
53 |
+RDEPEND="${DEPEND}" |
54 |
+ |
55 |
+SVCNAME="registry" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ pushd src/${EGO_PN} || die |
60 |
+ eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch |
61 |
+ sed -e "s/git describe.*/echo ${PV})/" \ |
62 |
+ -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/" \ |
63 |
+ -e "s/-s -w/-w/" \ |
64 |
+ -i Makefile || die |
65 |
+ popd || die |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ export -n GOCACHE XDG_CACHE_HOME #681072 |
70 |
+ GOPATH="${S}" GO_BUILD_FLAGS="-v" emake -C src/${EGO_PN} binaries |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ exeinto /usr/libexec/${PN} |
75 |
+ doexe src/${EGO_PN}/bin/* |
76 |
+ insinto /etc/docker/registry |
77 |
+ newins src/${EGO_PN}/cmd/registry/config-example.yml config.yml.example |
78 |
+ newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}" |
79 |
+ newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}" |
80 |
+ systemd_dounit "${FILESDIR}/${SVCNAME}.service" |
81 |
+ keepdir /var/log/${SVCNAME} |
82 |
+ fowners ${SVCNAME}:${SVCNAME} /var/log/${SVCNAME} |
83 |
+ insinto /etc/logrotate.d |
84 |
+ newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}" |
85 |
+} |