Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 1 | PR = "r1" |
| 2 | PV = "0.1+git${SRCPV}" |
Patrick Williams | d541ec5 | 2022-04-30 07:41:26 -0500 | [diff] [blame^] | 3 | LICENSE = "GPL-2.0-or-later" |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4" |
| 5 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 6 | SRC_URI = "git://github.com/mstpd/mstpd;branch=master;protocol=https" |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 7 | SRCREV = "973c403c79f3d419d9e93a242766ddf0099d1299" |
| 8 | S = "${WORKDIR}/git" |
| 9 | |
| 10 | SRC_URI += "file://bridge-stp" |
| 11 | SRC_URI += "file://mstpd.service" |
| 12 | |
| 13 | inherit autotools pkgconfig systemd |
| 14 | |
| 15 | PACKAGES =+ "${PN}-mstpd" |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 16 | FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl /sbin/bridge-stp" |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 17 | |
| 18 | SYSTEMD_PACKAGES = "${PN}-mstpd" |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 19 | SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service" |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 20 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 21 | do_install:append() { |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 22 | rm -r ${D}${libexecdir} |
| 23 | |
| 24 | install -d -m 0755 ${D}/sbin |
| 25 | install -m 0755 ${WORKDIR}/bridge-stp ${D}/sbin |
| 26 | |
| 27 | install -d -m 0755 ${D}${systemd_system_unitdir} |
| 28 | install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}/ |
| 29 | } |