public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/ultrabug:master commit in: app-admin/consul/
Date: Wed,  4 Jun 2014 13:38:48 +0000 (UTC)	[thread overview]
Message-ID: <1401889124.72a7543fbf7d0c09a81f083fd6f9b1c2cd1e801c.ultrabug@gentoo> (raw)

commit:     72a7543fbf7d0c09a81f083fd6f9b1c2cd1e801c
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  4 13:38:44 2014 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 13:38:44 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=72a7543f

add consul-9999

---
 app-admin/consul/Manifest           |  3 +-
 app-admin/consul/consul-9999.ebuild | 79 +++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+), 1 deletion(-)

diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest
index 00dd35f..3b6b7db 100644
--- a/app-admin/consul/Manifest
+++ b/app-admin/consul/Manifest
@@ -1,3 +1,4 @@
 AUX consul-agent.confd 126 SHA256 f86878f356ba57b9d54f94ff93798b6751833127efa03214ad5afa68a17bb5f2 SHA512 a6ef9db3ed9a3a6cd1c50ada4e1c2c7cd6e7d3eff44bacc21e3e11d83a764df1d311998d54951afb8a96854a4f80ff8920e21133cb8bbd55cf96f7285fb3bad3 WHIRLPOOL e2e7a64bb3dc983919ac42c5bb221272a666145322ebf6ee2f91b72d8101ea9f90170d41826a683e3d318df0581e89d272e0d51793d845c67094fa274da67fe2
 AUX consul-agent.initd 1047 SHA256 b7b30d8d60ea2fdfcd0a7b57060c0852dd962fe4cdb006e1d9ce4e1786699112 SHA512 06a45088ee8d19a57505a66ebab738e9afe87c4bb8aa2650ae68c5459cf2f2da0f9e5c60e61bbe1afd8597c10233cbf85abc00d9f8bc15dc8940abb356e03fc3 WHIRLPOOL e7f7a3e5a6dd7645b5dc144494bae4c0ea5196ecc25d280fb8366cff5fd9356017b842776ae739609612edd893538969edc7affb345013196b01d4a359304ef5
-EBUILD consul-0.2.1.ebuild 1541 SHA256 f7ce56538bb34609d4e98a3f8403c94c82028aec2f9c789359167981147afc08 SHA512 ed95ed9403d2dac5c4069c585f8c8e79ab4b96739e431ba2453b3578225cf4292a5f5e8c101753486d3e534cb3c1d763ebd0aa167021fac8677de61f2954f2e4 WHIRLPOOL 49426c5405c85afdaa0a9d8f3d4b904472d4007b084a22e4981d0f6fa2664e3a52fca8deead182ae8ecd585c18737598053b3c1ab161bd2d9b0edda88271d5e4
+EBUILD consul-0.2.1.ebuild 1548 SHA256 06ec50067b4fadae97631feb215ead3a872632c793bc033f3824106070a04158 SHA512 36993369e6052c7e074c941d47fac51c3845c244be1aca7413f8037d75127d51c88d296323c0f78b675cb28badddc4dbad1092cb60a91ea7408873f466ceddd3 WHIRLPOOL 1abddcbc6fb7f3d71140646a926fcae0045a0097debee49221046882389bb89a7152dc94590115e9522e097e313a5a8a6d24cffcd9e0c0dc4b414f30054977ca
+EBUILD consul-9999.ebuild 1421 SHA256 eb68665ccbd97261edf476cb1cb2f6cdbcc78a118fbc950f355364751e0b5f6c SHA512 2d6130bfce73960e2763d1c92849bcfe9443561e4e4fe006137cea6a62262378a2dbd80227a1881f91a45daf73d0fdd0ff2d1b5efa81b84e5c2174008e33d592 WHIRLPOOL caac446ec3805ca5870c10a09abe63afddaba7b75df7e30da9b05ff50f7469e2397fa7d34be1dbda27f1de10dc58db0f9520a2ad9e1c99231e7321dd3fb3d6d0

diff --git a/app-admin/consul/consul-9999.ebuild b/app-admin/consul/consul-9999.ebuild
new file mode 100644
index 0000000..027fd14
--- /dev/null
+++ b/app-admin/consul/consul-9999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="tool for service discovery, monitoring and configuration."
+HOMEPAGE="http://www.consul.io"
+SRC_URI=""
+
+EGIT_REPO_URI="git://github.com/hashicorp/consul.git"
+if [[ ${PV} == *9999 ]]; then
+	KEYWORDS=""
+else
+	EGIT_COMMIT="v${PV}"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+inherit git-2 user
+
+LICENSE="MPL-2.0"
+SLOT="0"
+IUSE="web"
+
+DEPEND="
+	>=dev-lang/go-1.2
+	dev-vcs/git
+	web? ( dev-ruby/bundler dev-ruby/sass )
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+	enewgroup consul
+	enewuser consul -1 -1 /var/lib/${PN} consul
+}
+
+src_compile() {
+	# create a suitable GOPATH
+	export GOPATH="${WORKDIR}/gopath"
+	mkdir -p "$GOPATH" || die
+
+	local MY_S="${GOPATH}/src/github.com/hashicorp/consul"
+
+	# move consul itself in our GOPATH
+	mkdir -p "${GOPATH}/src/github.com/hashicorp" || die
+	mv "${S}" "${MY_S}" || die
+
+	# piggyback our $S
+	ln -sf "${MY_S}" "${S}" || die
+
+	# let's do something fun
+	emake
+
+	# build the web UI
+	if use web; then
+		cd ui
+		bundle
+		emake dist
+	fi
+}
+
+src_install() {
+	dobin bin/consul
+
+	dodir /etc/consul.d
+
+	for x in /var/{lib,log}/${PN}; do
+		keepdir "${x}"
+		fowners consul:consul "${x}"
+	done
+
+	if use web; then
+		insinto /var/lib/${PN}/ui
+		doins -r ui/dist/*
+	fi
+
+	newinitd "${FILESDIR}/consul-agent.initd" "${PN}-agent"
+	newconfd "${FILESDIR}/consul-agent.confd" "${PN}-agent"
+}


             reply	other threads:[~2014-06-04 13:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04 13:38 Alexys Jacob [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-03 14:21 [gentoo-commits] dev/ultrabug:master commit in: app-admin/consul/ Alexys Jacob
2015-03-26 12:16 Alexys Jacob
2014-10-21 13:42 Alexys Jacob
2014-08-14  8:48 Alexys Jacob
2014-10-21 13:42 ` Alexys Jacob
2014-06-25 15:01 Alexys Jacob
2014-06-04 13:38 Alexys Jacob
2014-06-04 10:05 Alexys Jacob
2014-06-03 17:17 Alexys Jacob
2014-06-03 13:04 Alexys Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401889124.72a7543fbf7d0c09a81f083fd6f9b1c2cd1e801c.ultrabug@gentoo \
    --to=ultrabug@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox