meta-openembedded/meta-oe/recipes-extended/networking/mstpd_git.bb
Alexander Kanavin fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

33 lines
929 B
BlitzBasic

LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"
PV = "0.1.0+git"
SRC_URI = " \
git://github.com/mstpd/mstpd;branch=master;protocol=https \
file://bridge-stp \
file://mstpd.service \
"
SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+){2,})"
inherit autotools pkgconfig systemd
PACKAGES =+ "${PN}-mstpd"
FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl ${sbindir}/bridge-stp"
SYSTEMD_PACKAGES = "${PN}-mstpd"
SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service"
do_install:append() {
rm -rf ${D}${libexecdir} ${D}${libdir}/NetworkManager
rmdir ${D}${libdir} || true
install -d -m 0755 ${D}${sbindir}
install -m 0755 ${UNPACKDIR}/bridge-stp ${D}${sbindir}
install -d -m 0755 ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/mstpd.service ${D}${systemd_system_unitdir}
}