1 |
commit: 7522716823c7f09ea142365fe4c39b68e9e8924a |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 13 14:51:27 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 13 14:51:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75227168 |
7 |
|
8 |
app-admin/consul: Version bump to 1.2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.42, Repoman-2.3.9 |
11 |
|
12 |
app-admin/consul/Manifest | 1 + |
13 |
app-admin/consul/consul-1.2.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest |
17 |
index 2a25d32ed0e..bdbe0313ed0 100644 |
18 |
--- a/app-admin/consul/Manifest |
19 |
+++ b/app-admin/consul/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST consul-0.9.3.tar.gz 7278357 BLAKE2B 041164951fe798f51bc79ef4cf322e3c37b5834 |
21 |
DIST consul-1.0.0.tar.gz 7354292 BLAKE2B f2e245cec5859e23dd55c991de5c4d68be8526ec7085273660271407d9f1898c803edbffaff3cd4f0d5de114b9d8b2cd205e03002d5685b77f831957b021140c SHA512 8223f79aa1b7bfc5693168b56fbe9a506ca504771c92328afeb99e78dce8699c7532582749a372dfed10dd4b7c440ace0dd248f1ae27247059da3e2f88293a88 |
22 |
DIST consul-1.0.6.tar.gz 8211299 BLAKE2B 7ea5df497f4796e572a86127e0854935f97439504aff82fb697f33700e9d138048772f32f171dbbe4f1fb4d1ceefa7ca96cf3dce2a22cdffd4e1906f6befa55b SHA512 c55f09272859b828816ddf548952769172331c22be8a70a7f73ab9362744fb1f4bc5fdf81955a0dbc4101584cf3660f182620dcdc56bcf94b42dce644be232a8 |
23 |
DIST consul-1.2.0.tar.gz 17187054 BLAKE2B 5e8d1151efe1e8ad5932886367d0012774713081aa2725f10d45af1e05751e328d76471ff3cbd85031c252c65cde0137f96c3ef86eca7e3e7f6b28e2d20ed0d5 SHA512 1c018a5f35164a899a086ccdae94cb5e6e2a490e4c788d65b0026dbf448950d0c1038b2d61cb10f5e8c9ad22a1affad64dd4a7086b59dffd115d40aa7b3d0cce |
24 |
+DIST consul-1.2.1.tar.gz 14819500 BLAKE2B debb7ee5b8016527de0ebc680b228a9749435db4364e8d6e0160b1a20e2896dd4109edc5930dad961ce18f79182dda0c00a52a567ea6ff2d267b17448df2129d SHA512 5b5d8b62056c305f7388db50b54427ed21c41fef6d1b5f67da845a66bece35454e9f538bb0df59bc86788826b6cd20cd6179552060482908fc5cbc4a048c14a8 |
25 |
|
26 |
diff --git a/app-admin/consul/consul-1.2.1.ebuild b/app-admin/consul/consul-1.2.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c23a7225e2c |
29 |
--- /dev/null |
30 |
+++ b/app-admin/consul/consul-1.2.1.ebuild |
31 |
@@ -0,0 +1,68 @@ |
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="39f3f0" |
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 |
+ GIT_DESCRIBE="v${PV}" \ |
75 |
+ GIT_DIRTY="" \ |
76 |
+ GIT_COMMIT="${GIT_COMMIT}" \ |
77 |
+ emake -C "src/${EGO_PN}" dev-build |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ local x |
82 |
+ |
83 |
+ dobin bin/consul |
84 |
+ |
85 |
+ keepdir /etc/consul.d |
86 |
+ insinto /etc/consul.d |
87 |
+ doins "${FILESDIR}/"*.json.example |
88 |
+ |
89 |
+ for x in /var/{lib,log}/${PN}; do |
90 |
+ keepdir "${x}" |
91 |
+ fowners consul:consul "${x}" |
92 |
+ done |
93 |
+ |
94 |
+ newinitd "${FILESDIR}/consul.initd" "${PN}" |
95 |
+ newconfd "${FILESDIR}/consul.confd" "${PN}" |
96 |
+ insinto /etc/logrotate.d |
97 |
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
98 |
+ systemd_dounit "${FILESDIR}/consul.service" |
99 |
+} |