blob: b2043ef0620f3e753db8ea689e9e8d07cb77bdcd [file] [log] [blame]
Patrick Williams2a254922023-08-11 09:48:11 -05001LICENSE = "GPL-2.0-or-later"
2LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"
3
Patrick Williamsac13d5f2023-11-24 18:59:46 -06004PV = "0.1.0+git"
5
6SRC_URI = " \
7 git://github.com/mstpd/mstpd;branch=master;protocol=https \
8 file://bridge-stp \
9 file://mstpd.service \
10"
Patrick Williams2a254922023-08-11 09:48:11 -050011SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c"
12S = "${WORKDIR}/git"
13
Patrick Williamsac13d5f2023-11-24 18:59:46 -060014UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+){2,})"
Patrick Williams2a254922023-08-11 09:48:11 -050015
16inherit autotools pkgconfig systemd
17
18PACKAGES =+ "${PN}-mstpd"
19FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl ${sbindir}/bridge-stp"
20
21SYSTEMD_PACKAGES = "${PN}-mstpd"
22SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service"
23
24do_install:append() {
Patrick Williamsac13d5f2023-11-24 18:59:46 -060025 rm -rf ${D}${libexecdir} ${D}${libdir}/NetworkManager
26 rmdir ${D}${libdir} || true
Patrick Williams2a254922023-08-11 09:48:11 -050027
Patrick Williamsac13d5f2023-11-24 18:59:46 -060028 install -d -m 0755 ${D}${sbindir}
29 install -m 0755 ${WORKDIR}/bridge-stp ${D}${sbindir}
Patrick Williams2a254922023-08-11 09:48:11 -050030
Patrick Williamsac13d5f2023-11-24 18:59:46 -060031 install -d -m 0755 ${D}${systemd_system_unitdir}
32 install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}
Patrick Williams2a254922023-08-11 09:48:11 -050033}