1 |
commit: 39563645c6f483a0eae9343602a92d18f51c4fa7 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 29 09:21:26 2019 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 29 09:21:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39563645 |
7 |
|
8 |
app-admin/consul: Version bump to 1.5.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
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.3.ebuild | 69 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest |
18 |
index 6ac9921ba08..25fe7d7c19c 100644 |
19 |
--- a/app-admin/consul/Manifest |
20 |
+++ b/app-admin/consul/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST consul-1.4.4.tar.gz 22736827 BLAKE2B a1b973a303f77d84993e4879aa92072d4f2d36 |
22 |
DIST consul-1.5.0.tar.gz 20830405 BLAKE2B e64fbc22ade0c737db4f2f1b0e3966dbe617456a35d18a7a3cfa1b0f6ce2e335542b3add06c8b8e49995135b5a1576c824840030ac8dd46019bee915689bc5e2 SHA512 8cefb77b56b27995bba38517144bf42585bd1d9ad9a10fc0c9b6bc1a87bfbd042e336ed5e945cfce1fb8eb4b8162dbc8246e2b4109dea5767b8745a7b2159ef8 |
23 |
DIST consul-1.5.1.tar.gz 21123963 BLAKE2B 4fe6a45f442d849196a7b9961110cdcc6f92931626ab583859efabe62038f6b2c356b27b37ea41b27755cca138c567be5c81854794a1ba0ccae3f9e0dfd10749 SHA512 7486d24bf1fa9fe94175abf9e008dc4fe4277c509381a524a9ee20e17bc4959f621e39be29e33622cb672ef3a04f9161e575009197bcd35c78b45f1d2637a2ea |
24 |
DIST consul-1.5.2.tar.gz 21697719 BLAKE2B 782d6fe02cda097db9256a7e508cf19cf4d514d7936022d339fa62db705f6c60468cea907cd22338bb61c3287bfccb3a4d435a4f9222aa7558999553909e5d40 SHA512 e0820592abc5e119f74c8bf3d11a23726ee6dda7d193864a4486d64deef0bfd6ae4c9170b57d6f978e7ddfeb425229a019c45a8edcdea0938bce9315f2444fd6 |
25 |
+DIST consul-1.5.3.tar.gz 21743194 BLAKE2B c797b04457c5f0b12f06732a94038b25367b53a9e6088d725eea61786a0e18bd905ad680bc12c4bfa30b44292d2676689dd6f18e9e2143bf6e1b02c2c55f678f SHA512 3f275ec160b9e583b81ba8d463fdb05e9fc9058db2453d9393a56b67337ea04df98a89225323192230938e1abfb48fa60fe0a32b4d8980573b749217b69933e9 |
26 |
|
27 |
diff --git a/app-admin/consul/consul-1.5.3.ebuild b/app-admin/consul/consul-1.5.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..13ebbc13a38 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/consul/consul-1.5.3.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=7 |
37 |
+ |
38 |
+inherit golang-vcs-snapshot systemd user |
39 |
+GIT_COMMIT="a42ded4" |
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 |
+} |