developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 1 | SUMMARY = "Init filogic " |
| 2 | SECTION = "applications" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | S = "${WORKDIR}" |
| 7 | inherit systemd |
| 8 | |
| 9 | SRC_URI = " \ |
| 10 | file://COPYING \ |
| 11 | file://init-IPv6.sh \ |
| 12 | file://init-IPv6.service \ |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 13 | file://init-bridge.sh \ |
| 14 | file://init-Lanbridge.service \ |
developer | 1b68abb | 2022-09-08 14:09:13 +0800 | [diff] [blame] | 15 | file://factorydefault \ |
developer | 7791f1b | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 16 | file://init-PPPQ.service \ |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 17 | " |
| 18 | |
developer | 89ea81b | 2022-08-22 15:34:52 +0800 | [diff] [blame] | 19 | RDEPENDS_${PN} += "bash" |
| 20 | |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 21 | SYSTEMD_PACKAGES = "${PN}" |
| 22 | SYSTEMD_SERVICE_${PN} = " init-IPv6.service" |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 23 | SYSTEMD_SERVICE_${PN} += " init-Lanbridge.service" |
developer | 7791f1b | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 24 | SYSTEMD_SERVICE_${PN} += " init-PPPQ.service" |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 25 | FILES_${PN} += "{systemd_unitdir}/system/init-IPv6.service" |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 26 | FILES_${PN} += "{systemd_unitdir}/system/init-Lanbridge.service" |
developer | 7791f1b | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 27 | FILES_${PN} += "{systemd_unitdir}/system/init-PPPQ.service" |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 28 | |
| 29 | do_install() { |
| 30 | install -d ${D}${sbindir} |
| 31 | install -m 0755 ${WORKDIR}/init-IPv6.sh ${D}${sbindir} |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 32 | install -m 0755 ${WORKDIR}/init-bridge.sh ${D}${sbindir} |
developer | 1b68abb | 2022-09-08 14:09:13 +0800 | [diff] [blame] | 33 | install -m 0755 ${WORKDIR}/factorydefault ${D}${sbindir} |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 34 | install -d ${D}${systemd_unitdir}/system/ |
| 35 | install -m 0644 ${S}/init-IPv6.service ${D}${systemd_unitdir}/system |
developer | 0858735 | 2022-08-29 18:59:45 +0800 | [diff] [blame] | 36 | install -m 0644 ${S}/init-Lanbridge.service ${D}${systemd_unitdir}/system |
developer | 7791f1b | 2022-10-03 16:57:42 +0800 | [diff] [blame] | 37 | install -m 0644 ${S}/init-PPPQ.service ${D}${systemd_unitdir}/system |
developer | 7180b0b | 2022-07-28 14:35:41 +0800 | [diff] [blame] | 38 | } |