commit: 00d883c71b4ac7b1e58ef0159fd7ef1878ceb689 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Jan 31 08:10:51 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jan 31 08:15:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00d883c7
app-containers/docker-registry: add 3.0.0_rc2, go-module.eclass This rc version looks stable enough by upstream issues and reports, and is most likely close to release, but to be sure, it is better to not stable it yet. By using this rc version, upstream migrated to usage of go modules, with go.mod and even vendor/ dir! Bug: https://bugs.gentoo.org/844580 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-containers/docker-registry/Manifest | 1 + .../docker-registry-3.0.0_rc2.ebuild | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/app-containers/docker-registry/Manifest b/app-containers/docker-registry/Manifest index 4cef544bc6a9..5745d188b8f1 100644 --- a/app-containers/docker-registry/Manifest +++ b/app-containers/docker-registry/Manifest @@ -1 +1,2 @@ DIST docker-registry-2.8.2.tar.gz 2008415 BLAKE2B 824325f835b2c7cc18f711204b4a92d21f661129ee2b446e3fc42f0e064b8dde43f119bff29216625cfb5e25aec152225680148ae3fc157886acb1e248b6d3b5 SHA512 c2270c14e09399b10fa474a93855e542b82a7746764ec581a218826581e30b76d4d31ae8f91957b8e48a7c14c054b84091c73679e40dbdff1a5bd0de8b18af83 +DIST docker-registry-3.0.0_rc2.tar.gz 13978331 BLAKE2B 0890b6128898d3fd036f95032f84641e4394b2ab4fc657116fe8a96e40ceccbc418847fac14f425a2649b9417ff7ae5eff1cea6a02f0eb525f5bc46e5e92edb9 SHA512 8a00939d0f9c1fc49e2d1fc2f8f8ba155e1e39a9bb9c19baeadf4070277a36fac29b11e2fc709c151b884eca7e36d11fa304ae02eea1faccdb29015083828448 diff --git a/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild b/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild new file mode 100644 index 000000000000..fea2db887e8e --- /dev/null +++ b/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 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="4890d9e03616d563083fa944aaa083cc49b54ff5" + +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}" + +src_prepare() { + default + + sed -e "s/-s -w/-w/" -i Makefile || 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 +}
