blob: 0d601115543047db809c08f0aec593f395b1c213 [file] [edit]
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"
SRC_URI = " \
git://github.com/mstpd/mstpd;branch=master;protocol=https;tag=${PV} \
file://bridge-stp \
file://mstpd.service \
"
SRCREV = "8995e5d11ee89f2251734e34cea711bb5a5bb911"
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}
}