diff options
author | Zac Medico <zmedico@gentoo.org> | 2022-09-22 13:49:17 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2022-09-22 13:49:23 -0700 |
commit | c2320916136f52a9f3089f60b21ac3fd87a32ab7 (patch) | |
tree | 5064c85671b50d7edcf6f720c0e47d84926534b5 /app-containers/docker-registry/docker-registry-2.8.1.ebuild | |
parent | dev-python/ini2toml: Keyword 0.11-r1 mips, #861344 (diff) | |
download | gentoo-c2320916136f52a9f3089f60b21ac3fd87a32ab7.tar.gz gentoo-c2320916136f52a9f3089f60b21ac3fd87a32ab7.tar.bz2 gentoo-c2320916136f52a9f3089f60b21ac3fd87a32ab7.zip |
app-containers/docker-registry: add 2.8.1
Bug: https://bugs.gentoo.org/872410
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-containers/docker-registry/docker-registry-2.8.1.ebuild')
-rw-r--r-- | app-containers/docker-registry/docker-registry-2.8.1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/app-containers/docker-registry/docker-registry-2.8.1.ebuild b/app-containers/docker-registry/docker-registry-2.8.1.ebuild new file mode 100644 index 000000000000..773fa15bb205 --- /dev/null +++ b/app-containers/docker-registry/docker-registry-2.8.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit golang-vcs-snapshot systemd + +EGIT_COMMIT="b5ca020cfbe998e5af3457fda087444cf5116496" +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}" +} |