[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2021-07-18 Thread Conrad Kostecki
commit: bd6f0f26fb36d06225d585e3e9ade4b2c7b91c23
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Jul 18 16:39:20 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Jul 18 16:39:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd6f0f26

app-emulation/docker-registry: drop old version

Closes: https://bugs.gentoo.org/781215
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 .../docker-registry/docker-registry-2.7.1.ebuild   | 50 --
 1 file changed, 50 deletions(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
deleted file mode 100644
index 76e7bd12811..000
--- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit golang-vcs-snapshot systemd user
-
-KEYWORDS="amd64 ~arm64"
-EGO_PN="github.com/docker/distribution"
-EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
-SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-DESCRIPTION="Docker Registry 2.0"
-HOMEPAGE="https://github.com/docker/distribution;
-LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
-SLOT="0"
-IUSE=""
-SVCNAME=registry
-
-pkg_setup() {
-   enewgroup ${SVCNAME}
-   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
-}
-
-src_prepare() {
-   default
-   pushd src/${EGO_PN} || die
-   eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch
-   sed -i -e "s/git describe.*/echo ${PV})/"\
-   -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/"\
-   -e "s/-s -w/-w/" 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/{lib,log}/${SVCNAME}
-   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
-   insinto /etc/logrotate.d
-   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
-}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2021-07-18 Thread Conrad Kostecki
commit: d8d84438d9d7854b4c38c2c0ddd2f82ebca7060f
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Jul 18 16:38:40 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Jul 18 16:38:40 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8d84438

app-emulation/docker-registry: migrate to GLEP 81

Bug: https://bugs.gentoo.org/781215
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 .../docker-registry-2.7.1-r1.ebuild| 55 ++
 1 file changed, 55 insertions(+)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1-r1.ebuild
new file mode 100644
index 000..78708f32741
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.7.1-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit golang-vcs-snapshot systemd
+
+EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
+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}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2020-10-06 Thread Sam James
commit: 40af732c9550316bce18d82689796fdb6c50eebb
Author: Sam James  gentoo  org>
AuthorDate: Tue Oct  6 13:42:02 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Oct  6 13:42:02 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40af732c

app-emulation/docker-registry: Keyword 2.7.1 arm64, #741674

Signed-off-by: Sam James  gentoo.org>

 app-emulation/docker-registry/docker-registry-2.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
index 76cfd9e08ae..76e7bd12811 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=6
 inherit golang-vcs-snapshot systemd user
 
-KEYWORDS="amd64"
+KEYWORDS="amd64 ~arm64"
 EGO_PN="github.com/docker/distribution"
 EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2020-09-11 Thread Zac Medico
commit: 04a6f4ace95a69acd800ee35679b979a095e30c4
Author: Zac Medico  gentoo  org>
AuthorDate: Fri Sep 11 20:37:54 2020 +
Commit: Zac Medico  gentoo  org>
CommitDate: Fri Sep 11 20:38:33 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04a6f4ac

app-emulation/docker-registry: amd64 stable

Closes: https://bugs.gentoo.org/741674
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Zac Medico  gentoo.org>

 app-emulation/docker-registry/docker-registry-2.7.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
index 23e7af931a1..76cfd9e08ae 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 inherit golang-vcs-snapshot systemd user
 
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
 EGO_PN="github.com/docker/distribution"
 EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/files/

2019-09-28 Thread Zac Medico
commit: e14174e202816166c529e6f9348edcfb744db11a
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Sep 28 07:41:37 2019 +
Commit: Zac Medico  gentoo  org>
CommitDate: Sat Sep 28 21:56:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e14174e2

app-emulation/docker-registry: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/13066
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Zac Medico  gentoo.org>

 ...ocker-registry-2.6.1-notifications-expvar.patch | 64 --
 1 file changed, 64 deletions(-)

diff --git 
a/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
 
b/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
deleted file mode 100644
index 1d40edf1f0c..000
--- 
a/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 9a58c91051e03b46f1461e371a7bf527c1284612 Mon Sep 17 00:00:00 2001
-From: Noah Treuhaft 
-Date: Wed, 8 Feb 2017 11:38:44 -0800
-Subject: [PATCH] notifications: fix expvar for Go 1.7
-
-Remove EndpointConfig.Transport from the return value of the
-registry.notifications.endpoints expvar.Func.  It results in an empty
-value for that expvar variable under Go 1.7 because it is a non-nil
-*http.Transport, which Go 1.7 can no longer encode as JSON.
-
-Signed-off-by: Noah Treuhaft 

- notifications/endpoint.go |  2 +-
- notifications/metrics_test.go | 28 
- 2 files changed, 29 insertions(+), 1 deletion(-)
- create mode 100644 notifications/metrics_test.go
-
-diff --git a/src/github.com/docker/distribution/notifications/endpoint.go 
b/src/github.com/docker/distribution/notifications/endpoint.go
-index 29a9e27b5..44d0f6d7b 100644
 a/src/github.com/docker/distribution/notifications/endpoint.go
-+++ b/src/github.com/docker/distribution/notifications/endpoint.go
-@@ -13,7 +13,7 @@ type EndpointConfig struct {
-   Threshold int
-   Backoff   time.Duration
-   IgnoredMediaTypes []string
--  Transport *http.Transport
-+  Transport *http.Transport `json:"-"`
- }
- 
- // defaults set any zero-valued fields to a reasonable default.
-diff --git a/src/github.com/docker/distribution/notifications/metrics_test.go 
b/src/github.com/docker/distribution/notifications/metrics_test.go
-new file mode 100644
-index 0..03a08e2c8
 /dev/null
-+++ b/notifications/metrics_test.go
-@@ -0,0 +1,28 @@
-+package notifications
-+
-+import (
-+  "encoding/json"
-+  "expvar"
-+  "testing"
-+)
-+
-+func TestMetricsExpvar(t *testing.T) {
-+  endpointsVar := 
expvar.Get("registry").(*expvar.Map).Get("notifications").(*expvar.Map).Get("endpoints")
-+
-+  var v interface{}
-+  if err := json.Unmarshal([]byte(endpointsVar.String()), ); err != nil 
{
-+  t.Fatalf("unexpected error unmarshaling endpoints: %v", err)
-+  }
-+  if v != nil {
-+  t.Fatalf("expected nil, got %#v", v)
-+  }
-+
-+  NewEndpoint("x", "y", EndpointConfig{})
-+
-+  if err := json.Unmarshal([]byte(endpointsVar.String()), ); err != nil 
{
-+  t.Fatalf("unexpected error unmarshaling endpoints: %v", err)
-+  }
-+  if slice, ok := v.([]interface{}); !ok || len(slice) != 1 {
-+  t.Logf("expected one-element []interface{}, got %#v", v)
-+  }
-+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2019-09-18 Thread Zac Medico
commit: 400b0c2e011d9466f5b53f709c5c0963bddd0c3e
Author: Zac Medico  gentoo  org>
AuthorDate: Thu Sep 19 02:04:58 2019 +
Commit: Zac Medico  gentoo  org>
CommitDate: Thu Sep 19 02:04:58 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400b0c2e

app-emulation/docker-registry: Remove old versions

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Zac Medico  gentoo.org>

 app-emulation/docker-registry/Manifest |  2 -
 .../docker-registry-2.6.2-r1.ebuild| 43 ---
 .../docker-registry-2.7.0-r1.ebuild| 48 --
 .../docker-registry/docker-registry-2.7.0.ebuild   | 41 --
 4 files changed, 134 deletions(-)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 9bf0d949d91..c13a696e584 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,3 +1 @@
-DIST docker-registry-2.6.2.tar.gz 1579760 BLAKE2B 
d0e067f2e9124847b5e362f23ca7d67655fbf0a6227efc3fd9073d5360389d6d8531e5709b52225c54e6e3097a2d5d79102e27fd09412b95d2e5d8a4a30dde2d
 SHA512 
a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60
-DIST docker-registry-2.7.0.tar.gz 1996485 BLAKE2B 
49022546b72a1ea2b457a3dc059d8940bfba3070208b2962f8acd1351312d568d6facc1690ae8ee78742b5647c3a84bd6538a9eb0c279aec0a8dfae2c823fa61
 SHA512 
72bf5f0953c58e4d1adf6427ee13a9456204ab278d4489277e4dd1b3a3df6717cc02c966cdfcdf77d86e769209fa18e377e0b12a6c02b9f58980185e9844aec6
 DIST docker-registry-2.7.1.tar.gz 1996699 BLAKE2B 
2e22db69f476be5a4688f5b3d6b41fbbf71460351543ae849f707dd5b3d56624f674815a25214002886b057f0859f75fd197bb275a7b3cc8a7787422f716ad0e
 SHA512 
f6baf0e7aa96ebe828c628f7dfd84ee899331c3c1bdab86662aef595b092702b6d9b2c9be766a6de6d153ff4ca55d85c5fd8785a0968f285f56a32a50092c754

diff --git a/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
deleted file mode 100644
index 863b9ac5082..000
--- a/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-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://github.com/docker/distribution;
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-SVCNAME=registry
-
-PATCHES=( "${FILESDIR}/${PN}-2.6.1-notifications-expvar.patch" )
-
-pkg_setup() {
-   enewgroup ${SVCNAME}
-   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
-}
-
-src_compile() {
-   export -n GOCACHE XDG_CACHE_HOME #681072
-   GOPATH="${S}" \
-   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
-}
-
-src_install() {
-   exeinto /usr/libexec/${PN}
-   doexe 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/{lib,log}/${SVCNAME}
-   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
-   insinto /etc/logrotate.d
-   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
-}

diff --git a/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
deleted file mode 100644
index c117f1e1314..000
--- a/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-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://github.com/docker/distribution;
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-SVCNAME=registry
-
-pkg_setup() {
-   enewgroup ${SVCNAME}
-   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
-}
-
-src_prepare() {
-   default
-   pushd src/${EGO_PN} || die
-   eapply "${FILESDIR}"/${P}-notification-metrics.patch
-   popd || die
-}
-
-src_compile() {
-   export -n GOCACHE XDG_CACHE_HOME #681072
-   GOPATH="${S}" \
-   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
-}
-
-src_install() {
-   exeinto /usr/libexec/${PN}
-   doexe bin/*
-   insinto /etc/docker/registry
-   newins src/${EGO_PN}/cmd/registry/config-example.yml 

[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2019-09-18 Thread Zac Medico
commit: b1d74fd5116887fec2a0d8206d56e9a870c4fcc8
Author: Zac Medico  gentoo  org>
AuthorDate: Thu Sep 19 02:32:37 2019 +
Commit: Zac Medico  gentoo  org>
CommitDate: Thu Sep 19 02:33:25 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1d74fd5

app-emulation/docker-registry: LICENSE: account for vendored software

Reported-by: Michał Górny  gentoo.org>
Bug: https://bugs.gentoo.org/694890
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Zac Medico  gentoo.org>

 app-emulation/docker-registry/docker-registry-2.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
index 57b97ad055d..23e7af931a1 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
@@ -10,7 +10,7 @@ EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 DESCRIPTION="Docker Registry 2.0"
 HOMEPAGE="https://github.com/docker/distribution;
-LICENSE="Apache-2.0"
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
 SLOT="0"
 IUSE=""
 SVCNAME=registry



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2019-03-20 Thread Zac Medico
commit: 496d7b5ac1e6a32b7cdf799aa2ba2c2b3dcba575
Author: Zac Medico  gentoo  org>
AuthorDate: Wed Mar 20 22:45:22 2019 +
Commit: Zac Medico  gentoo  org>
CommitDate: Wed Mar 20 22:45:40 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496d7b5a

app-emulation/docker-registry: filter GOCACHE vars (bug 681072)

Reported-by: Toralf Förster  gentoo.org>
Closes: https://bugs.gentoo.org/681072
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Zac Medico  gentoo.org>

 app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild | 3 ++-
 app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild | 3 ++-
 app-emulation/docker-registry/docker-registry-2.7.0.ebuild| 3 ++-
 app-emulation/docker-registry/docker-registry-2.7.1.ebuild| 1 +
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
index 6ea2a86bd59..863b9ac5082 100644
--- a/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -23,6 +23,7 @@ pkg_setup() {
 }
 
 src_compile() {
+   export -n GOCACHE XDG_CACHE_HOME #681072
GOPATH="${S}" \
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
 }

diff --git a/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
index 7f36e363292..c117f1e1314 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -28,6 +28,7 @@ src_prepare() {
 }
 
 src_compile() {
+   export -n GOCACHE XDG_CACHE_HOME #681072
GOPATH="${S}" \
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
 }

diff --git a/app-emulation/docker-registry/docker-registry-2.7.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.0.ebuild
index 152ac01305b..90b39c280c9 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.0.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -21,6 +21,7 @@ pkg_setup() {
 }
 
 src_compile() {
+   export -n GOCACHE XDG_CACHE_HOME #681072
GOPATH="${S}" \
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
 }

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
index 3ab8dea6448..57b97ad055d 100644
--- a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
@@ -31,6 +31,7 @@ src_prepare() {
 }
 
 src_compile() {
+   export -n GOCACHE XDG_CACHE_HOME #681072
GOPATH="${S}" GO_BUILD_FLAGS="-v" emake -C src/${EGO_PN} binaries
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2019-01-18 Thread Manuel Rüger
commit: 8c16279f2ac3ec405007a7d5ca9e679e8cfbc8ec
Author: Manuel Rüger  gentoo  org>
AuthorDate: Fri Jan 18 12:53:04 2019 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Fri Jan 18 12:53:33 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c16279f

app-emulation/docker-registry: Version bump to 2.7.1

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Manuel Rüger  gentoo.org>

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.7.1.ebuild   | 49 ++
 2 files changed, 50 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 0b420bbbe03..9bf0d949d91 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,2 +1,3 @@
 DIST docker-registry-2.6.2.tar.gz 1579760 BLAKE2B 
d0e067f2e9124847b5e362f23ca7d67655fbf0a6227efc3fd9073d5360389d6d8531e5709b52225c54e6e3097a2d5d79102e27fd09412b95d2e5d8a4a30dde2d
 SHA512 
a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60
 DIST docker-registry-2.7.0.tar.gz 1996485 BLAKE2B 
49022546b72a1ea2b457a3dc059d8940bfba3070208b2962f8acd1351312d568d6facc1690ae8ee78742b5647c3a84bd6538a9eb0c279aec0a8dfae2c823fa61
 SHA512 
72bf5f0953c58e4d1adf6427ee13a9456204ab278d4489277e4dd1b3a3df6717cc02c966cdfcdf77d86e769209fa18e377e0b12a6c02b9f58980185e9844aec6
+DIST docker-registry-2.7.1.tar.gz 1996699 BLAKE2B 
2e22db69f476be5a4688f5b3d6b41fbbf71460351543ae849f707dd5b3d56624f674815a25214002886b057f0859f75fd197bb275a7b3cc8a7787422f716ad0e
 SHA512 
f6baf0e7aa96ebe828c628f7dfd84ee899331c3c1bdab86662aef595b092702b6d9b2c9be766a6de6d153ff4ca55d85c5fd8785a0968f285f56a32a50092c754

diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
new file mode 100644
index 000..3ab8dea6448
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit golang-vcs-snapshot systemd user
+
+KEYWORDS="~amd64"
+EGO_PN="github.com/docker/distribution"
+EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="Docker Registry 2.0"
+HOMEPAGE="https://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_prepare() {
+   default
+   pushd src/${EGO_PN} || die
+   eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch
+   sed -i -e "s/git describe.*/echo ${PV})/"\
+   -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/"\
+   -e "s/-s -w/-w/" Makefile || die
+   popd || die
+}
+
+src_compile() {
+   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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/, app-emulation/docker-registry/files/

2018-12-14 Thread Manuel Rüger
commit: 4f6a9e4e9b4b483cfdfc3dcf42ea1c45e5f366f0
Author: Manuel Rüger  gentoo  org>
AuthorDate: Fri Dec 14 16:48:40 2018 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Fri Dec 14 16:48:40 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f6a9e4e

app-emulation/docker-registry: Apply patch to provide more notification metrics

Signed-off-by: Manuel Rüger  gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

 .../docker-registry-2.7.0-r1.ebuild|  47 +++
 ...ocker-registry-2.7.0-notification-metrics.patch | 398 +
 2 files changed, 445 insertions(+)

diff --git a/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
new file mode 100644
index 000..7f36e363292
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.7.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+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://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_prepare() {
+   default
+   pushd src/${EGO_PN} || die
+   eapply "${FILESDIR}"/${P}-notification-metrics.patch
+   popd || die
+}
+
+src_compile() {
+   GOPATH="${S}" \
+   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
+}
+
+src_install() {
+   exeinto /usr/libexec/${PN}
+   doexe 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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}

diff --git 
a/app-emulation/docker-registry/files/docker-registry-2.7.0-notification-metrics.patch
 
b/app-emulation/docker-registry/files/docker-registry-2.7.0-notification-metrics.patch
new file mode 100644
index 000..8adf364ce16
--- /dev/null
+++ 
b/app-emulation/docker-registry/files/docker-registry-2.7.0-notification-metrics.patch
@@ -0,0 +1,398 @@
+From 7b2292ee20c5d49053cc5262dfbc99ce121b9b74 Mon Sep 17 00:00:00 2001
+From: tifayuki 
+Date: Tue, 13 Feb 2018 13:30:56 -0800
+Subject: [PATCH 1/4] Add notification metrics
+
+It adds notification related prometheus metrics, including:
+  - total count for events/success/failure/error
+  - total count for notification per each status code
+  - gauge of the pending notification queue
+
+Signed-off-by: tifayuki 
+---
+ metrics/prometheus.go|  3 +++
+ notifications/metrics.go | 28 
+ 2 files changed, 31 insertions(+)
+
+diff --git a/metrics/prometheus.go b/metrics/prometheus.go
+index b5a532144..91b32b23d 100644
+--- a/metrics/prometheus.go
 b/metrics/prometheus.go
+@@ -10,4 +10,7 @@ const (
+ var (
+   // StorageNamespace is the prometheus namespace of blob/cache related 
operations
+   StorageNamespace = metrics.NewNamespace(NamespacePrefix, "storage", nil)
++
++  // NotificationsNamespace is the prometheus namespace of notification 
related metrics
++  NotificationsNamespace = metrics.NewNamespace(NamespacePrefix, 
"notifications", nil)
+ )
+diff --git a/notifications/metrics.go b/notifications/metrics.go
+index a20af1687..69960e9cb 100644
+--- a/notifications/metrics.go
 b/notifications/metrics.go
+@@ -5,6 +5,18 @@ import (
+   "fmt"
+   "net/http"
+   "sync"
++
++  prometheus "github.com/docker/distribution/metrics"
++  "github.com/docker/go-metrics"
++)
++
++var (
++  // eventsCounter counts total events of incoming, success, failure, and 
errors
++  eventsCounter = 
prometheus.NotificationsNamespace.NewLabeledCounter("events", "The number of 
total events", "type")
++  // pendingGauge measures the pending queue size
++  pendingGauge = prometheus.NotificationsNamespace.NewGauge("pending", 
"The gauge of pending events in queue", metrics.Total)
++  // statusCounter counts the total notification call per each status code
++  statusCounter = 
prometheus.NotificationsNamespace.NewLabeledCounter("status", "The number of 
status code", "code")
+ )
+ 
+ // EndpointMetrics track various actions taken by the endpoint, typically by
+@@ -61,6 +73,9 @@ func (emsl *endpointMetricsHTTPStatusListener) 
success(status int, events ...Eve
+   defer 

[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2018-12-03 Thread Manuel Rüger
commit: 763c201b20e92068be8664fdffafa0f13bb40303
Author: Manuel Rüger  gentoo  org>
AuthorDate: Tue Dec  4 01:07:18 2018 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Tue Dec  4 01:07:18 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763c201b

app-emulation/docker-registry: Version bump to 2.7.0

Signed-off-by: Manuel Rüger  gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.7.0.ebuild   | 40 ++
 2 files changed, 41 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 68d14743b41..0b420bbbe03 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1 +1,2 @@
 DIST docker-registry-2.6.2.tar.gz 1579760 BLAKE2B 
d0e067f2e9124847b5e362f23ca7d67655fbf0a6227efc3fd9073d5360389d6d8531e5709b52225c54e6e3097a2d5d79102e27fd09412b95d2e5d8a4a30dde2d
 SHA512 
a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60
+DIST docker-registry-2.7.0.tar.gz 1996485 BLAKE2B 
49022546b72a1ea2b457a3dc059d8940bfba3070208b2962f8acd1351312d568d6facc1690ae8ee78742b5647c3a84bd6538a9eb0c279aec0a8dfae2c823fa61
 SHA512 
72bf5f0953c58e4d1adf6427ee13a9456204ab278d4489277e4dd1b3a3df6717cc02c966cdfcdf77d86e769209fa18e377e0b12a6c02b9f58980185e9844aec6

diff --git a/app-emulation/docker-registry/docker-registry-2.7.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.7.0.ebuild
new file mode 100644
index 000..152ac01305b
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.7.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+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://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_compile() {
+   GOPATH="${S}" \
+   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
+}
+
+src_install() {
+   exeinto /usr/libexec/${PN}
+   doexe 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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/, app-emulation/docker-registry/files/

2017-09-01 Thread Zac Medico
commit: 0eea13ca58aba2306a979fdc0bd307bccedbfe60
Author: Zac Medico  gentoo  org>
AuthorDate: Fri Sep  1 22:09:01 2017 +
Commit: Zac Medico  gentoo  org>
CommitDate: Fri Sep  1 22:13:24 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eea13ca

app-emulation/docker-registry: revbump to 2.6.2-r1 for bug 629202

Package-Manager: Portage-2.3.8, Repoman-2.3.2

 ...y-2.6.2.ebuild => docker-registry-2.6.2-r1.ebuild} |  0
 app-emulation/docker-registry/files/registry.initd| 19 +++
 2 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.6.2.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild
similarity index 100%
rename from app-emulation/docker-registry/docker-registry-2.6.2.ebuild
rename to app-emulation/docker-registry/docker-registry-2.6.2-r1.ebuild

diff --git a/app-emulation/docker-registry/files/registry.initd 
b/app-emulation/docker-registry/files/registry.initd
index 43637a9dbe8..b81303c624d 100644
--- a/app-emulation/docker-registry/files/registry.initd
+++ b/app-emulation/docker-registry/files/registry.initd
@@ -1,24 +1,19 @@
 #!/sbin/openrc-run
-# Copyright 2016 Gentoo Foundation
+# Copyright 2016-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 description="Docker Registry 2.0"
-pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
-user=${user:-${SVCNAME}}
-group=${group:-${SVCNAME}}
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
 
-command="/usr/libexec/docker-${SVCNAME}/${SVCNAME}"
+command="/usr/libexec/docker-${RC_SVCNAME}/${RC_SVCNAME}"
 command_args="${command_args:-serve /etc/docker/registry/config.yml}"
 command_background="true"
 start_stop_daemon_args="--user ${user} --group ${group} \
-   --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
-   --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+   --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+   --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
 
 depend() {
need net
-   after net
-}
-
-start_pre() {
-   checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
 }



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2017-07-24 Thread Manuel Rüger
commit: f981f6ece867ed551f5546f56040e6142ae9ac08
Author: Manuel Rüger  gentoo  org>
AuthorDate: Mon Jul 24 14:13:39 2017 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Mon Jul 24 14:13:39 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f981f6ec

app-emulation/docker-registry: Version bump to 2.6.2

Gentoo-Bug: 626038
Package-Manager: Portage-2.3.6, Repoman-2.3.3

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.6.2.ebuild   | 42 ++
 2 files changed, 43 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 653e661f8fc..f6fdc3b5ca5 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,3 +1,4 @@
 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
 DIST docker-registry-2.6.1.tar.gz 1577794 SHA256 
21d1b5fd4001c45d125d6345c387f1840f984c069b5556d0c8ad1850d6e25b9f SHA512 
a2175cb5ab049599e1bdae7026dc84e14b79883eca3ceaafda54497a1743103f125f65fa3922c003363dd86aa1422f539aff8b17746b9768968fef757e931c36
 WHIRLPOOL 
3e1c5684462d6e31d3f28d67f4ab2dacf8037b793c11ecca49846ca4124a0ce54b9481471cb77190dc3b63de882571b88beba1bb5d7d04b8cbb92b8a597b0fed
+DIST docker-registry-2.6.2.tar.gz 1579760 SHA256 
963e4e98a99f484c903b888e2661a10794e79906ccf9a6a9b17172f9c1705f0d SHA512 
a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60
 WHIRLPOOL 
55f9e7cc5a643be1d791e6d19610db9a8a4c59f7c73ae105cce11917b12691418fa2d310103788d06d74c6bfc809d20de9f5e1a1ab4b3861062db93c8861158f

diff --git a/app-emulation/docker-registry/docker-registry-2.6.2.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.2.ebuild
new file mode 100644
index 000..6ea2a86bd59
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.6.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+PATCHES=( "${FILESDIR}/${PN}-2.6.1-notifications-expvar.patch" )
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_compile() {
+   GOPATH="${S}" \
+   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die
+}
+
+src_install() {
+   exeinto /usr/libexec/${PN}
+   doexe 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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2017-07-24 Thread Manuel Rüger
commit: 16fff9d629363563ef28bb1ff7e3fee2a80a946d
Author: Manuel Rüger  gentoo  org>
AuthorDate: Mon Jul 24 14:14:50 2017 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Mon Jul 24 14:14:50 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16fff9d6

app-emulation/docker-registry: Remove old

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 app-emulation/docker-registry/Manifest |  3 --
 .../docker-registry/docker-registry-2.5.1.ebuild   | 41 -
 .../docker-registry/docker-registry-2.6.0.ebuild   | 41 -
 .../docker-registry-2.6.1-r1.ebuild| 42 --
 .../docker-registry/docker-registry-2.6.1.ebuild   | 40 -
 5 files changed, 167 deletions(-)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index f6fdc3b5ca5..5f005fdec41 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,4 +1 @@
-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
-DIST docker-registry-2.6.1.tar.gz 1577794 SHA256 
21d1b5fd4001c45d125d6345c387f1840f984c069b5556d0c8ad1850d6e25b9f SHA512 
a2175cb5ab049599e1bdae7026dc84e14b79883eca3ceaafda54497a1743103f125f65fa3922c003363dd86aa1422f539aff8b17746b9768968fef757e931c36
 WHIRLPOOL 
3e1c5684462d6e31d3f28d67f4ab2dacf8037b793c11ecca49846ca4124a0ce54b9481471cb77190dc3b63de882571b88beba1bb5d7d04b8cbb92b8a597b0fed
 DIST docker-registry-2.6.2.tar.gz 1579760 SHA256 
963e4e98a99f484c903b888e2661a10794e79906ccf9a6a9b17172f9c1705f0d SHA512 
a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60
 WHIRLPOOL 
55f9e7cc5a643be1d791e6d19610db9a8a4c59f7c73ae105cce11917b12691418fa2d310103788d06d74c6bfc809d20de9f5e1a1ab4b3861062db93c8861158f

diff --git a/app-emulation/docker-registry/docker-registry-2.5.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.5.1.ebuild
deleted file mode 100644
index c0630843dc6..000
--- a/app-emulation/docker-registry/docker-registry-2.5.1.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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}"
-}

diff --git a/app-emulation/docker-registry/docker-registry-2.6.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.0.ebuild
deleted file mode 100644
index bade450252a..000
--- a/app-emulation/docker-registry/docker-registry-2.6.0.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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
-

[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/, app-emulation/docker-registry/files/

2017-05-19 Thread Manuel Rüger
commit: 21eba0700591adc9435adc2b75bbdbf98915
Author: Manuel Rüger  gentoo  org>
AuthorDate: Fri May 19 14:47:59 2017 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Fri May 19 14:47:59 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21eba070

app-emulation/docker-registry: Include patch to fix json in notifications 
endpoint

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 .../docker-registry-2.6.1-r1.ebuild| 42 ++
 ...ocker-registry-2.6.1-notifications-expvar.patch | 64 ++
 2 files changed, 106 insertions(+)

diff --git a/app-emulation/docker-registry/docker-registry-2.6.1-r1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.1-r1.ebuild
new file mode 100644
index 000..45aac739ef0
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.6.1-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+PATCHES=( "${FILESDIR}/${P}-notifications-expvar.patch" )
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_compile() {
+   GOPATH="${S}" \
+   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+   exeinto /usr/libexec/${PN}
+   doexe 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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}

diff --git 
a/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
 
b/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
new file mode 100644
index 000..1d40edf1f0c
--- /dev/null
+++ 
b/app-emulation/docker-registry/files/docker-registry-2.6.1-notifications-expvar.patch
@@ -0,0 +1,64 @@
+From 9a58c91051e03b46f1461e371a7bf527c1284612 Mon Sep 17 00:00:00 2001
+From: Noah Treuhaft 
+Date: Wed, 8 Feb 2017 11:38:44 -0800
+Subject: [PATCH] notifications: fix expvar for Go 1.7
+
+Remove EndpointConfig.Transport from the return value of the
+registry.notifications.endpoints expvar.Func.  It results in an empty
+value for that expvar variable under Go 1.7 because it is a non-nil
+*http.Transport, which Go 1.7 can no longer encode as JSON.
+
+Signed-off-by: Noah Treuhaft 
+---
+ notifications/endpoint.go |  2 +-
+ notifications/metrics_test.go | 28 
+ 2 files changed, 29 insertions(+), 1 deletion(-)
+ create mode 100644 notifications/metrics_test.go
+
+diff --git a/src/github.com/docker/distribution/notifications/endpoint.go 
b/src/github.com/docker/distribution/notifications/endpoint.go
+index 29a9e27b5..44d0f6d7b 100644
+--- a/src/github.com/docker/distribution/notifications/endpoint.go
 b/src/github.com/docker/distribution/notifications/endpoint.go
+@@ -13,7 +13,7 @@ type EndpointConfig struct {
+   Threshold int
+   Backoff   time.Duration
+   IgnoredMediaTypes []string
+-  Transport *http.Transport
++  Transport *http.Transport `json:"-"`
+ }
+ 
+ // defaults set any zero-valued fields to a reasonable default.
+diff --git a/src/github.com/docker/distribution/notifications/metrics_test.go 
b/src/github.com/docker/distribution/notifications/metrics_test.go
+new file mode 100644
+index 0..03a08e2c8
+--- /dev/null
 b/notifications/metrics_test.go
+@@ -0,0 +1,28 @@
++package notifications
++
++import (
++  "encoding/json"
++  "expvar"
++  "testing"
++)
++
++func TestMetricsExpvar(t *testing.T) {
++  endpointsVar := 
expvar.Get("registry").(*expvar.Map).Get("notifications").(*expvar.Map).Get("endpoints")
++
++  var v interface{}
++  if err := json.Unmarshal([]byte(endpointsVar.String()), ); err != nil 
{
++  t.Fatalf("unexpected error unmarshaling endpoints: %v", err)
++  }
++  if v != nil {
++  t.Fatalf("expected nil, got %#v", v)
++  }
++
++  NewEndpoint("x", "y", EndpointConfig{})
++
++  if err := json.Unmarshal([]byte(endpointsVar.String()), ); err != nil 
{
++  t.Fatalf("unexpected error unmarshaling endpoints: 

[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2017-04-15 Thread Manuel Rüger
commit: 828d813d797a5bd94f358e2f0f53419ab52e5d51
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Apr 16 00:31:40 2017 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Apr 16 00:31:40 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=828d813d

app-emulation/docker-registry: Version bump to 2.6.1

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.6.1.ebuild   | 40 ++
 2 files changed, 41 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 5d094d3949c..653e661f8fc 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,2 +1,3 @@
 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
+DIST docker-registry-2.6.1.tar.gz 1577794 SHA256 
21d1b5fd4001c45d125d6345c387f1840f984c069b5556d0c8ad1850d6e25b9f SHA512 
a2175cb5ab049599e1bdae7026dc84e14b79883eca3ceaafda54497a1743103f125f65fa3922c003363dd86aa1422f539aff8b17746b9768968fef757e931c36
 WHIRLPOOL 
3e1c5684462d6e31d3f28d67f4ab2dacf8037b793c11ecca49846ca4124a0ce54b9481471cb77190dc3b63de882571b88beba1bb5d7d04b8cbb92b8a597b0fed

diff --git a/app-emulation/docker-registry/docker-registry-2.6.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.6.1.ebuild
new file mode 100644
index 000..ff9eab00e72
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.6.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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://github.com/docker/distribution;
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+SVCNAME=registry
+
+pkg_setup() {
+   enewgroup ${SVCNAME}
+   enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME}
+}
+
+src_compile() {
+   GOPATH="${S}" \
+   go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+   exeinto /usr/libexec/${PN}
+   doexe 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/{lib,log}/${SVCNAME}
+   fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME}
+   insinto /etc/logrotate.d
+   newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/files/

2017-01-23 Thread Zac Medico
commit: 332351bfb22fb370e61eb19b0ef215f60bb45f5c
Author: Zac Medico  gentoo  org>
AuthorDate: Mon Jan 23 17:43:23 2017 +
Commit: Zac Medico  gentoo  org>
CommitDate: Mon Jan 23 17:43:23 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=332351bf

app-emulation/docker-registry: remove su from logrotate config

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-emulation/docker-registry/files/registry.logrotated | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app-emulation/docker-registry/files/registry.logrotated 
b/app-emulation/docker-registry/files/registry.logrotated
index 546b90b..3cb63f9 100644
--- a/app-emulation/docker-registry/files/registry.logrotated
+++ b/app-emulation/docker-registry/files/registry.logrotated
@@ -1,5 +1,4 @@
 /var/log/registry/registry.log {
-   su registry registry
missingok
size 5M
rotate 3



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2017-01-19 Thread Zac Medico
commit: 0183f85a7dfd02298bcd2f42e8e7373f11b98015
Author: Zac Medico  gentoo  org>
AuthorDate: Thu Jan 19 22:03:26 2017 +
Commit: Zac Medico  gentoo  org>
CommitDate: Thu Jan 19 22:05:02 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0183f85a

app-emulation/docker-registry: remove old version 2.5.0

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-emulation/docker-registry/Manifest |  1 -
 .../docker-registry/docker-registry-2.5.0.ebuild   | 52 --
 2 files changed, 53 deletions(-)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 1917b2d..ab1bfc6 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,2 +1 @@
-DIST docker-registry-2.5.0.tar.gz 1619051 SHA256 
9b1b09bf0f54a37247a4d4532ceb1a3bc2381ac13a63a9a5989f374614517c1c SHA512 
2c9b45a8fbceff32538b357b9bb42d86e6d21b664cffcfb476ed06177608f35cd81f6bfdb342df3edfdea2705569fcf5cba94be6a885ecaf69f68ff8569de781
 WHIRLPOOL 
6bb9d01c690c636e4069535253182bed0ccc8973c1682283376975f6d105338bbf21ca28900c74e12ceaf12427f3b381b7fac97d25c637a0596e30019f22d3b3
 DIST docker-registry-2.5.1.tar.gz 1604279 SHA256 
d98ebca3518c17d95468b1d40b87861036001301a16a50563203e4b9af72c514 SHA512 
5217e2ca361d71806c8ec4da1cf1c2c5dc4160b84c2a98feae50872342d0acf116768a3acf00769bafd66e73c9922c7fe97cbde51955d8aa1d1ed914de2e3d34
 WHIRLPOOL 
12db4c397f6309a57252cfe19a055f610567c526a05220c9b6ac0d7ff21863520cc126f95b34c8e48fb7ae6ba6a298d0e6b53bf4866cf13bf95fcfb591c538b7

diff --git a/app-emulation/docker-registry/docker-registry-2.5.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.5.0.ebuild
deleted file mode 100644
index c5b0e84..
--- a/app-emulation/docker-registry/docker-registry-2.5.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-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/${PVR}"
-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() {
-   golang_install_pkgs
-   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}"
-}
-
-golang_install_pkgs() {
-   insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
-   rm -rf "${S}"/src/${EGO_PN%/*}/.git* \
-   "${S}"/{src,pkg/$(go env GOOS)_$(go env 
GOARCH)}/${EGO_PN%/*}/vendor
-   doins -r "${S}"/src/${EGO_PN%/*}
-   insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go 
env GOARCH)/${EGO_PN%/*}")
-   doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}{,.a}
-}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2017-01-19 Thread Zac Medico
commit: 7a8228ab0ad5e03122a53708387cdb6892ebbb22
Author: Zac Medico  gentoo  org>
AuthorDate: Thu Jan 19 22:04:03 2017 +
Commit: Zac Medico  gentoo  org>
CommitDate: Thu Jan 19 22:05:02 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a8228ab

app-emulation/docker-registry: version bump to 2.6.0

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.6.0.ebuild   | 42 ++
 2 files changed, 43 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index ab1bfc6..5d094d3 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 ..68bc720
--- /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}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2016-10-28 Thread Zac Medico
commit: 0d405aaffd8b1b192e57155d837c788cac794216
Author: Zac Medico  gentoo  org>
AuthorDate: Fri Oct 28 08:53:48 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Fri Oct 28 08:53:48 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d405aaf

app-emulation/docker-registry: version bump to 2.5.1

Package-Manager: portage-2.3.2

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.5.1.ebuild   | 42 ++
 2 files changed, 43 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 90af5e5..1917b2d 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1 +1,2 @@
 DIST docker-registry-2.5.0.tar.gz 1619051 SHA256 
9b1b09bf0f54a37247a4d4532ceb1a3bc2381ac13a63a9a5989f374614517c1c SHA512 
2c9b45a8fbceff32538b357b9bb42d86e6d21b664cffcfb476ed06177608f35cd81f6bfdb342df3edfdea2705569fcf5cba94be6a885ecaf69f68ff8569de781
 WHIRLPOOL 
6bb9d01c690c636e4069535253182bed0ccc8973c1682283376975f6d105338bbf21ca28900c74e12ceaf12427f3b381b7fac97d25c637a0596e30019f22d3b3
+DIST docker-registry-2.5.1.tar.gz 1604279 SHA256 
d98ebca3518c17d95468b1d40b87861036001301a16a50563203e4b9af72c514 SHA512 
5217e2ca361d71806c8ec4da1cf1c2c5dc4160b84c2a98feae50872342d0acf116768a3acf00769bafd66e73c9922c7fe97cbde51955d8aa1d1ed914de2e3d34
 WHIRLPOOL 
12db4c397f6309a57252cfe19a055f610567c526a05220c9b6ac0d7ff21863520cc126f95b34c8e48fb7ae6ba6a298d0e6b53bf4866cf13bf95fcfb591c538b7

diff --git a/app-emulation/docker-registry/docker-registry-2.5.1.ebuild 
b/app-emulation/docker-registry/docker-registry-2.5.1.ebuild
new file mode 100644
index ..cd832b4
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.5.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 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}"
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2016-10-28 Thread Zac Medico
commit: da66d193be2d327d8c6b1b90191ccc56d89348f3
Author: Zac Medico  gentoo  org>
AuthorDate: Fri Oct 28 08:38:44 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Fri Oct 28 08:39:15 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da66d193

app-emulation/docker-registry: remove old version 2.4.0

Package-Manager: portage-2.3.2

 app-emulation/docker-registry/Manifest |  1 -
 .../docker-registry/docker-registry-2.4.0.ebuild   | 52 --
 2 files changed, 53 deletions(-)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index cc89b0c..90af5e5 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1,2 +1 @@
-DIST docker-registry-2.4.0.tar.gz 1294478 SHA256 
cfd0c6212a05c047fa6a5b9093493d2de0b438936f2d7318a902263a4a3d7b0f SHA512 
668ba35adbe897f73e93e3ec8766123a70b4d2b0d57d4ec3e9f77f6d60d381184acc331b04ab0391f4c648da223dd2338a4065027e6c63aa86b1f1a039d7e300
 WHIRLPOOL 
b07b0f79b97547c33fa2b64bcf85cc1e2bac3e17c38d6bda18a5ed7cfc500938ee29c26c15fbbc5110b22c2d28764674034cf325519261b01ada71deb6b541be
 DIST docker-registry-2.5.0.tar.gz 1619051 SHA256 
9b1b09bf0f54a37247a4d4532ceb1a3bc2381ac13a63a9a5989f374614517c1c SHA512 
2c9b45a8fbceff32538b357b9bb42d86e6d21b664cffcfb476ed06177608f35cd81f6bfdb342df3edfdea2705569fcf5cba94be6a885ecaf69f68ff8569de781
 WHIRLPOOL 
6bb9d01c690c636e4069535253182bed0ccc8973c1682283376975f6d105338bbf21ca28900c74e12ceaf12427f3b381b7fac97d25c637a0596e30019f22d3b3

diff --git a/app-emulation/docker-registry/docker-registry-2.4.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
deleted file mode 100644
index c5b0e84..
--- a/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-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/${PVR}"
-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() {
-   golang_install_pkgs
-   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}"
-}
-
-golang_install_pkgs() {
-   insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
-   rm -rf "${S}"/src/${EGO_PN%/*}/.git* \
-   "${S}"/{src,pkg/$(go env GOOS)_$(go env 
GOARCH)}/${EGO_PN%/*}/vendor
-   doins -r "${S}"/src/${EGO_PN%/*}
-   insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go 
env GOARCH)/${EGO_PN%/*}")
-   doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}{,.a}
-}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/files/

2016-08-28 Thread Zac Medico
commit: 08899386a0ddb0806fc291850a5c6d32f3cf5426
Author: Zac Medico  gentoo  org>
AuthorDate: Sun Aug 28 23:57:01 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Sun Aug 28 23:59:24 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08899386

app-emulation/docker-registry: add copytruncate to logrotate config

Package-Manager: portage-2.3.0

 app-emulation/docker-registry/files/registry.logrotated | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app-emulation/docker-registry/files/registry.logrotated 
b/app-emulation/docker-registry/files/registry.logrotated
index 7f89ba2..546b90b 100644
--- a/app-emulation/docker-registry/files/registry.logrotated
+++ b/app-emulation/docker-registry/files/registry.logrotated
@@ -4,4 +4,5 @@
size 5M
rotate 3
compress
+   copytruncate
 }



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/

2016-08-28 Thread Zac Medico
commit: 31b24a6817f631fe3efc4c6bd814e0e3bc0ec127
Author: Zac Medico  gentoo  org>
AuthorDate: Sun Aug 28 23:55:24 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Sun Aug 28 23:59:24 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31b24a68

app-emulation/docker-registry: version bump to 2.5.0

Package-Manager: portage-2.3.0

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.5.0.ebuild   | 52 ++
 2 files changed, 53 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
index 9607b5c..cc89b0c 100644
--- a/app-emulation/docker-registry/Manifest
+++ b/app-emulation/docker-registry/Manifest
@@ -1 +1,2 @@
 DIST docker-registry-2.4.0.tar.gz 1294478 SHA256 
cfd0c6212a05c047fa6a5b9093493d2de0b438936f2d7318a902263a4a3d7b0f SHA512 
668ba35adbe897f73e93e3ec8766123a70b4d2b0d57d4ec3e9f77f6d60d381184acc331b04ab0391f4c648da223dd2338a4065027e6c63aa86b1f1a039d7e300
 WHIRLPOOL 
b07b0f79b97547c33fa2b64bcf85cc1e2bac3e17c38d6bda18a5ed7cfc500938ee29c26c15fbbc5110b22c2d28764674034cf325519261b01ada71deb6b541be
+DIST docker-registry-2.5.0.tar.gz 1619051 SHA256 
9b1b09bf0f54a37247a4d4532ceb1a3bc2381ac13a63a9a5989f374614517c1c SHA512 
2c9b45a8fbceff32538b357b9bb42d86e6d21b664cffcfb476ed06177608f35cd81f6bfdb342df3edfdea2705569fcf5cba94be6a885ecaf69f68ff8569de781
 WHIRLPOOL 
6bb9d01c690c636e4069535253182bed0ccc8973c1682283376975f6d105338bbf21ca28900c74e12ceaf12427f3b381b7fac97d25c637a0596e30019f22d3b3

diff --git a/app-emulation/docker-registry/docker-registry-2.5.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.5.0.ebuild
new file mode 100644
index ..c5b0e84
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+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/${PVR}"
+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() {
+   golang_install_pkgs
+   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}"
+}
+
+golang_install_pkgs() {
+   insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
+   rm -rf "${S}"/src/${EGO_PN%/*}/.git* \
+   "${S}"/{src,pkg/$(go env GOOS)_$(go env 
GOARCH)}/${EGO_PN%/*}/vendor
+   doins -r "${S}"/src/${EGO_PN%/*}
+   insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go 
env GOARCH)/${EGO_PN%/*}")
+   doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}{,.a}
+}



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/, app-emulation/docker-registry/files/

2016-04-25 Thread Zac Medico
commit: 21508b9a287a302d48439353674fb2face00b464
Author: Zac Medico  gentoo  org>
AuthorDate: Mon Apr 25 09:04:15 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Mon Apr 25 09:05:30 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21508b9a

app-emulation/docker-registry: use config.yml example from tarball

Package-Manager: portage-2.2.28

 .../docker-registry/docker-registry-2.4.0.ebuild   |  2 +-
 app-emulation/docker-registry/files/config.yml | 18 --
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/app-emulation/docker-registry/docker-registry-2.4.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
index 08c7199..c5b0e84 100644
--- a/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
+++ b/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
@@ -32,7 +32,7 @@ src_install() {
exeinto /usr/libexec/${PN}
doexe "${S}"/bin/*
insinto /etc/docker/registry
-   newins "${FILESDIR}/config.yml" config.yml.example
+   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"

diff --git a/app-emulation/docker-registry/files/config.yml 
b/app-emulation/docker-registry/files/config.yml
deleted file mode 100644
index b5700e1..000
--- a/app-emulation/docker-registry/files/config.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-version: 0.1
-log:
-  fields:
-service: registry
-storage:
-cache:
-blobdescriptor: inmemory
-filesystem:
-rootdirectory: /var/lib/registry
-http:
-addr: :5000
-headers:
-X-Content-Type-Options: [nosniff]
-health:
-  storagedriver:
-enabled: true
-interval: 10s
-threshold: 3



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/files/

2016-04-25 Thread Zac Medico
commit: 020d49bd6767b308584733b6dcd88e4cc9ee7149
Author: Zac Medico  gentoo  org>
AuthorDate: Mon Apr 25 08:49:52 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Mon Apr 25 08:51:38 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=020d49bd

app-emulation/docker-registry: fix init script to allow user/group override

Package-Manager: portage-2.2.28

 app-emulation/docker-registry/files/registry.initd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/docker-registry/files/registry.initd 
b/app-emulation/docker-registry/files/registry.initd
index 4df83f3..eaf2789 100644
--- a/app-emulation/docker-registry/files/registry.initd
+++ b/app-emulation/docker-registry/files/registry.initd
@@ -5,8 +5,8 @@
 
 description="Docker Registry 2.0"
 pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
-user=${SVCNAME}
-group=${SVCNAME}
+user=${user:-${SVCNAME}}
+group=${group:-${SVCNAME}}
 
 command="/usr/libexec/docker-${SVCNAME}/${SVCNAME}"
 command_args="${command_args:-serve /etc/docker/registry/config.yml}"



[gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-registry/files/, app-emulation/docker-registry/

2016-04-25 Thread Zac Medico
commit: aa1eaeaddd25642ea620f734aca4fb6e9c93eaa0
Author: Zac Medico  gentoo  org>
AuthorDate: Mon Apr 25 07:45:24 2016 +
Commit: Zac Medico  gentoo  org>
CommitDate: Mon Apr 25 07:47:57 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1eaead

app-emulation/docker-registry: new package

Package-Manager: portage-2.2.28

 app-emulation/docker-registry/Manifest |  1 +
 .../docker-registry/docker-registry-2.4.0.ebuild   | 52 ++
 app-emulation/docker-registry/files/config.yml | 18 
 app-emulation/docker-registry/files/registry.confd |  2 +
 app-emulation/docker-registry/files/registry.initd | 25 +++
 .../docker-registry/files/registry.logrotated  |  7 +++
 .../docker-registry/files/registry.service | 13 ++
 app-emulation/docker-registry/metadata.xml | 10 +
 8 files changed, 128 insertions(+)

diff --git a/app-emulation/docker-registry/Manifest 
b/app-emulation/docker-registry/Manifest
new file mode 100644
index 000..9607b5c
--- /dev/null
+++ b/app-emulation/docker-registry/Manifest
@@ -0,0 +1 @@
+DIST docker-registry-2.4.0.tar.gz 1294478 SHA256 
cfd0c6212a05c047fa6a5b9093493d2de0b438936f2d7318a902263a4a3d7b0f SHA512 
668ba35adbe897f73e93e3ec8766123a70b4d2b0d57d4ec3e9f77f6d60d381184acc331b04ab0391f4c648da223dd2338a4065027e6c63aa86b1f1a039d7e300
 WHIRLPOOL 
b07b0f79b97547c33fa2b64bcf85cc1e2bac3e17c38d6bda18a5ed7cfc500938ee29c26c15fbbc5110b22c2d28764674034cf325519261b01ada71deb6b541be

diff --git a/app-emulation/docker-registry/docker-registry-2.4.0.ebuild 
b/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
new file mode 100644
index 000..08c7199
--- /dev/null
+++ b/app-emulation/docker-registry/docker-registry-2.4.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+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/${PVR}"
+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() {
+   golang_install_pkgs
+   exeinto /usr/libexec/${PN}
+   doexe "${S}"/bin/*
+   insinto /etc/docker/registry
+   newins "${FILESDIR}/config.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}"
+}
+
+golang_install_pkgs() {
+   insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
+   rm -rf "${S}"/src/${EGO_PN%/*}/.git* \
+   "${S}"/{src,pkg/$(go env GOOS)_$(go env 
GOARCH)}/${EGO_PN%/*}/vendor
+   doins -r "${S}"/src/${EGO_PN%/*}
+   insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go 
env GOARCH)/${EGO_PN%/*}")
+   doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}{,.a}
+}

diff --git a/app-emulation/docker-registry/files/config.yml 
b/app-emulation/docker-registry/files/config.yml
new file mode 100644
index 000..b5700e1
--- /dev/null
+++ b/app-emulation/docker-registry/files/config.yml
@@ -0,0 +1,18 @@
+version: 0.1
+log:
+  fields:
+service: registry
+storage:
+cache:
+blobdescriptor: inmemory
+filesystem:
+rootdirectory: /var/lib/registry
+http:
+addr: :5000
+headers:
+X-Content-Type-Options: [nosniff]
+health:
+  storagedriver:
+enabled: true
+interval: 10s
+threshold: 3

diff --git a/app-emulation/docker-registry/files/registry.confd 
b/app-emulation/docker-registry/files/registry.confd
new file mode 100644
index 000..bfa97f1
--- /dev/null
+++ b/app-emulation/docker-registry/files/registry.confd
@@ -0,0 +1,2 @@
+# arguments for docker-registry
+command_args="serve /etc/docker/registry/config.yml"

diff --git a/app-emulation/docker-registry/files/registry.initd 
b/app-emulation/docker-registry/files/registry.initd
new file mode 100644
index 000..4df83f3
--- /dev/null
+++ b/app-emulation/docker-registry/files/registry.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="Docker Registry 2.0"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${SVCNAME}