Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 1 | LICENSE = "GPL-2.0-or-later" |
| 2 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4" |
| 3 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 4 | PV = "0.1.0+git" |
| 5 | |
| 6 | SRC_URI = " \ |
| 7 | git://github.com/mstpd/mstpd;branch=master;protocol=https \ |
| 8 | file://bridge-stp \ |
| 9 | file://mstpd.service \ |
| 10 | " |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 11 | SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c" |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 14 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+){2,})" |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 15 | |
| 16 | inherit autotools pkgconfig systemd |
| 17 | |
| 18 | PACKAGES =+ "${PN}-mstpd" |
| 19 | FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl ${sbindir}/bridge-stp" |
| 20 | |
| 21 | SYSTEMD_PACKAGES = "${PN}-mstpd" |
| 22 | SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service" |
| 23 | |
| 24 | do_install:append() { |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 25 | rm -rf ${D}${libexecdir} ${D}${libdir}/NetworkManager |
| 26 | rmdir ${D}${libdir} || true |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 27 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 28 | install -d -m 0755 ${D}${sbindir} |
| 29 | install -m 0755 ${WORKDIR}/bridge-stp ${D}${sbindir} |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 30 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 31 | install -d -m 0755 ${D}${systemd_system_unitdir} |
| 32 | install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir} |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 33 | } |