summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-01-19 14:04:03 -0800
committerZac Medico <zmedico@gentoo.org>2017-01-19 14:05:02 -0800
commit7a8228ab0ad5e03122a53708387cdb6892ebbb22 (patch)
tree57a6e1ab03285f526872311ebc08ba86c9ccb707 /app-emulation/docker-registry
parentapp-emulation/docker-registry: remove old version 2.5.0 (diff)
downloadgentoo-7a8228ab0ad5e03122a53708387cdb6892ebbb22.tar.gz
gentoo-7a8228ab0ad5e03122a53708387cdb6892ebbb22.tar.bz2
gentoo-7a8228ab0ad5e03122a53708387cdb6892ebbb22.zip
app-emulation/docker-registry: version bump to 2.6.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-emulation/docker-registry')
-rw-r--r--app-emulation/docker-registry/Manifest1
-rw-r--r--app-emulation/docker-registry/docker-registry-2.6.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/app-emulation/docker-registry/Manifest b/app-emulation/docker-registry/Manifest
index ab1bfc66b343..5d094d3949c5 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1 +1,2 @@
DIST docker-registry-2.5.1.tar.gz 1604279 SHA256 d98ebca3518c17d95468b1d40b87861036001301a16a50563203e4b9af72c514 SHA512 5217e2ca361d71806c8ec4da1cf1c2c5dc4160b84c2a98feae50872342d0acf116768a3acf00769bafd66e73c9922c7fe97cbde51955d8aa1d1ed914de2e3d34 WHIRLPOOL 12db4c397f6309a57252cfe19a055f610567c526a05220c9b6ac0d7ff21863520cc126f95b34c8e48fb7ae6ba6a298d0e6b53bf4866cf13bf95fcfb591c538b7
+DIST docker-registry-2.6.0.tar.gz 1578641 SHA256 5e03dbeaf87936b06d3c6f61fb12d9f759b2ca89225eb71b288488a2fd10571c SHA512 589ef6968d4f71a8e0c201c02007fb6cf80a9206e0ba699be6cc6cc29a5bfeb759bc8928a21fb73a3710d747eb99136c228b630889af8870cdfa508e20ff5f4e WHIRLPOOL 71c4c78ee587f5346127eed4cb00d3bb55c565e5d376c0a4c7f7b3ec7c7fbc10377e190bf98833a6ac6e8e43f3a100526554b5f5e24238a1de047fc458edf74d
diff --git a/app-emulation/docker-registry/docker-registry-2.6.0.ebuild b/app-emulation/docker-registry/docker-registry-2.6.0.ebuild
new file mode 100644
index 000000000000..68bc720a6489
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.6.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit golang-vcs-snapshot systemd user
+
+KEYWORDS="~amd64"
+EGO_PN="github.com/docker/distribution/..."
+EGIT_COMMIT="v${PV}"
+SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="Docker Registry 2.0"
+HOMEPAGE="https://${EGO_PN%/*}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+DEPEND=">=dev-lang/go-1.5"
+SVCNAME=registry
+
+pkg_setup() {
+ enewgroup ${SVCNAME}
+ enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_compile() {
+ GOPATH="${S}" GO15VENDOREXPERIMENT=1 \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+ exeinto /usr/libexec/${PN}
+ doexe "${S}"/bin/*
+ insinto /etc/docker/registry
+ newins "${S}"/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/{lib,log}/${SVCNAME}
+ fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}