aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/consul/consul_git.bb
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2018-09-18 16:27:27 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-09-25 17:40:49 -0400
commitdaaecc315c96f6757a20ca5979c7889c0df02ec9 (patch)
tree69fc4ddff707d3469b365d7b83e32f57efbe1640 /recipes-connectivity/consul/consul_git.bb
parent492de1f32fc0053b692e3173ea6d3d19052f7c97 (diff)
downloadmeta-cloud-services-daaecc315c96f6757a20ca5979c7889c0df02ec9.zip
meta-cloud-services-daaecc315c96f6757a20ca5979c7889c0df02ec9.tar.gz
meta-cloud-services-daaecc315c96f6757a20ca5979c7889c0df02ec9.tar.bz2
consul: consule-migrate: move from meta-overc
After several requests to make the consul recipe available outside of meta-overc and the OverC framework we are moving the consul recipes here. These are a copy from meta-overc (HEAD 6afe8d2c12ac). NOTE that not all the DEPENDS have been copied as we will follow this commit with work to make use of SRC_URIs for dependencies. See the associated commit(s) which will follow this one. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-connectivity/consul/consul_git.bb')
-rw-r--r--recipes-connectivity/consul/consul_git.bb67
1 files changed, 67 insertions, 0 deletions
diff --git a/recipes-connectivity/consul/consul_git.bb b/recipes-connectivity/consul/consul_git.bb
new file mode 100644
index 0000000..bcfb5aa
--- /dev/null
+++ b/recipes-connectivity/consul/consul_git.bb
@@ -0,0 +1,67 @@
+DESCRIPTION = "A tool for discovering and configuring services in your infrastructure"
+HOMEPAGE = "https://www.consul.io/"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378"
+
+DEPENDS += "circbuf \
+ consul-migrate \
+ go-checkpoint \
+ go-msgpack \
+ go-metrics \
+ go-bindata \
+ go-sys \
+ go-syslog \
+ dockerclient \
+ logutils \
+ memberlist \
+ raft \
+ raft-boltdb \
+ scada-client \
+ serf-go \
+ yamux \
+ muxado \
+ dns \
+ cli \
+ mapstructure \
+ copystructure \
+ reflectwalk \
+ columnize \
+ go-radix \
+ golang-lru \
+ hashicorp-hil \
+ hashicorp-hcl \
+ hashicorp-go-cleanhttp \
+ hashicorp-go-memdb \
+ hashicorp-go-reap \
+ hashicorp-go-uuid \
+ net-rpc-msgpackrpc \
+ "
+
+PKG_NAME = "github.com/hashicorp/consul"
+SRC_URI = "git://${PKG_NAME}.git \
+ file://consul.service \
+ file://0001-prepared_query-make-compatible-with-go1.5.patch \
+ "
+SRCREV = "f97afda8e15046b41d951bf3b4220372c45df7ab"
+
+CCACHE = ""
+
+inherit systemd golang
+
+INSANE_SKIP_${PN} += "ldflags"
+
+SYSTEMD_SERVICE_${PN} = "consul.service"
+SYSTEMD_AUTO_ENABLE_${PN} = "enable"
+
+export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
+
+#Stops go from installing and testing the package
+do_configure(){
+}
+
+do_install_append() {
+ install -d ${D}/${systemd_unitdir}/system
+ cp ${WORKDIR}/consul.service ${D}/${systemd_unitdir}/system
+}
+
+FILES_${PN} += "${systemd_unitdir}/system"