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" |
William A. Kennington III | c1a81dd | 2022-09-06 13:05:46 -0700 | [diff] [blame] | 7 | SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c" |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 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() { |
William A. Kennington III | c1a81dd | 2022-09-06 13:05:46 -0700 | [diff] [blame] | 22 | rm -r ${D}${libexecdir} ${D}${libdir}/NetworkManager |
| 23 | rmdir ${D}${libdir} |
Willy Tu | 89505a0 | 2021-02-12 12:16:25 -0800 | [diff] [blame] | 24 | |
| 25 | install -d -m 0755 ${D}/sbin |
| 26 | install -m 0755 ${WORKDIR}/bridge-stp ${D}/sbin |
| 27 | |
| 28 | install -d -m 0755 ${D}${systemd_system_unitdir} |
| 29 | install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}/ |
| 30 | } |