summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/networking/mstpd_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/networking/mstpd_git.bb')
-rw-r--r--meta-oe/recipes-extended/networking/mstpd_git.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/networking/mstpd_git.bb b/meta-oe/recipes-extended/networking/mstpd_git.bb
new file mode 100644
index 000000000..e2565d620
--- /dev/null
+++ b/meta-oe/recipes-extended/networking/mstpd_git.bb
@@ -0,0 +1,32 @@
1PR = "r1"
2PV = "0.1+git${SRCPV}"
3LICENSE = "GPL-2.0-or-later"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"
5
6SRC_URI = "git://github.com/mstpd/mstpd;branch=master;protocol=https"
7SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c"
8S = "${WORKDIR}/git"
9
10SRC_URI:append = " \
11 file://bridge-stp \
12 file://mstpd.service \
13"
14
15inherit autotools pkgconfig systemd
16
17PACKAGES =+ "${PN}-mstpd"
18FILES:${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl ${sbindir}/bridge-stp"
19
20SYSTEMD_PACKAGES = "${PN}-mstpd"
21SYSTEMD_SERVICE:${PN}-mstpd = "mstpd.service"
22
23do_install:append() {
24 rm -rf ${D}${libexecdir} ${D}${libdir}/NetworkManager
25 rmdir ${D}${libdir} || true
26
27 install -d -m 0755 ${D}/${sbindir}
28 install -m 0755 ${WORKDIR}/bridge-stp ${D}/${sbindir}
29
30 install -d -m 0755 ${D}${systemd_system_unitdir}
31 install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}/
32}