1 |
commit: 74f68dc7ab149380d1291a47e94174cbdef377ee |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 5 21:08:12 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 5 21:08:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f68dc7 |
7 |
|
8 |
app-admin/consul: Bump to version 1.6.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-admin/consul/Manifest | 1 + |
14 |
app-admin/consul/consul-1.6.0.ebuild | 74 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 75 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest |
18 |
index 25fe7d7c19c..23d5661b5c0 100644 |
19 |
--- a/app-admin/consul/Manifest |
20 |
+++ b/app-admin/consul/Manifest |
21 |
@@ -3,3 +3,4 @@ DIST consul-1.5.0.tar.gz 20830405 BLAKE2B e64fbc22ade0c737db4f2f1b0e3966dbe61745 |
22 |
DIST consul-1.5.1.tar.gz 21123963 BLAKE2B 4fe6a45f442d849196a7b9961110cdcc6f92931626ab583859efabe62038f6b2c356b27b37ea41b27755cca138c567be5c81854794a1ba0ccae3f9e0dfd10749 SHA512 7486d24bf1fa9fe94175abf9e008dc4fe4277c509381a524a9ee20e17bc4959f621e39be29e33622cb672ef3a04f9161e575009197bcd35c78b45f1d2637a2ea |
23 |
DIST consul-1.5.2.tar.gz 21697719 BLAKE2B 782d6fe02cda097db9256a7e508cf19cf4d514d7936022d339fa62db705f6c60468cea907cd22338bb61c3287bfccb3a4d435a4f9222aa7558999553909e5d40 SHA512 e0820592abc5e119f74c8bf3d11a23726ee6dda7d193864a4486d64deef0bfd6ae4c9170b57d6f978e7ddfeb425229a019c45a8edcdea0938bce9315f2444fd6 |
24 |
DIST consul-1.5.3.tar.gz 21743194 BLAKE2B c797b04457c5f0b12f06732a94038b25367b53a9e6088d725eea61786a0e18bd905ad680bc12c4bfa30b44292d2676689dd6f18e9e2143bf6e1b02c2c55f678f SHA512 3f275ec160b9e583b81ba8d463fdb05e9fc9058db2453d9393a56b67337ea04df98a89225323192230938e1abfb48fa60fe0a32b4d8980573b749217b69933e9 |
25 |
+DIST consul-1.6.0.tar.gz 22465984 BLAKE2B 3a030619786e8dabdf8b778012a80ff4b0e76ede6c313b688bf04bfd1a8488bff1bbd4a36c1dd11496bd1942f7bba2a9bb22ae3b364fee4335adfb741756dd67 SHA512 a122892693e3bee0fc0e0b5c0945e4a8dddb890228c091112e0db11a8afd33430611c20ff9bc13d2b3a2ac0d3b560be2d9c4e03a9cc425983fbd8f7edb699658 |
26 |
|
27 |
diff --git a/app-admin/consul/consul-1.6.0.ebuild b/app-admin/consul/consul-1.6.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..b5b9eab35a1 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/consul/consul-1.6.0.ebuild |
32 |
@@ -0,0 +1,74 @@ |
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="944cc71" |
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 |
+ # avoid network-sandbox violations since go-1.13 |
66 |
+ rm src/${EGO_PN}/go.mod || die |
67 |
+ grep -rlZ '_ "github.com/envoyproxy/protoc-gen-validate/validate"' . | \ |
68 |
+ xargs -0 sed -i '/_ "github.com\/envoyproxy\/protoc-gen-validate\/validate"/d' || die |
69 |
+ |
70 |
+ sed -e 's:go get -u -v $(GOTOOLS)::' \ |
71 |
+ -e 's:vendorfmt dev-build:dev-build:' \ |
72 |
+ -i "src/${EGO_PN}/GNUmakefile" || die |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ # The dev target sets causes build.sh to set appropriate XC_OS |
77 |
+ # and XC_ARCH, and skips generation of an unused zip file, |
78 |
+ # avoiding a dependency on app-arch/zip. |
79 |
+ GOPATH="${S}" \ |
80 |
+ GOBIN="${S}/bin" \ |
81 |
+ GIT_DESCRIBE="v${PV}" \ |
82 |
+ GIT_DIRTY="" \ |
83 |
+ GIT_COMMIT="${GIT_COMMIT}" \ |
84 |
+ emake -C "src/${EGO_PN}" dev-build |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ local x |
89 |
+ |
90 |
+ dobin bin/consul |
91 |
+ |
92 |
+ keepdir /etc/consul.d |
93 |
+ insinto /etc/consul.d |
94 |
+ doins "${FILESDIR}/"*.json.example |
95 |
+ |
96 |
+ for x in /var/{lib,log}/${PN}; do |
97 |
+ keepdir "${x}" |
98 |
+ fowners consul:consul "${x}" |
99 |
+ done |
100 |
+ |
101 |
+ newinitd "${FILESDIR}/consul.initd" "${PN}" |
102 |
+ newconfd "${FILESDIR}/consul.confd" "${PN}" |
103 |
+ insinto /etc/logrotate.d |
104 |
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
105 |
+ systemd_dounit "${FILESDIR}/consul.service" |
106 |
+} |