1 |
commit: 8c16279f2ac3ec405007a7d5ca9e679e8cfbc8ec |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 18 12:53:04 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 18 12:53:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c16279f |
7 |
|
8 |
app-emulation/docker-registry: Version bump to 2.7.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-emulation/docker-registry/Manifest | 1 + |
14 |
.../docker-registry/docker-registry-2.7.1.ebuild | 49 ++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/docker-registry/Manifest b/app-emulation/docker-registry/Manifest |
18 |
index 0b420bbbe03..9bf0d949d91 100644 |
19 |
--- a/app-emulation/docker-registry/Manifest |
20 |
+++ b/app-emulation/docker-registry/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST docker-registry-2.6.2.tar.gz 1579760 BLAKE2B d0e067f2e9124847b5e362f23ca7d67655fbf0a6227efc3fd9073d5360389d6d8531e5709b52225c54e6e3097a2d5d79102e27fd09412b95d2e5d8a4a30dde2d SHA512 a091db2e15d7c1dc8cd39a40de5bb63cc1ead68e95dfaf6b3735a789adb87f146c03eff81f700e0059e5f6ffc43e6c3dd3358503697882cb080b991629f82c60 |
23 |
DIST docker-registry-2.7.0.tar.gz 1996485 BLAKE2B 49022546b72a1ea2b457a3dc059d8940bfba3070208b2962f8acd1351312d568d6facc1690ae8ee78742b5647c3a84bd6538a9eb0c279aec0a8dfae2c823fa61 SHA512 72bf5f0953c58e4d1adf6427ee13a9456204ab278d4489277e4dd1b3a3df6717cc02c966cdfcdf77d86e769209fa18e377e0b12a6c02b9f58980185e9844aec6 |
24 |
+DIST docker-registry-2.7.1.tar.gz 1996699 BLAKE2B 2e22db69f476be5a4688f5b3d6b41fbbf71460351543ae849f707dd5b3d56624f674815a25214002886b057f0859f75fd197bb275a7b3cc8a7787422f716ad0e SHA512 f6baf0e7aa96ebe828c628f7dfd84ee899331c3c1bdab86662aef595b092702b6d9b2c9be766a6de6d153ff4ca55d85c5fd8785a0968f285f56a32a50092c754 |
25 |
|
26 |
diff --git a/app-emulation/docker-registry/docker-registry-2.7.1.ebuild b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3ab8dea6448 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/docker-registry/docker-registry-2.7.1.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit golang-vcs-snapshot systemd user |
37 |
+ |
38 |
+KEYWORDS="~amd64" |
39 |
+EGO_PN="github.com/docker/distribution" |
40 |
+EGIT_COMMIT="2461543d988979529609e8cb6fca9ca190dc48da" |
41 |
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+DESCRIPTION="Docker Registry 2.0" |
43 |
+HOMEPAGE="https://github.com/docker/distribution" |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+IUSE="" |
47 |
+SVCNAME=registry |
48 |
+ |
49 |
+pkg_setup() { |
50 |
+ enewgroup ${SVCNAME} |
51 |
+ enewuser ${SVCNAME} -1 -1 /dev/null ${SVCNAME} |
52 |
+} |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ pushd src/${EGO_PN} || die |
57 |
+ eapply "${FILESDIR}"/${PN}-2.7.0-notification-metrics.patch |
58 |
+ sed -i -e "s/git describe.*/echo ${PV})/"\ |
59 |
+ -e "s/git rev-parse.*/echo ${EGIT_COMMIT})/"\ |
60 |
+ -e "s/-s -w/-w/" Makefile || die |
61 |
+ popd || die |
62 |
+} |
63 |
+ |
64 |
+src_compile() { |
65 |
+ GOPATH="${S}" GO_BUILD_FLAGS="-v" emake -C src/${EGO_PN} binaries |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ exeinto /usr/libexec/${PN} |
70 |
+ doexe src/${EGO_PN}/bin/* |
71 |
+ insinto /etc/docker/registry |
72 |
+ newins src/${EGO_PN}/cmd/registry/config-example.yml config.yml.example |
73 |
+ newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}" |
74 |
+ newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}" |
75 |
+ systemd_dounit "${FILESDIR}/${SVCNAME}.service" |
76 |
+ keepdir /var/{lib,log}/${SVCNAME} |
77 |
+ fowners ${SVCNAME}:${SVCNAME} /var/{lib,log}/${SVCNAME} |
78 |
+ insinto /etc/logrotate.d |
79 |
+ newins "${FILESDIR}/${SVCNAME}.logrotated" "${SVCNAME}" |
80 |
+} |