summaryrefslogtreecommitdiffstats
path: root/recipes-sota
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-12-20 14:51:48 +0100
committerAnton Gerasimov <anton@advancedtelematic.com>2016-12-20 14:51:48 +0100
commit65535be95067665b1212d7f7963e474f3b628af5 (patch)
tree755fa4133958f35a84d070e8927c6391118869df /recipes-sota
parenteff667c136570fa52ed51e2c8d3c38502272b4fb (diff)
downloadmeta-updater-65535be95067665b1212d7f7963e474f3b628af5.tar.gz
Update sota-client version to match that of meta-oim
Diffstat (limited to 'recipes-sota')
-rw-r--r--recipes-sota/rvi-sota-client/rvi-sota-client_git.bb143
1 files changed, 63 insertions, 80 deletions
diff --git a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
index a9a9c2c..0acc6c6 100644
--- a/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
+++ b/recipes-sota/rvi-sota-client/rvi-sota-client_git.bb
@@ -8,97 +8,90 @@ inherit cargo systemd
8 8
9S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
10 10
11SRCREV = "72e6096d9122cde2d9ece4e2693bd470e2b57abe" 11SRCREV = "7fa3b3e088ed002d8d99b5496c5755f0fb358ab0"
12 12
13# Generate with: 13# Generate with:
14# git describe --tags | cut -b2- 14# git describe --tags | cut -b2-
15PV = "v0.2.22-4-g72e6096" 15PV = "0.2.23-5-g7fa3b3e"
16 16
17BBCLASSEXTEND = "native" 17BBCLASSEXTEND = "native"
18 18
19FILES_${PN} = " \ 19FILES_${PN} = " \
20 ${bindir}/sota_client \ 20 /usr/bin/sota_client \
21 ${bindir}/system_info.sh \ 21 /usr/bin/sota_sysinfo.sh \
22 ${sysconfdir}/sota_client.version \ 22 /etc/sota_client.version \
23 ${sysconfdir}/sota_certificates \ 23 /etc/sota_certificates \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota_client.service', '', d)} \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota_client.service', '', d)} \
25 ${bindir}/sota_ostree.sh \
26 " 25 "
27 26
28SRC_URI = " \ 27SRC_URI = " \
29crate://crates.io/aho-corasick/0.5.3 \ 28crate://crates.io/aho-corasick/0.5.3 \
30crate://crates.io/time/0.1.35 \
31crate://crates.io/url/1.2.1 \
32crate://crates.io/ws2_32-sys/0.2.1 \
33crate://crates.io/hyper/0.9.4 \
34crate://crates.io/log/0.3.6 \
35crate://crates.io/unicase/1.4.0 \
36crate://crates.io/bitflags/0.7.0 \
37crate://crates.io/bit-set/0.2.0 \ 29crate://crates.io/bit-set/0.2.0 \
38crate://crates.io/lazy_static/0.2.1 \ 30crate://crates.io/bit-vec/0.4.3 \
39crate://crates.io/rust-crypto/0.2.36 \ 31crate://crates.io/bitflags/0.4.0 \
40crate://crates.io/typeable/0.1.2 \ 32crate://crates.io/bitflags/0.7.0 \
41crate://crates.io/pkg-config/0.3.8 \ 33crate://crates.io/bytes/0.3.0 \
42crate://crates.io/httparse/1.1.2 \ 34crate://crates.io/cfg-if/0.1.0 \
43crate://crates.io/openssl/0.8.3 \ 35crate://crates.io/chan-signal/0.1.7 \
44crate://crates.io/user32-sys/0.2.0 \
45crate://crates.io/regex/0.1.77 \
46crate://crates.io/unicode-normalization/0.1.2 \
47crate://crates.io/idna/0.1.0 \
48crate://crates.io/unicode-bidi/0.2.3 \
49crate://crates.io/rand/0.3.14 \
50crate://crates.io/gcc/0.3.37 \
51crate://crates.io/chan/0.1.18 \ 36crate://crates.io/chan/0.1.18 \
52crate://crates.io/kernel32-sys/0.2.2 \ 37crate://crates.io/cookie/0.2.5 \
53crate://crates.io/winapi/0.2.8 \
54crate://crates.io/crossbeam/0.2.10 \ 38crate://crates.io/crossbeam/0.2.10 \
55crate://crates.io/bitflags/0.4.0 \
56crate://crates.io/thread-id/2.0.0 \
57crate://crates.io/mime/0.2.2 \
58crate://crates.io/thread_local/0.2.7 \
59crate://crates.io/utf8-ranges/0.1.3 \
60crate://crates.io/net2/0.2.26 \
61crate://crates.io/dbus/0.4.1 \ 39crate://crates.io/dbus/0.4.1 \
62crate://crates.io/winapi-build/0.1.1 \ 40crate://crates.io/env_logger/0.3.5 \
63crate://crates.io/chan-signal/0.1.7 \ 41crate://crates.io/gcc/0.3.39 \
64crate://crates.io/bit-vec/0.4.3 \ 42crate://crates.io/gdi32-sys/0.2.0 \
65crate://crates.io/toml/0.2.1 \
66crate://crates.io/quick-error/0.2.2 \
67crate://crates.io/ws/0.5.3 \
68crate://crates.io/traitobject/0.0.1 \
69crate://crates.io/cfg-if/0.1.0 \
70crate://crates.io/matches/0.1.3 \
71crate://crates.io/getopts/0.2.14 \ 43crate://crates.io/getopts/0.2.14 \
72crate://crates.io/sha1/0.2.0 \ 44crate://crates.io/hpack/0.2.0 \
73crate://crates.io/openssl-sys/0.7.17 \ 45crate://crates.io/httparse/1.2.1 \
74crate://crates.io/cookie/0.2.5 \ 46crate://crates.io/hyper/0.9.13 \
75crate://crates.io/libressl-pnacl-sys/2.1.6 \ 47crate://crates.io/idna/0.1.0 \
48crate://crates.io/kernel32-sys/0.2.2 \
76crate://crates.io/language-tags/0.2.2 \ 49crate://crates.io/language-tags/0.2.2 \
77crate://crates.io/semver/0.1.20 \ 50crate://crates.io/lazy_static/0.1.16 \
78crate://crates.io/unix_socket/0.5.0 \ 51crate://crates.io/lazy_static/0.2.2 \
52crate://crates.io/libc/0.2.18 \
53crate://crates.io/log/0.3.6 \
54crate://crates.io/matches/0.1.4 \
79crate://crates.io/memchr/0.1.11 \ 55crate://crates.io/memchr/0.1.11 \
80crate://crates.io/gdi32-sys/0.2.0 \ 56crate://crates.io/mime/0.2.2 \
81crate://crates.io/nom/1.2.4 \
82crate://crates.io/mio/0.5.1 \ 57crate://crates.io/mio/0.5.1 \
83crate://crates.io/tempdir/0.3.5 \
84crate://crates.io/miow/0.1.3 \ 58crate://crates.io/miow/0.1.3 \
85crate://crates.io/pnacl-build-helper/1.4.10 \ 59crate://crates.io/net2/0.2.26 \
86crate://crates.io/libc/0.2.17 \
87crate://crates.io/nix/0.5.1 \ 60crate://crates.io/nix/0.5.1 \
61crate://crates.io/nom/1.2.4 \
62crate://crates.io/num_cpus/1.2.0 \
63crate://crates.io/openssl-sys/0.9.3 \
64crate://crates.io/openssl/0.9.3 \
65crate://crates.io/pkg-config/0.3.8 \
66crate://crates.io/rand/0.3.15 \
67crate://crates.io/regex-syntax/0.3.9 \
68crate://crates.io/regex/0.1.80 \
69crate://crates.io/rust-crypto/0.2.36 \
70crate://crates.io/rustc-serialize/0.3.22 \
88crate://crates.io/rustc_version/0.1.7 \ 71crate://crates.io/rustc_version/0.1.7 \
72crate://crates.io/semver/0.1.20 \
73crate://crates.io/sha1/0.2.0 \
89crate://crates.io/slab/0.1.3 \ 74crate://crates.io/slab/0.1.3 \
90crate://crates.io/rustc-serialize/0.3.19 \ 75crate://crates.io/solicit/0.4.4 \
91crate://crates.io/env_logger/0.3.5 \ 76crate://crates.io/thread-id/2.0.0 \
92crate://crates.io/vecio/0.1.0 \ 77crate://crates.io/thread_local/0.2.7 \
93crate://crates.io/rotor/0.6.3 \ 78crate://crates.io/time/0.1.35 \
94crate://crates.io/openssl-sys-extras/0.7.14 \ 79crate://crates.io/toml/0.2.1 \
95crate://crates.io/regex-syntax/0.3.7 \ 80crate://crates.io/traitobject/0.0.1 \
96crate://crates.io/bytes/0.3.0 \ 81crate://crates.io/typeable/0.1.2 \
97crate://crates.io/void/1.0.2 \ 82crate://crates.io/unicase/1.4.0 \
98crate://crates.io/spmc/0.2.1 \ 83crate://crates.io/unicode-bidi/0.2.3 \
99crate://crates.io/openssl-verify/0.1.0 \ 84crate://crates.io/unicode-normalization/0.1.2 \
100crate-index://crates.io/7670a5aa394d0dcd7598905b352d1634ca74d84a \ 85crate://crates.io/unix_socket/0.5.0 \
86crate://crates.io/url/1.2.3 \
87crate://crates.io/user32-sys/0.2.0 \
88crate://crates.io/utf8-ranges/0.1.3 \
89crate://crates.io/winapi-build/0.1.1 \
90crate://crates.io/winapi/0.2.8 \
91crate://crates.io/ws/0.5.3 \
92crate://crates.io/ws2_32-sys/0.2.1 \
101git://github.com/advancedtelematic/rvi_sota_client \ 93git://github.com/advancedtelematic/rvi_sota_client \
94crate-index://crates.io/213b1a455d9270888c03a42c8d29975369102caa \
102" 95"
103SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" 96SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4"
104SRC_URI[index.sha256sum] = "86114b93f1f51aaf0aec3af0751d214b351f4ff9839ba031315c1b19dcbb1913" 97SRC_URI[index.sha256sum] = "86114b93f1f51aaf0aec3af0751d214b351f4ff9839ba031315c1b19dcbb1913"
@@ -113,26 +106,15 @@ RDEPENDS_${PN} = " libcrypto \
113 lshw \ 106 lshw \
114 jq \ 107 jq \
115 " 108 "
116export SOTA_VERSION = "${PV}"
117 109
118do_compile_prepend() { 110do_compile_prepend() {
119 # Fetch and build the specific build of hyper that is specified in cargo.toml. 111 export SOTA_VERSION=$(make sota-version)
120 # meta-rust doesn't support fetching crates that don't point to a specific tag
121 # and rvi-sota-client needs a specific work-around to function correctly.
122 make rust-openssl
123}
124
125do_compile_append() {
126 # Ensure that the 'make rust-openssl' above resulted in the local build of
127 # rust-openssl being used rather than the default one.
128 strings target/${TARGET_SYS}/release/sota_client | grep ${EXTENDPE}${PV}-${PR}/git/rust-openssl -q || (bberror "local rust-open ssl package not used"; exit 1)
129} 112}
130 113
131do_install() { 114do_install() {
132 install -d ${D}${bindir} 115 install -d ${D}${bindir}
133 install -m 0755 target/${TARGET_SYS}/release/sota_client ${D}${bindir} 116 install -m 0755 target/${TARGET_SYS}/release/sota_client ${D}${bindir}
134 install -m 0755 run/system_info.sh ${D}${bindir} 117 install -m 0755 run/sota_sysinfo.sh ${D}${bindir}
135 install -m 0755 run/sota_ostree.sh ${D}${bindir}
136 118
137 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 119 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
138 install -d ${D}${systemd_unitdir}/system 120 install -d ${D}${systemd_unitdir}/system
@@ -140,5 +122,6 @@ do_install() {
140 fi 122 fi
141 123
142 install -d ${D}${sysconfdir} 124 install -d ${D}${sysconfdir}
125 echo `git log -1 --pretty=format:%H` > ${D}${sysconfdir}/sota_client.version
143 install -c ${S}/run/sota_certificates ${D}${sysconfdir} 126 install -c ${S}/run/sota_certificates ${D}${sysconfdir}
144} 127}