summaryrefslogtreecommitdiff
path: root/app-containers/docker-registry
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-22 23:28:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-22 23:28:46 +0100
commit0bf5c5a0b1ff93d1f4aaa8cdea6acda5e42c2068 (patch)
tree535db46356d46fc3f3c97342cb3691c0317e52d9 /app-containers/docker-registry
parentd79ab35b7ac170babebe8bc151fe5d037c16285c (diff)
gentoo auto-resync : 22:09:2022 - 23:28:46
Diffstat (limited to 'app-containers/docker-registry')
-rw-r--r--app-containers/docker-registry/Manifest2
-rw-r--r--app-containers/docker-registry/docker-registry-2.8.1.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/app-containers/docker-registry/Manifest b/app-containers/docker-registry/Manifest
index b3f8073448e4..d3e1198a5ee7 100644
--- a/app-containers/docker-registry/Manifest
+++ b/app-containers/docker-registry/Manifest
@@ -4,5 +4,7 @@ AUX registry.initd 606 BLAKE2B ed8af2651d91be13578edb561c067cfd3e72dfe42a6111be8
AUX registry.logrotated 89 BLAKE2B c16fab4c6a3c4fd9f48370ae30505408a49e07c2a7ea7fc119717efcd840ad489c92855e27a5546219b3cdeb257642eb65abc2d544859295688925ae2e94ecb3 SHA512 f824b33a1fa38802a8aa79599843b0ea065603799823352e9515c50bfc61c43a03e9eb5327f9c687b8c3864fc633ad1a46bff9e91f4c54a46a09e67d2f6f833b
AUX registry.service 323 BLAKE2B 1be481d08a283793d10ef870fc299e1c284087878e67ec54f44e662c616127bc411fdde19659cf7acd69787054c624c5c5206434c36b4e5a0fcceaf79c2e78f0 SHA512 67d2b69c1fc497774e3171628fa73b9b9521e19c76414e32721994f2ba614bd3c6896c578c9d9b8af0ad4972b9da0c504ef787a7585a550be4bfe1bd40eafc15
DIST docker-registry-2.7.1.tar.gz 1996699 BLAKE2B 2e22db69f476be5a4688f5b3d6b41fbbf71460351543ae849f707dd5b3d56624f674815a25214002886b057f0859f75fd197bb275a7b3cc8a7787422f716ad0e SHA512 f6baf0e7aa96ebe828c628f7dfd84ee899331c3c1bdab86662aef595b092702b6d9b2c9be766a6de6d153ff4ca55d85c5fd8785a0968f285f56a32a50092c754
+DIST docker-registry-2.8.1.tar.gz 2007611 BLAKE2B abf3e630652f195cf3ad4d07e6d9845000e79d340b0bb8046528bb62592df754c125fd38a92d1af27d068fcd51910f80f356d6a894cb1b97f28d7042af24b898 SHA512 b9c8525051458ff4bf4592ca3ddba83c4325e88c6812ddb28c1567e331c1571f112e3b646ca970f0fe420f3b1d61d00f7151450d7b9948a08733606255731266
EBUILD docker-registry-2.7.1-r1.ebuild 1463 BLAKE2B 21bbb8b8842540b479e22f7b7e5ce6c2c0f4f4c5ac37a64718c87c6abdef2a550b97ed495d35360d92d9545fe003656366713b27eff9b217859f83aaf834d48c SHA512 da38b17318bc05a0de3980dc1e4815dee8b459dab435993ac2b94c75a1fecfbbcd855c04809627e5d08b477a8bfe381425bdb9f85c6ff5558316e44b65fed80b
+EBUILD docker-registry-2.8.1.ebuild 1463 BLAKE2B c955696e29c7bc97db1849a9abe1716d69db7d68610b29640e3aa9d924ce29da11434bcf71a4b47620980eff01db584750d8ff715b770aef51f73fc525bc3a4b SHA512 c24c19f94c247eaeb0d64c12614deab73b8992727e580277c62c91228a4b12c2cf0261dcf35e00c616996ae61e3d8539b7269d3629cf985f6ba7f273568e5732
MISC metadata.xml 311 BLAKE2B 16d2abf82e5ae5b180aa81a3d5e1f0f7f638b30d9a5053443af8d512d8094d5923d0a74f58cdc77d6c209128669eaadde427ff50309d37fa275b643887d0df70 SHA512 b574810da841eb8b0f9e48a1f013e7e3705097f2ea6f9a255e57d8ce2800f1b507b5cdbdcf0ffedc339227f8dac9d37fb2ae4bb39cd91895f82674f246a432e3
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}"
+}