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: Tue, 31 Jul 2018 18:10:19
Message-Id: 1533060551.b6601b884db9e785656af027e0b824c0a699b5a5.mrueg@gentoo
1 commit: b6601b884db9e785656af027e0b824c0a699b5a5
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 18:09:11 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 18:09:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6601b88
7
8 app-admin/consul: Version bump to 1.2.2
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 app-admin/consul/Manifest | 1 +
13 app-admin/consul/consul-1.2.2.ebuild | 69 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest
17 index 0c5790da38d..b3529731d15 100644
18 --- a/app-admin/consul/Manifest
19 +++ b/app-admin/consul/Manifest
20 @@ -1,3 +1,4 @@
21 DIST consul-1.0.6.tar.gz 8211299 BLAKE2B 7ea5df497f4796e572a86127e0854935f97439504aff82fb697f33700e9d138048772f32f171dbbe4f1fb4d1ceefa7ca96cf3dce2a22cdffd4e1906f6befa55b SHA512 c55f09272859b828816ddf548952769172331c22be8a70a7f73ab9362744fb1f4bc5fdf81955a0dbc4101584cf3660f182620dcdc56bcf94b42dce644be232a8
22 DIST consul-1.2.0.tar.gz 17187054 BLAKE2B 5e8d1151efe1e8ad5932886367d0012774713081aa2725f10d45af1e05751e328d76471ff3cbd85031c252c65cde0137f96c3ef86eca7e3e7f6b28e2d20ed0d5 SHA512 1c018a5f35164a899a086ccdae94cb5e6e2a490e4c788d65b0026dbf448950d0c1038b2d61cb10f5e8c9ad22a1affad64dd4a7086b59dffd115d40aa7b3d0cce
23 DIST consul-1.2.1.tar.gz 14819500 BLAKE2B debb7ee5b8016527de0ebc680b228a9749435db4364e8d6e0160b1a20e2896dd4109edc5930dad961ce18f79182dda0c00a52a567ea6ff2d267b17448df2129d SHA512 5b5d8b62056c305f7388db50b54427ed21c41fef6d1b5f67da845a66bece35454e9f538bb0df59bc86788826b6cd20cd6179552060482908fc5cbc4a048c14a8
24 +DIST consul-1.2.2.tar.gz 15789375 BLAKE2B 8a0af370568f6fcb90334b147bd84e479efb682ed6c58d63dd56f3554f9e6538d37963ac825bb8598eef8948492feec688b8266733223d1557dbce9704daef35 SHA512 715f69e7b36d0070ea4e602dc50f51aa2547dbbbbb07cce985da79d1e201c6e84dade8a7c810e3602f88cfbd30e063669076954d2541810a18a0c9e7c9ff8458
25
26 diff --git a/app-admin/consul/consul-1.2.2.ebuild b/app-admin/consul/consul-1.2.2.ebuild
27 new file mode 100644
28 index 00000000000..e754310e4c6
29 --- /dev/null
30 +++ b/app-admin/consul/consul-1.2.2.ebuild
31 @@ -0,0 +1,69 @@
32 +# Copyright 1999-2018 Gentoo Foundation
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="e716d1b"
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.9:=
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 +}