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-admin/consul/
Date: Fri, 16 Nov 2018 10:37:45
Message-Id: 1542364619.92d2cd4866a558a0337c7985388302452d7c0836.mrueg@gentoo
1 commit: 92d2cd4866a558a0337c7985388302452d7c0836
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 16 10:36:59 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 16 10:36:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d2cd48
7
8 app-admin/consul: Version bump to 1.4.0
9
10 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-admin/consul/Manifest | 1 +
14 app-admin/consul/consul-1.4.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 036382bef7e..a11f4e9a3a7 100644
19 --- a/app-admin/consul/Manifest
20 +++ b/app-admin/consul/Manifest
21 @@ -1,3 +1,4 @@
22 DIST consul-1.2.2.tar.gz 15789375 BLAKE2B 8a0af370568f6fcb90334b147bd84e479efb682ed6c58d63dd56f3554f9e6538d37963ac825bb8598eef8948492feec688b8266733223d1557dbce9704daef35 SHA512 715f69e7b36d0070ea4e602dc50f51aa2547dbbbbb07cce985da79d1e201c6e84dade8a7c810e3602f88cfbd30e063669076954d2541810a18a0c9e7c9ff8458
23 DIST consul-1.2.3.tar.gz 18428593 BLAKE2B 14582bf9668e4f2a1c8c443cb01d7b9780c9bc414ff226907335f3873c135b77566898649d16b352ef21ee9300c290338f59672c5fb2b187694aea97b8735dec SHA512 71a7dbfc031df4a96faf2ddd829f289e96adefd0e0087208bbdd26e742a24e3da05fceea4181eb915703ad3323ed5b02bf74eb3fdfbed1e9a1afa2f74acb2a34
24 DIST consul-1.3.0.tar.gz 19423317 BLAKE2B 1db4de2d24be31b2d889b6f49cae33f2719080cf35df15c12c09159a57b9930cbe7204f8a35bbfe0f77145f562e3fe7d224785dde1f7b0cc3f0086e95e1316ef SHA512 b05b0ed316e10f45b83839812fb3394153e8bed604d35f0a983d33fcad3012a3b1872411b3034dbba54dd0ba000e737f18f7f351ed57fe737b0f365bdfe92f2c
25 +DIST consul-1.4.0.tar.gz 19685523 BLAKE2B df999d29fdab59b41d8e7ea4ec977a35aa7ec5b7daa293a75a39f695e3a75b1748b5bb584be9d9d5b3e1f0adac9626613a04949ff711ac713e2741cd2f9ad127 SHA512 a9f253ef5baa4e43800a0982ecb6893bf9487775cdcbe3a17bc7c45d601b6dca4e4c398ae3b70cdc1880577dbe1504d1a1f0cb702a1dd8c98b108e059fc721a0
26
27 diff --git a/app-admin/consul/consul-1.4.0.ebuild b/app-admin/consul/consul-1.4.0.ebuild
28 new file mode 100644
29 index 00000000000..e1763349f0d
30 --- /dev/null
31 +++ b/app-admin/consul/consul-1.4.0.ebuild
32 @@ -0,0 +1,69 @@
33 +# Copyright 1999-2018 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="0bddfa2"
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.9:=
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 +}