blob: 75692a610333ff2ccf796b66e274c12982dedb9c [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"
Willy Tu89505a02021-02-12 12:16:25 -08007SRCREV = "973c403c79f3d419d9e93a242766ddf0099d1299"
8S = "${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() {
Willy Tu89505a02021-02-12 12:16:25 -080022 rm -r ${D}${libexecdir}
23
24 install -d -m 0755 ${D}/sbin
25 install -m 0755 ${WORKDIR}/bridge-stp ${D}/sbin
26
27 install -d -m 0755 ${D}${systemd_system_unitdir}
28 install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}/
29}