commit:     5b810d9bb8f91ee1be793de745d9d60728101adc
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  3 16:53:09 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  3 17:02:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b810d9b

app-containers/docker-registry: add 2.8.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-containers/docker-registry/Manifest            |  1 +
 .../docker-registry/docker-registry-2.8.2.ebuild   | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/app-containers/docker-registry/Manifest 
b/app-containers/docker-registry/Manifest
index 194bfbee9b57..a5925694786d 100644
--- a/app-containers/docker-registry/Manifest
+++ b/app-containers/docker-registry/Manifest
@@ -1 +1,2 @@
 DIST docker-registry-2.8.1.tar.gz 2007611 BLAKE2B 
abf3e630652f195cf3ad4d07e6d9845000e79d340b0bb8046528bb62592df754c125fd38a92d1af27d068fcd51910f80f356d6a894cb1b97f28d7042af24b898
 SHA512 
b9c8525051458ff4bf4592ca3ddba83c4325e88c6812ddb28c1567e331c1571f112e3b646ca970f0fe420f3b1d61d00f7151450d7b9948a08733606255731266
+DIST docker-registry-2.8.2.tar.gz 2008415 BLAKE2B 
824325f835b2c7cc18f711204b4a92d21f661129ee2b446e3fc42f0e064b8dde43f119bff29216625cfb5e25aec152225680148ae3fc157886acb1e248b6d3b5
 SHA512 
c2270c14e09399b10fa474a93855e542b82a7746764ec581a218826581e30b76d4d31ae8f91957b8e48a7c14c054b84091c73679e40dbdff1a5bd0de8b18af83

diff --git a/app-containers/docker-registry/docker-registry-2.8.2.ebuild 
b/app-containers/docker-registry/docker-registry-2.8.2.ebuild
new file mode 100644
index 000000000000..76dd3dbafb5f
--- /dev/null
+++ b/app-containers/docker-registry/docker-registry-2.8.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit golang-vcs-snapshot systemd
+
+EGIT_COMMIT="7c354a4b40feeea21d7eeae4de91c8ff7951e672"
+EGO_PN="github.com/docker/distribution"
+
+DESCRIPTION="Docker Registry 2.0"
+HOMEPAGE="https://github.com/docker/distribution";
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+DEPEND="
+       acct-group/registry
+       acct-user/registry
+"
+RDEPEND="${DEPEND}"
+
+SVCNAME="registry"
+
+src_prepare() {
+       default
+       pushd src/${EGO_PN} || die
+       eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch
+       sed -e "s/git describe.*/echo ${PV})/" \
+               -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/" \
+               -e "s/-s -w/-w/" \
+               -i Makefile || die
+       popd || die
+}
+
+src_compile() {
+       export -n GOCACHE XDG_CACHE_HOME #681072
+       GOPATH="${S}" GO_BUILD_FLAGS="-v" emake -C src/${EGO_PN} binaries
+}
+
+src_install() {
+       exeinto /usr/libexec/${PN}
+       doexe src/${EGO_PN}/bin/*
+       insinto /etc/docker/registry
+       newins src/${EGO_PN}/cmd/registry/config-example.yml config.yml.example
+       newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
+       newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
+       systemd_dounit "${FILESDIR}/${SVCNAME}.service"
+       keepdir /var/log/${SVCNAME}
+       fowners ${SVCNAME}:${SVCNAME} /var/log/${SVCNAME}
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}

Reply via email to