Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:" |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 2 | |
| 3 | inherit systemd |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 4 | RDEPENDS:${PN} += "bash" |
| 5 | SYSTEMD_SERVICE:${PN}:append:kudo = " tla2024-enable.service" |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 6 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 7 | SRC_URI:append:kudo = " \ |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 8 | file://virtual_sensor_config.json \ |
| 9 | file://tla2024-enable.service \ |
| 10 | file://tla2024-enable.sh \ |
| 11 | " |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 12 | FILES:${PN}:append:kudo = " ${bindir}/tla2024-enable.sh" |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 13 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 14 | do_install:append:kudo() { |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 15 | install -d ${D}${datadir}/${PN} |
| 16 | install -m 0644 ${WORKDIR}/virtual_sensor_config.json ${D}${datadir}/${PN}/virtual_sensor_config.json |
Charles Boyer | 2adad36 | 2021-11-24 15:58:03 -0600 | [diff] [blame] | 17 | |
| 18 | install -d ${D}${libexecdir}/${PN} |
| 19 | install -m 0755 ${WORKDIR}/tla2024-enable.sh ${D}${libexecdir}/${PN}/tla2024-enable.sh |
mustafa | 17bef00 | 2021-03-29 17:15:22 -0500 | [diff] [blame] | 20 | |
| 21 | install -d ${D}${systemd_system_unitdir} |
| 22 | install -m 0644 ${WORKDIR}/tla2024-enable.service ${D}${systemd_system_unitdir}/tla2024-enable.service |
| 23 | } |