Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Alexander Filippov | 000c8ff | 2020-06-10 17:55:57 +0300 | [diff] [blame] | 2 | |
| 3 | inherit systemd |
| 4 | |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 5 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils}" |
| 6 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" |
| 7 | SRC_URI:append = " \ |
Alexander Filippov | 000c8ff | 2020-06-10 17:55:57 +0300 | [diff] [blame] | 8 | file://${BPN}-set-device-id.sh \ |
| 9 | file://${BPN}.service \ |
| 10 | " |
| 11 | |
| 12 | S = "${WORKDIR}" |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 13 | do_install:append() { |
Alexander Filippov | 000c8ff | 2020-06-10 17:55:57 +0300 | [diff] [blame] | 14 | install -d ${D}${bindir} ${D}${systemd_system_unitdir} |
| 15 | install ${BPN}-set-device-id.sh ${D}${bindir}/ |
| 16 | install -m 0644 ${BPN}.service ${D}${systemd_system_unitdir}/ |
| 17 | } |
| 18 | |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 19 | FILES:${PN}:append = " \ |
Alexander Filippov | 000c8ff | 2020-06-10 17:55:57 +0300 | [diff] [blame] | 20 | ${bindir}/${BPN}-set-device-id.sh \ |
| 21 | " |