app-containers/docker-registry: add 3.1.1

Closes: https://bugs.gentoo.org/964366
Closes: https://bugs.gentoo.org/960050
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-06-12 11:24:53 +03:00
parent 48f8881d03
commit 7b5c8e8402
2 changed files with 60 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST docker-registry-3.0.0_rc2.tar.gz 13978331 BLAKE2B 0890b6128898d3fd036f95032f84641e4394b2ab4fc657116fe8a96e40ceccbc418847fac14f425a2649b9417ff7ae5eff1cea6a02f0eb525f5bc46e5e92edb9 SHA512 8a00939d0f9c1fc49e2d1fc2f8f8ba155e1e39a9bb9c19baeadf4070277a36fac29b11e2fc709c151b884eca7e36d11fa304ae02eea1faccdb29015083828448
DIST docker-registry-3.0.0_rc3.tar.gz 13985046 BLAKE2B 08956601c9d07f33fd478e7dac11fa4a7ff003ba00b319dfd485ea93e893dfd5064afd82bddbbbe50f6446b34c07587be56acfc25e4b4519ff7ed3f61483c01e SHA512 41883d1b5187fd1ad77cf859e8d28367864c6608021b80ab302510c1e1d9df518653d0d869da61f8f21e73cfca2a69534918d2bddcafbbeda3cb0fcd23825bb7
DIST docker-registry-3.1.1.tar.gz 14394650 BLAKE2B 4d52d66add6e5b468e644f9011211e1b1c728634a29482ef0620b09fe85fb8c1c96b334524cf8c0a55342faf642f794b7713b270f599da224231d60e2e140b84 SHA512 ea38ae2b04c1671b540740d5221edce50dc81363ad88522a02b87ef5660bb1f04503f47d30ea90a7f116f5086dfc84d782a39817a1dc560d5e74b1fdffb58210

View File

@@ -0,0 +1,59 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
MY_PV=${PV/_rc/-rc.}
EGIT_COMMIT="9a8d98b679740cd514aa7e7d84d23d442a5ef54c"
DESCRIPTION="Docker Registry 2.0"
HOMEPAGE="https://github.com/docker/distribution"
SRC_URI="https://github.com/docker/distribution/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/distribution-${MY_PV}
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}"
BDEPEND=">=dev-lang/go-1.25.0"
src_prepare() {
default
sed -e "s/ -s//" -i Makefile || die
# bug 949973
sed -e "s/TestHTTPChecker/_&/" -i health/checks/checks_test.go || die
# flaky test
sed -e "s/TestDeleteOnlyDeletesSubpaths/_&/" -i registry/storage/driver/testsuites/testsuites.go || die
}
src_compile() {
local -x GO_BUILD_FLAGS="-v -mod=vendor"
emake VERSION="${MY_PV}" REVISION="${EGIT_COMMIT}" binaries
}
src_install() {
exeinto /usr/libexec/${PN}
doexe bin/*
insinto /etc/docker/registry
newins cmd/registry/config-example.yml config.yml.example
newinitd "${FILESDIR}/registry.initd" registry
newconfd "${FILESDIR}/registry.confd" registry
systemd_dounit "${FILESDIR}/registry.service"
keepdir /var/log/registry
fowners registry:registry /var/log/registry
insinto /etc/logrotate.d
newins "${FILESDIR}/registry.logrotated" registry
}