blob: 309f626fa92ce355dee09547f607faa85ccbb495 [file] [log] [blame]
Willy Tu89505a02021-02-12 12:16:25 -08001PR = "r1"
2PV = "0.1+git${SRCPV}"
Patrick Williamsd541ec52022-04-30 07:41:26 -05003LICENSE = "GPL-2.0-or-later"
Willy Tu89505a02021-02-12 12:16:25 -08004LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"
5
Patrick Williamsbb99d222022-01-24 15:55:09 -06006SRC_URI = "git://github.com/mstpd/mstpd;branch=master;protocol=https"
William A. Kennington IIIc1a81dd2022-09-06 13:05:46 -07007SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c"
Willy Tu89505a02021-02-12 12:16:25 -08008S = "${WORKDIR}/git"
9
10SRC_URI += "file://bridge-stp"
11SRC_URI += "file://mstpd.service"
12
13inherit autotools pkgconfig systemd
14
15PACKAGES =+ "${PN}-mstpd"
Willy Tu4dd03ca2021-08-06 09:37:35 -070016FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl /sbin/bridge-stp"
Willy Tu89505a02021-02-12 12:16:25 -080017
18SYSTEMD_PACKAGES = "${PN}-mstpd"
Willy Tu4dd03ca2021-08-06 09:37:35 -070019SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service"
Willy Tu89505a02021-02-12 12:16:25 -080020
Willy Tu4dd03ca2021-08-06 09:37:35 -070021do_install:append() {
William A. Kennington IIIc1a81dd2022-09-06 13:05:46 -070022 rm -r ${D}${libexecdir} ${D}${libdir}/NetworkManager
23 rmdir ${D}${libdir}
Willy Tu89505a02021-02-12 12:16:25 -080024
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}