Gentoo Archives: gentoo-commits

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