1 |
commit: 4d7e66d6b736f3b06f1a41ad2ee07cf1d1cf71b0 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 3 13:04:24 2014 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 3 13:04:24 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=4d7e66d6 |
7 |
|
8 |
new app-admin/consul ebuild |
9 |
|
10 |
--- |
11 |
app-admin/consul/Manifest | 1 + |
12 |
app-admin/consul/consul-0.2.1.ebuild | 54 ++++++++++++++++++++++++++++++++++++ |
13 |
2 files changed, 55 insertions(+) |
14 |
|
15 |
diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest |
16 |
new file mode 100644 |
17 |
index 0000000..10a18f8 |
18 |
--- /dev/null |
19 |
+++ b/app-admin/consul/Manifest |
20 |
@@ -0,0 +1 @@ |
21 |
+EBUILD consul-0.2.1.ebuild 1020 SHA256 c425c13b033c36d871078c01ae629de1b179b736068d7a1e13799ed387574e19 SHA512 58ca9a619e2f128ea7c72d9c423c7b3bfd3ee9a15873f7180b134b92d608bd87145187987c9a40ac0205aaf4bb3592a0d2c440858442096e8623b311bcdaa923 WHIRLPOOL 6d8dc042f0cea42c57dddb73774d699166905bdecca8daa57021fc665a7897cac5cf6f7dd34bf0b6cbcfada980bfad0461f851b87c784964a4fdf904428e2f8c |
22 |
|
23 |
diff --git a/app-admin/consul/consul-0.2.1.ebuild b/app-admin/consul/consul-0.2.1.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..11ea2fd |
26 |
--- /dev/null |
27 |
+++ b/app-admin/consul/consul-0.2.1.ebuild |
28 |
@@ -0,0 +1,54 @@ |
29 |
+# Copyright 1999-2014 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Header: $ |
32 |
+ |
33 |
+EAPI=5 |
34 |
+ |
35 |
+DESCRIPTION="tool for service discovery, monitoring and configuration." |
36 |
+HOMEPAGE="http://www.consul.io" |
37 |
+SRC_URI="" |
38 |
+ |
39 |
+EGIT_REPO_URI="git://github.com/hashicorp/consul.git" |
40 |
+if [[ ${PV} == *9999 ]]; then |
41 |
+ KEYWORDS="" |
42 |
+else |
43 |
+ EGIT_COMMIT="v${PV}" |
44 |
+ KEYWORDS="~amd64 ~x86" |
45 |
+fi |
46 |
+ |
47 |
+inherit git-2 |
48 |
+ |
49 |
+LICENSE="MPL-2.0" |
50 |
+SLOT="0" |
51 |
+IUSE="" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ >=dev-lang/go-1.2 |
55 |
+ dev-vcs/git |
56 |
+" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ # see : https://github.com/hashicorp/consul/pull/188 |
61 |
+ sed -e 's/format:/format: deps/g' -i Makefile |
62 |
+} |
63 |
+ |
64 |
+src_compile() { |
65 |
+ # create a suitable GOPATH |
66 |
+ export GOPATH="${WORKDIR}/gopath" |
67 |
+ mkdir -p "$GOPATH" || die |
68 |
+ |
69 |
+ local MY_S="${GOPATH}/src/github.com/hashicorp/consul" |
70 |
+ |
71 |
+ # make sure consul itself is in our GOPATH |
72 |
+ mkdir -p "${GOPATH}/src/github.com/hashicorp" || die |
73 |
+ mv "${S}" "${MY_S}" || die |
74 |
+ ln -sf "${MY_S}" "${S}" |
75 |
+ |
76 |
+ # let's do something fun |
77 |
+ emake |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ dobin bin/consul |
82 |
+} |