summaryrefslogtreecommitdiff
path: root/meta-google/recipes-extended/networking/mstpd_git.bb
blob: 309f626fa92ce355dee09547f607faa85ccbb495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PR = "r1"
PV = "0.1+git${SRCPV}"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"

SRC_URI = "git://github.com/mstpd/mstpd;branch=master;protocol=https"
SRCREV = "181c453fc1a00573e19f14960dcc54ad84beea7c"
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} ${D}${libdir}/NetworkManager
  rmdir ${D}${libdir}

  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}/
}