diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2016-12-20 14:51:48 +0100 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2016-12-20 14:51:48 +0100 |
commit | 65535be95067665b1212d7f7963e474f3b628af5 (patch) | |
tree | 755fa4133958f35a84d070e8927c6391118869df /recipes-sota/rvi-sota-client/rvi-sota-client_git.bb | |
parent | eff667c136570fa52ed51e2c8d3c38502272b4fb (diff) | |
download | meta-updater-65535be95067665b1212d7f7963e474f3b628af5.tar.gz |
Update sota-client version to match that of meta-oim
Diffstat (limited to 'recipes-sota/rvi-sota-client/rvi-sota-client_git.bb')
-rw-r--r-- | recipes-sota/rvi-sota-client/rvi-sota-client_git.bb | 143 |
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 | ||
9 | S = "${WORKDIR}/git" | 9 | S = "${WORKDIR}/git" |
10 | 10 | ||
11 | SRCREV = "72e6096d9122cde2d9ece4e2693bd470e2b57abe" | 11 | SRCREV = "7fa3b3e088ed002d8d99b5496c5755f0fb358ab0" |
12 | 12 | ||
13 | # Generate with: | 13 | # Generate with: |
14 | # git describe --tags | cut -b2- | 14 | # git describe --tags | cut -b2- |
15 | PV = "v0.2.22-4-g72e6096" | 15 | PV = "0.2.23-5-g7fa3b3e" |
16 | 16 | ||
17 | BBCLASSEXTEND = "native" | 17 | BBCLASSEXTEND = "native" |
18 | 18 | ||
19 | FILES_${PN} = " \ | 19 | FILES_${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 | ||
28 | SRC_URI = " \ | 27 | SRC_URI = " \ |
29 | crate://crates.io/aho-corasick/0.5.3 \ | 28 | crate://crates.io/aho-corasick/0.5.3 \ |
30 | crate://crates.io/time/0.1.35 \ | ||
31 | crate://crates.io/url/1.2.1 \ | ||
32 | crate://crates.io/ws2_32-sys/0.2.1 \ | ||
33 | crate://crates.io/hyper/0.9.4 \ | ||
34 | crate://crates.io/log/0.3.6 \ | ||
35 | crate://crates.io/unicase/1.4.0 \ | ||
36 | crate://crates.io/bitflags/0.7.0 \ | ||
37 | crate://crates.io/bit-set/0.2.0 \ | 29 | crate://crates.io/bit-set/0.2.0 \ |
38 | crate://crates.io/lazy_static/0.2.1 \ | 30 | crate://crates.io/bit-vec/0.4.3 \ |
39 | crate://crates.io/rust-crypto/0.2.36 \ | 31 | crate://crates.io/bitflags/0.4.0 \ |
40 | crate://crates.io/typeable/0.1.2 \ | 32 | crate://crates.io/bitflags/0.7.0 \ |
41 | crate://crates.io/pkg-config/0.3.8 \ | 33 | crate://crates.io/bytes/0.3.0 \ |
42 | crate://crates.io/httparse/1.1.2 \ | 34 | crate://crates.io/cfg-if/0.1.0 \ |
43 | crate://crates.io/openssl/0.8.3 \ | 35 | crate://crates.io/chan-signal/0.1.7 \ |
44 | crate://crates.io/user32-sys/0.2.0 \ | ||
45 | crate://crates.io/regex/0.1.77 \ | ||
46 | crate://crates.io/unicode-normalization/0.1.2 \ | ||
47 | crate://crates.io/idna/0.1.0 \ | ||
48 | crate://crates.io/unicode-bidi/0.2.3 \ | ||
49 | crate://crates.io/rand/0.3.14 \ | ||
50 | crate://crates.io/gcc/0.3.37 \ | ||
51 | crate://crates.io/chan/0.1.18 \ | 36 | crate://crates.io/chan/0.1.18 \ |
52 | crate://crates.io/kernel32-sys/0.2.2 \ | 37 | crate://crates.io/cookie/0.2.5 \ |
53 | crate://crates.io/winapi/0.2.8 \ | ||
54 | crate://crates.io/crossbeam/0.2.10 \ | 38 | crate://crates.io/crossbeam/0.2.10 \ |
55 | crate://crates.io/bitflags/0.4.0 \ | ||
56 | crate://crates.io/thread-id/2.0.0 \ | ||
57 | crate://crates.io/mime/0.2.2 \ | ||
58 | crate://crates.io/thread_local/0.2.7 \ | ||
59 | crate://crates.io/utf8-ranges/0.1.3 \ | ||
60 | crate://crates.io/net2/0.2.26 \ | ||
61 | crate://crates.io/dbus/0.4.1 \ | 39 | crate://crates.io/dbus/0.4.1 \ |
62 | crate://crates.io/winapi-build/0.1.1 \ | 40 | crate://crates.io/env_logger/0.3.5 \ |
63 | crate://crates.io/chan-signal/0.1.7 \ | 41 | crate://crates.io/gcc/0.3.39 \ |
64 | crate://crates.io/bit-vec/0.4.3 \ | 42 | crate://crates.io/gdi32-sys/0.2.0 \ |
65 | crate://crates.io/toml/0.2.1 \ | ||
66 | crate://crates.io/quick-error/0.2.2 \ | ||
67 | crate://crates.io/ws/0.5.3 \ | ||
68 | crate://crates.io/traitobject/0.0.1 \ | ||
69 | crate://crates.io/cfg-if/0.1.0 \ | ||
70 | crate://crates.io/matches/0.1.3 \ | ||
71 | crate://crates.io/getopts/0.2.14 \ | 43 | crate://crates.io/getopts/0.2.14 \ |
72 | crate://crates.io/sha1/0.2.0 \ | 44 | crate://crates.io/hpack/0.2.0 \ |
73 | crate://crates.io/openssl-sys/0.7.17 \ | 45 | crate://crates.io/httparse/1.2.1 \ |
74 | crate://crates.io/cookie/0.2.5 \ | 46 | crate://crates.io/hyper/0.9.13 \ |
75 | crate://crates.io/libressl-pnacl-sys/2.1.6 \ | 47 | crate://crates.io/idna/0.1.0 \ |
48 | crate://crates.io/kernel32-sys/0.2.2 \ | ||
76 | crate://crates.io/language-tags/0.2.2 \ | 49 | crate://crates.io/language-tags/0.2.2 \ |
77 | crate://crates.io/semver/0.1.20 \ | 50 | crate://crates.io/lazy_static/0.1.16 \ |
78 | crate://crates.io/unix_socket/0.5.0 \ | 51 | crate://crates.io/lazy_static/0.2.2 \ |
52 | crate://crates.io/libc/0.2.18 \ | ||
53 | crate://crates.io/log/0.3.6 \ | ||
54 | crate://crates.io/matches/0.1.4 \ | ||
79 | crate://crates.io/memchr/0.1.11 \ | 55 | crate://crates.io/memchr/0.1.11 \ |
80 | crate://crates.io/gdi32-sys/0.2.0 \ | 56 | crate://crates.io/mime/0.2.2 \ |
81 | crate://crates.io/nom/1.2.4 \ | ||
82 | crate://crates.io/mio/0.5.1 \ | 57 | crate://crates.io/mio/0.5.1 \ |
83 | crate://crates.io/tempdir/0.3.5 \ | ||
84 | crate://crates.io/miow/0.1.3 \ | 58 | crate://crates.io/miow/0.1.3 \ |
85 | crate://crates.io/pnacl-build-helper/1.4.10 \ | 59 | crate://crates.io/net2/0.2.26 \ |
86 | crate://crates.io/libc/0.2.17 \ | ||
87 | crate://crates.io/nix/0.5.1 \ | 60 | crate://crates.io/nix/0.5.1 \ |
61 | crate://crates.io/nom/1.2.4 \ | ||
62 | crate://crates.io/num_cpus/1.2.0 \ | ||
63 | crate://crates.io/openssl-sys/0.9.3 \ | ||
64 | crate://crates.io/openssl/0.9.3 \ | ||
65 | crate://crates.io/pkg-config/0.3.8 \ | ||
66 | crate://crates.io/rand/0.3.15 \ | ||
67 | crate://crates.io/regex-syntax/0.3.9 \ | ||
68 | crate://crates.io/regex/0.1.80 \ | ||
69 | crate://crates.io/rust-crypto/0.2.36 \ | ||
70 | crate://crates.io/rustc-serialize/0.3.22 \ | ||
88 | crate://crates.io/rustc_version/0.1.7 \ | 71 | crate://crates.io/rustc_version/0.1.7 \ |
72 | crate://crates.io/semver/0.1.20 \ | ||
73 | crate://crates.io/sha1/0.2.0 \ | ||
89 | crate://crates.io/slab/0.1.3 \ | 74 | crate://crates.io/slab/0.1.3 \ |
90 | crate://crates.io/rustc-serialize/0.3.19 \ | 75 | crate://crates.io/solicit/0.4.4 \ |
91 | crate://crates.io/env_logger/0.3.5 \ | 76 | crate://crates.io/thread-id/2.0.0 \ |
92 | crate://crates.io/vecio/0.1.0 \ | 77 | crate://crates.io/thread_local/0.2.7 \ |
93 | crate://crates.io/rotor/0.6.3 \ | 78 | crate://crates.io/time/0.1.35 \ |
94 | crate://crates.io/openssl-sys-extras/0.7.14 \ | 79 | crate://crates.io/toml/0.2.1 \ |
95 | crate://crates.io/regex-syntax/0.3.7 \ | 80 | crate://crates.io/traitobject/0.0.1 \ |
96 | crate://crates.io/bytes/0.3.0 \ | 81 | crate://crates.io/typeable/0.1.2 \ |
97 | crate://crates.io/void/1.0.2 \ | 82 | crate://crates.io/unicase/1.4.0 \ |
98 | crate://crates.io/spmc/0.2.1 \ | 83 | crate://crates.io/unicode-bidi/0.2.3 \ |
99 | crate://crates.io/openssl-verify/0.1.0 \ | 84 | crate://crates.io/unicode-normalization/0.1.2 \ |
100 | crate-index://crates.io/7670a5aa394d0dcd7598905b352d1634ca74d84a \ | 85 | crate://crates.io/unix_socket/0.5.0 \ |
86 | crate://crates.io/url/1.2.3 \ | ||
87 | crate://crates.io/user32-sys/0.2.0 \ | ||
88 | crate://crates.io/utf8-ranges/0.1.3 \ | ||
89 | crate://crates.io/winapi-build/0.1.1 \ | ||
90 | crate://crates.io/winapi/0.2.8 \ | ||
91 | crate://crates.io/ws/0.5.3 \ | ||
92 | crate://crates.io/ws2_32-sys/0.2.1 \ | ||
101 | git://github.com/advancedtelematic/rvi_sota_client \ | 93 | git://github.com/advancedtelematic/rvi_sota_client \ |
94 | crate-index://crates.io/213b1a455d9270888c03a42c8d29975369102caa \ | ||
102 | " | 95 | " |
103 | SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" | 96 | SRC_URI[index.md5sum] = "79f10f436dbf26737cc80445746f16b4" |
104 | SRC_URI[index.sha256sum] = "86114b93f1f51aaf0aec3af0751d214b351f4ff9839ba031315c1b19dcbb1913" | 97 | SRC_URI[index.sha256sum] = "86114b93f1f51aaf0aec3af0751d214b351f4ff9839ba031315c1b19dcbb1913" |
@@ -113,26 +106,15 @@ RDEPENDS_${PN} = " libcrypto \ | |||
113 | lshw \ | 106 | lshw \ |
114 | jq \ | 107 | jq \ |
115 | " | 108 | " |
116 | export SOTA_VERSION = "${PV}" | ||
117 | 109 | ||
118 | do_compile_prepend() { | 110 | do_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 | |||
125 | do_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 | ||
131 | do_install() { | 114 | do_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 | } |