diff options
Diffstat (limited to 'meta-google/recipes-extended/networking/mstpd_git.bb')
-rw-r--r-- | meta-google/recipes-extended/networking/mstpd_git.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-google/recipes-extended/networking/mstpd_git.bb b/meta-google/recipes-extended/networking/mstpd_git.bb new file mode 100644 index 000000000..4c3f4abc2 --- /dev/null +++ b/meta-google/recipes-extended/networking/mstpd_git.bb @@ -0,0 +1,29 @@ +PR = "r1" +PV = "0.1+git${SRCPV}" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4" + +SRC_URI = "git://github.com/mstpd/mstpd" +SRCREV = "973c403c79f3d419d9e93a242766ddf0099d1299" +S = "${WORKDIR}/git" + +SRC_URI += "file://bridge-stp" +SRC_URI += "file://mstpd.service" + +inherit autotools pkgconfig systemd + +PACKAGES =+ "${PN}-mstpd" +FILES_${PN}-mstpd = "${sbindir}/mstpd ${sbindir}/mstpctl /sbin/bridge-stp" + +SYSTEMD_PACKAGES = "${PN}-mstpd" +SYSTEMD_SERVICE_${PN}-mstpd = "mstpd.service" + +do_install_append() { + rm -r ${D}${libexecdir} + + install -d -m 0755 ${D}/sbin + install -m 0755 ${WORKDIR}/bridge-stp ${D}/sbin + + install -d -m 0755 ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/mstpd.service ${D}${systemd_system_unitdir}/ +} |