1 |
commit: e61411a1bb38e264a8c087a8dafd9a2786aacefc |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 9 15:26:31 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 9 15:26:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61411a1 |
7 |
|
8 |
app-admin/consul: Version bump to 1.5.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org> |
12 |
|
13 |
app-admin/consul/Manifest | 1 + |
14 |
app-admin/consul/consul-1.5.0.ebuild | 69 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest |
18 |
index b3d4e20634a..9dd5c03947a 100644 |
19 |
--- a/app-admin/consul/Manifest |
20 |
+++ b/app-admin/consul/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST consul-1.3.0.tar.gz 19423317 BLAKE2B 1db4de2d24be31b2d889b6f49cae33f2719080 |
22 |
DIST consul-1.4.0.tar.gz 19685523 BLAKE2B df999d29fdab59b41d8e7ea4ec977a35aa7ec5b7daa293a75a39f695e3a75b1748b5bb584be9d9d5b3e1f0adac9626613a04949ff711ac713e2741cd2f9ad127 SHA512 a9f253ef5baa4e43800a0982ecb6893bf9487775cdcbe3a17bc7c45d601b6dca4e4c398ae3b70cdc1880577dbe1504d1a1f0cb702a1dd8c98b108e059fc721a0 |
23 |
DIST consul-1.4.1.tar.gz 22517128 BLAKE2B a4091ad1c2d743693ec14e364bf610479cb6c6f33caeb601698ca37a98fa0ddb6417bbca4ca30e3941bdb1c8be18f0eb31b0e515498d7fea38c553ef2d0a1f46 SHA512 e5451a414878a2a9d3591d4ae2caf8a227035017a6b65cbacf272a1a14727d33cabb1a11bd0fa3b837195309ff77aa49d4087cb6faedddb8ea002ac46412bc90 |
24 |
DIST consul-1.4.4.tar.gz 22736827 BLAKE2B a1b973a303f77d84993e4879aa92072d4f2d36353683cf9a2c6cdeaded8587e8464f066168f190f7347f6038df28b3cba1d8b8a3ca0b700ee085019af5014966 SHA512 d3e5dd536726976b705fe4c78c67eaf345b8f47225919c0ca1609d75e74343d9a16d893ef4cd5140998f23b3149cfa60f5b432ed9a7251bb3b232be9b65e7241 |
25 |
+DIST consul-1.5.0.tar.gz 20830405 BLAKE2B e64fbc22ade0c737db4f2f1b0e3966dbe617456a35d18a7a3cfa1b0f6ce2e335542b3add06c8b8e49995135b5a1576c824840030ac8dd46019bee915689bc5e2 SHA512 8cefb77b56b27995bba38517144bf42585bd1d9ad9a10fc0c9b6bc1a87bfbd042e336ed5e945cfce1fb8eb4b8162dbc8246e2b4109dea5767b8745a7b2159ef8 |
26 |
|
27 |
diff --git a/app-admin/consul/consul-1.5.0.ebuild b/app-admin/consul/consul-1.5.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..13e2f4eb614 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/consul/consul-1.5.0.ebuild |
32 |
@@ -0,0 +1,69 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit golang-vcs-snapshot systemd user |
39 |
+GIT_COMMIT="34eff65" |
40 |
+KEYWORDS="~amd64" |
41 |
+EGO_PN="github.com/hashicorp/consul" |
42 |
+DESCRIPTION="A tool for service discovery, monitoring and configuration" |
43 |
+HOMEPAGE="https://www.consul.io" |
44 |
+SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+SLOT="0" |
47 |
+LICENSE="MPL-2.0" |
48 |
+IUSE="" |
49 |
+ |
50 |
+RESTRICT="test" |
51 |
+ |
52 |
+DEPEND="dev-go/gox |
53 |
+ >=dev-lang/go-1.11:= |
54 |
+ >=dev-go/go-tools-0_pre20160121" |
55 |
+RDEPEND="" |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ enewgroup consul |
59 |
+ enewuser consul -1 -1 /var/lib/${PN} consul |
60 |
+} |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ sed -e 's:go get -u -v $(GOTOOLS)::' \ |
66 |
+ -e 's:vendorfmt dev-build:dev-build:' \ |
67 |
+ -i "src/${EGO_PN}/GNUmakefile" || die |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ # The dev target sets causes build.sh to set appropriate XC_OS |
72 |
+ # and XC_ARCH, and skips generation of an unused zip file, |
73 |
+ # avoiding a dependency on app-arch/zip. |
74 |
+ GOPATH="${S}" \ |
75 |
+ GOBIN="${S}/bin" \ |
76 |
+ GIT_DESCRIBE="v${PV}" \ |
77 |
+ GIT_DIRTY="" \ |
78 |
+ GIT_COMMIT="${GIT_COMMIT}" \ |
79 |
+ emake -C "src/${EGO_PN}" dev-build |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ local x |
84 |
+ |
85 |
+ dobin bin/consul |
86 |
+ |
87 |
+ keepdir /etc/consul.d |
88 |
+ insinto /etc/consul.d |
89 |
+ doins "${FILESDIR}/"*.json.example |
90 |
+ |
91 |
+ for x in /var/{lib,log}/${PN}; do |
92 |
+ keepdir "${x}" |
93 |
+ fowners consul:consul "${x}" |
94 |
+ done |
95 |
+ |
96 |
+ newinitd "${FILESDIR}/consul.initd" "${PN}" |
97 |
+ newconfd "${FILESDIR}/consul.confd" "${PN}" |
98 |
+ insinto /etc/logrotate.d |
99 |
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
100 |
+ systemd_dounit "${FILESDIR}/consul.service" |
101 |
+} |