aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/consul/consul_git.bb
blob: bcfb5aa3e22b615032750e579d2dc4947ee16957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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"