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, 18 Sep 2018 14:02:00
Message-Id: 1537279266.fa5f9cbde24324ea41558a83abd9a02e6af54abe.mrueg@gentoo
1 commit: fa5f9cbde24324ea41558a83abd9a02e6af54abe
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 18 14:01:06 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 14:01:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa5f9cbd
7
8 app-emulation/reg: Version bump to 0.15.6
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-emulation/reg/Manifest | 1 +
13 app-emulation/reg/reg-0.15.6.ebuild | 48 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/app-emulation/reg/Manifest b/app-emulation/reg/Manifest
17 index 4448838ad32..5839d29ef5c 100644
18 --- a/app-emulation/reg/Manifest
19 +++ b/app-emulation/reg/Manifest
20 @@ -1,2 +1,3 @@
21 DIST reg-0.15.4.tar.gz 4052737 BLAKE2B 34bc68d3cb161bbea02bfc0ed142cb764f2db64610ac7b2b92130cfc838cfa4fde4794da9fd2d38a9bb73e994cf386ac9f50beaa4435b88cf034a4f4d0b648cc SHA512 d5948b095c310c2697a2f7b80a342af6949e4cb66c521cdb370a6fbead7424d729057fe71952291ee1ed82717cd7bb29141f6a2f85c946e33fd96da1c17912dd
22 DIST reg-0.15.5.tar.gz 4053475 BLAKE2B 60541d7f02f3ee658fa185206f76df1045975101f0a25a636493a454984a8a2c836b1b74f7b8b6768c66ce0e12b12708b3f42d233e15ba64f0251b02a841bb76 SHA512 c1293868ea30dcdfc5251f95a5f287f8043be3a2372fdd08c0836919f6722c5931eb429f9047769b442bf3fdbb50c476e8509c62cb20b4b45d30793571cce44e
23 +DIST reg-0.15.6.tar.gz 4071110 BLAKE2B 376313ab4aef0f8bce21ddbed8f179aec14755990f6d99e5733c1550c58998f279e3c0beee7b2e11f25167bf7fb717dd731b69571adc410ad7475afcc98baef5 SHA512 1a5635af82f7a7951af325ffbc0d84c2e35ec0ecc040873ff7f0c7037fd2677cea235348c4fb0bf9397f1fd2ccee86e96ca080a1fbc28e60eb985e55e4a8a085
24
25 diff --git a/app-emulation/reg/reg-0.15.6.ebuild b/app-emulation/reg/reg-0.15.6.ebuild
26 new file mode 100644
27 index 00000000000..b09c7ab9af1
28 --- /dev/null
29 +++ b/app-emulation/reg/reg-0.15.6.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit golang-build golang-vcs-snapshot user
36 +
37 +EGO_PN="github.com/genuinetools/reg"
38 +GIT_COMMIT="37fbf846946ae60a75e5d30e3d6ba6d4dd0489ed"
39 +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +KEYWORDS="~amd64"
41 +
42 +DESCRIPTION="Docker registry v2 command line client"
43 +HOMEPAGE="https://github.com/genuinetools/reg"
44 +SRC_URI="${ARCHIVE_URI}"
45 +LICENSE="MIT"
46 +SLOT="0"
47 +IUSE=""
48 +
49 +RESTRICT="test"
50 +
51 +pkg_setup() {
52 + enewgroup reg
53 + enewuser reg -1 -1 /var/lib/reg reg
54 +}
55 +
56 +src_prepare() {
57 + pushd src/${EGO_PN} || die
58 + default
59 + popd || die
60 +}
61 +
62 +src_compile() {
63 + pushd src/${EGO_PN} || die
64 + GOPATH="${S}" go build -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/reg . || die
65 + popd || die
66 +}
67 +
68 +src_install() {
69 + dobin bin/*
70 + dodoc src/${EGO_PN}/README.md
71 + insinto /var/lib/${PN}
72 + doins -r src/${EGO_PN}/server/*
73 + newinitd "${FILESDIR}"/reg.initd reg
74 + newconfd "${FILESDIR}"/reg.confd reg
75 +
76 + keepdir /var/log/reg
77 + fowners -R reg:reg /var/log/reg /var/lib/reg/static
78 +}