blob: cf7ed5cd76529886f719a38fc80b72ff550f518e (
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
|
DESCRIPTION = "Provides the Multi-Tech MDM client"
SECTION = "remote-management"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PROVIDES = "annex-client"
# NOTE: annex-client binary is built with Jenkin's job using annex-client-from-src.bb
# To update this, manually copy ipk from Jenkin's job to .net/downloads/
PR = "r2"
ANNEX_PR = "r1"
SRC_URI = "http://multitech.net/downloads/annex-client-from-src_1.0-${ANNEX_PR}.0_${TUNE_PKGARCH}.ipk \
file://annex-client.init \
file://monitor-annexcd \
file://call_home \
file://call_home.init \
file://config.json.sample \
file://push_api_mdm_connected \
file://push_api_mdm_status \
"
SRC_URI[md5sum] = "e180f4e569fbba2f5b9d524b5a9e944e"
SRC_URI[sha256sum] = "1e93c65005c630cf211615dc143eb64f177591efcdbed6952142c7bac0e95988"
#inherit update-rc.d
#
#INITSCRIPT_NAME = "annex-client"
#INITSCRIPT_PARAMS = "defaults 95 1"
S = "${WORKDIR}"
DHQ_DIR="/opt/devicehq"
do_install() {
install -d ${D}${sbindir}
install -m 755 sbin/annexcd ${D}${sbindir}
install -d ${D}/etc/ssl/certs
install -m 644 etc/ssl/certs/rootCA.pem ${D}/etc/ssl/certs
install -d ${D}${base_sbindir}
install -m 755 ${WORKDIR}/monitor-annexcd ${D}${base_sbindir}
install -m 755 ${WORKDIR}/call_home ${D}${base_sbindir}
install -m 755 ${WORKDIR}/push_api_mdm_connected ${D}${base_sbindir}
install -m 755 ${WORKDIR}/push_api_mdm_status ${D}${base_sbindir}
install -d ${D}${sysconfdir}/init.d
install -m 755 ${WORKDIR}/annex-client.init ${D}${sysconfdir}/init.d/annex-client
install -m 755 ${WORKDIR}/call_home.init ${D}${sysconfdir}/init.d/call_home
install -d ${D}${DHQ_DIR}
install -m 644 ${WORKDIR}/config.json.sample ${D}${DHQ_DIR}
}
FILES_${PN} += "${DHQ_DIR}"
|