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