diff --git a/meta-openeuler/recipes-support/bridge-utils/bridge-utils_1.7.1.bb b/meta-openeuler/recipes-support/bridge-utils/bridge-utils_1.7.1.bb new file mode 100644 index 0000000000000000000000000000000000000000..4879091c68b9c5fa6b12678cc669e24b43c4c735 --- /dev/null +++ b/meta-openeuler/recipes-support/bridge-utils/bridge-utils_1.7.1.bb @@ -0,0 +1,37 @@ +SUMMARY = "Tools for ethernet bridging" +HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge" +SECTION = "net" +LICENSE = "GPL-2.0-only" + +LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" + +SRCREV = "75d949b9fae9718201422f0bd3d1103e67dd597c" + +SRC_URI = "\ + file://${BP}.tar.gz \ + file://bridge-utils.spec \ + file://bridge-utils.yaml \ + file://bugfix-avoid-showmacs-memory-leak.patch \ + file://bugfix-bridge-not-check-parameters.patch \ +" + +S = "${WORKDIR}/${BP}/" + +DEPENDS = "sysfsutils" + +inherit autotools-brokensep update-alternatives + +ALTERNATIVE:${PN} = "brctl" +ALTERNATIVE_PRIORITY[brctl] = "100" +ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl" + +EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" + +do_install:append () { + install -d ${D}/${datadir}/bridge-utils + install -d ${D}/${sysconfdir}/network/if-pre-up.d + install -d ${D}/${sysconfdir}/network/if-post-down.d +} + +RRECOMMENDS:${PN} = "kernel-module-bridge" + diff --git a/scripts/download_code.sh b/scripts/download_code.sh index b5271ec26c0f1b0eaaf4d4f98bfcedb5fb5a44b5..67ddf7fe798edde606c99e10a7065084b689c925 100644 --- a/scripts/download_code.sh +++ b/scripts/download_code.sh @@ -258,6 +258,7 @@ download_code() update_code_repo src-openeuler/dtc ${SRC_BRANCH} update_code_repo src-openeuler/libunwind ${SRC_BRANCH} update_code_repo src-openeuler/libatomic_ops ${SRC_BRANCH} + update_code_repo src-openeuler/bridge-utils ${SRC_BRANCH} } # download iSulad related packages