diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2018-09-18 16:27:27 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-09-25 17:40:49 -0400 |
commit | daaecc315c96f6757a20ca5979c7889c0df02ec9 (patch) | |
tree | 69fc4ddff707d3469b365d7b83e32f57efbe1640 /recipes-connectivity/consul/consul-migrate_git.bb | |
parent | 492de1f32fc0053b692e3173ea6d3d19052f7c97 (diff) | |
download | meta-cloud-services-daaecc315c96f6757a20ca5979c7889c0df02ec9.tar.gz |
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-migrate_git.bb')
-rw-r--r-- | recipes-connectivity/consul/consul-migrate_git.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-connectivity/consul/consul-migrate_git.bb b/recipes-connectivity/consul/consul-migrate_git.bb new file mode 100644 index 0000000..4cc53b2 --- /dev/null +++ b/recipes-connectivity/consul/consul-migrate_git.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "Provides data migration for Consul server nodes" | ||
2 | HOMEPAGE = "https://github.com/hashicorp/consul-migrate" | ||
3 | LICENSE = "MPL-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b278a92d2c1509760384428817710378" | ||
5 | |||
6 | DEPENDS += "raft raft-boltdb raft-mdb" | ||
7 | |||
8 | PKG_NAME = "github.com/hashicorp/consul-migrate" | ||
9 | SRC_URI = "git://${PKG_NAME}.git" | ||
10 | SRCREV = "678fb10cdeae25ab309e99e655148f0bf65f9710" | ||
11 | |||
12 | inherit golang | ||
13 | |||
14 | SYSROOT_PREPROCESS_FUNCS += "consul_migrate_sysroot_preprocess" | ||
15 | |||
16 | export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" | ||
17 | |||
18 | consul_migrate_sysroot_preprocess () { | ||
19 | install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME} | ||
20 | cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) | ||
21 | install -d ${SYSROOT_DESTDIR}${prefix}/bin | ||
22 | cp -a ${D}${prefix}/bin/* ${SYSROOT_DESTDIR}${prefix}/bin/ | ||
23 | } | ||
24 | |||
25 | CLEANBROKEN = "1" | ||
26 | INSANE_SKIP_${PN} = "ldflags" | ||