Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 1 | SUMMARY = "Open-source IoT platform for data collection, processing, visualization, and device management" |
| 2 | DESCRIPTION = "\ |
| 3 | The Thingsboard IoT Gateway is an open-source solution that allows you \ |
| 4 | to integrate devices connected to legacy and third-party systems with Thingsboard." |
| 5 | HOMEPAGE = "https://thingsboard.io/" |
| 6 | |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 9 | |
| 10 | SRC_URI[md5sum] = "469c8b5cd1c16c20ef40f0a97a3a0fda" |
| 11 | SRC_URI[sha256sum] = "b328f4e315c3541ac80a4931974a34a81afe4d1f382f48e8604669a55816c0d7" |
| 12 | |
| 13 | inherit pypi setuptools3 |
| 14 | |
| 15 | PYPI_PACKAGE = "thingsboard-gateway" |
| 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 17 | RDEPENDS:${PN} += " python3-jsonpath-rw \ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 18 | python3-regex \ |
| 19 | python3-paho-mqtt \ |
| 20 | python3-pyyaml \ |
| 21 | python3-simplejson \ |
| 22 | python3-requests \ |
| 23 | python3-pip \ |
| 24 | python3-pyrsistent \ |
| 25 | " |
| 26 | |
| 27 | SRC_URI += "file://bacnet.json \ |
| 28 | file://ble.json \ |
| 29 | file://can.json \ |
| 30 | file://custom_serial.json \ |
| 31 | file://modbus.json \ |
| 32 | file://modbus_serial.json \ |
| 33 | file://mqtt.json \ |
| 34 | file://opcua.json \ |
| 35 | file://odbc.json \ |
| 36 | file://request.json \ |
| 37 | file://rest.json \ |
| 38 | file://snmp.json \ |
| 39 | file://tb_gateway.yaml \ |
| 40 | file://logs.conf \ |
| 41 | file://thingsboard-gateway.service \ |
| 42 | " |
| 43 | |
| 44 | |
| 45 | inherit systemd |
| 46 | |
| 47 | SYSTEMD_PACKAGES = "${PN}" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 48 | SYSTEMD_SERVICE:${PN} = "thingsboard-gateway.service" |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 50 | FILES:${PN} += "/etc \ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 51 | /lib \ |
| 52 | /usr \ |
| 53 | " |
| 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 55 | do_install:append(){ |
Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 56 | |
| 57 | install -d ${D}${sysconfdir}/thingsboard-gateway/config |
| 58 | |
| 59 | for file in $(find ${WORKDIR} -maxdepth 1 -type f -name *.json); do |
| 60 | install -m 0644 "$file" ${D}${sysconfdir}/thingsboard-gateway/config |
| 61 | done |
| 62 | |
| 63 | install -m 0644 ${WORKDIR}/tb_gateway.yaml ${D}${sysconfdir}/thingsboard-gateway/config |
| 64 | install -m 0644 ${WORKDIR}/logs.conf ${D}${sysconfdir}/thingsboard-gateway/config |
| 65 | |
| 66 | install -d ${D}${systemd_unitdir}/system/ |
| 67 | install -m 0644 ${WORKDIR}/thingsboard-gateway.service ${D}${systemd_system_unitdir}/thingsboard-gateway.service |
| 68 | } |