Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/reg/
Date: Tue, 29 Jan 2019 14:46:42
Message-Id: 1548773129.3f93f76d3fbf7afd1c044d5355d07f93552434e0.mrueg@gentoo
1 commit: 3f93f76d3fbf7afd1c044d5355d07f93552434e0
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 28 13:56:45 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 29 14:45:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f93f76d
7
8 app-emulation/reg: Fix snapshot name
9
10 Package-Manager: Portage-2.3.58, Repoman-2.3.12
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-emulation/reg/Manifest | 1 +
14 app-emulation/reg/reg-0.16.0_p20190102.ebuild | 53 +++++++++++++++++++++++++++
15 2 files changed, 54 insertions(+)
16
17 diff --git a/app-emulation/reg/Manifest b/app-emulation/reg/Manifest
18 index 8f1e56ab016..bede042bda5 100644
19 --- a/app-emulation/reg/Manifest
20 +++ b/app-emulation/reg/Manifest
21 @@ -1,3 +1,4 @@
22 DIST github.com-go-yaml-yaml-a3f3340b5840cee44f372bddb5880fcbc419b46a.tar.gz 60814 BLAKE2B a77b7d72e2937af71a0734c21bee7a1d7770157c27f1ddfa164c66fd5461f86a2ef46e002087092ef011caae572838bcc9537a8290cd54dfafb7f54423e47c48 SHA512 184a0e658a4eac3b867533cd0e494bd84db94fbe10e8df0d0b755c7ffc95bc99e2f84c0157183ca74cdc79289a85dcf7f1dea8a4c89a253565baf473b3627eae
23 DIST reg-0.16.0.tar.gz 2991496 BLAKE2B e94a53c79ff062013e091d4c558870ef5c25af181cba201a44fa38b9dfe8816d6f3fd581f4e9a3dafe5b3753a3755c31f8b2f4a347da134a969fc93ac296897c SHA512 1e4d936e406998ffaa176e7834b28970b594f88a339fd8447bef2f944efa9b51c1d35bf71b384b3ed1b3e84be08db6d7fd487f4a3c65aa2de0308d6128cf0070
24 DIST reg-0.16.0_p20180102.tar.gz 2994965 BLAKE2B c7cb8a0eaa1599a5464b7a98c3df0b146dbbfea884260b7c8cbf5393a9384c8875e38ea4e45c5f888c65b9bb8c326cf9934d9b3c32a4809fe8e3b23239e8f2a8 SHA512 90e92c15b7ca4f2a5f943cb80096af0eba50acd7691963609c25f15a6795f886843776180754ab7d28477f1fc3a4b8d916bc9ac99b768368471b31564d14769c
25 +DIST reg-0.16.0_p20190102.tar.gz 2994965 BLAKE2B c7cb8a0eaa1599a5464b7a98c3df0b146dbbfea884260b7c8cbf5393a9384c8875e38ea4e45c5f888c65b9bb8c326cf9934d9b3c32a4809fe8e3b23239e8f2a8 SHA512 90e92c15b7ca4f2a5f943cb80096af0eba50acd7691963609c25f15a6795f886843776180754ab7d28477f1fc3a4b8d916bc9ac99b768368471b31564d14769c
26
27 diff --git a/app-emulation/reg/reg-0.16.0_p20190102.ebuild b/app-emulation/reg/reg-0.16.0_p20190102.ebuild
28 new file mode 100644
29 index 00000000000..3d7a774209c
30 --- /dev/null
31 +++ b/app-emulation/reg/reg-0.16.0_p20190102.ebuild
32 @@ -0,0 +1,53 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +EGO_VENDOR=( "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml" )
39 +
40 +inherit golang-build golang-vcs-snapshot user
41 +
42 +EGO_PN="github.com/genuinetools/reg"
43 +GIT_COMMIT="d959057b30da67d5f162790f9d5b5160686901fd"
44 +ARCHIVE_URI="https://${EGO_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz
45 + ${EGO_VENDOR_URI}"
46 +KEYWORDS="~amd64"
47 +
48 +DESCRIPTION="Docker registry v2 command line client"
49 +HOMEPAGE="https://github.com/genuinetools/reg"
50 +SRC_URI="${ARCHIVE_URI}"
51 +LICENSE="MIT"
52 +SLOT="0"
53 +IUSE=""
54 +
55 +RESTRICT="test"
56 +
57 +pkg_setup() {
58 + enewgroup reg
59 + enewuser reg -1 -1 /var/lib/reg reg
60 +}
61 +
62 +src_prepare() {
63 + pushd src/${EGO_PN} || die
64 + eapply "${FILESDIR}"/reg-0.16.0-config.patch
65 + default
66 + popd || die
67 +}
68 +
69 +src_compile() {
70 + pushd src/${EGO_PN} || die
71 + GOPATH="${S}" go build -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || die
72 + popd || die
73 +}
74 +
75 +src_install() {
76 + dobin bin/*
77 + dodoc src/${EGO_PN}/README.md
78 + insinto /var/lib/${PN}
79 + doins -r src/${EGO_PN}/server/*
80 + newinitd "${FILESDIR}"/reg.initd reg
81 + newconfd "${FILESDIR}"/reg.confd reg
82 +
83 + keepdir /var/log/reg
84 + fowners -R reg:reg /var/log/reg /var/lib/reg/static
85 +}