From 5cef78439cc7fcf44e2ceb1914bd688a21cec71b Mon Sep 17 00:00:00 2001 From: huyongqiang Date: Fri, 28 Oct 2022 15:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0bridge-utils=E5=B7=A5?= =?UTF-8?q?=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bridge-utils/bridge-utils_1.7.1.bb | 37 +++++++++++++++++++ scripts/download_code.sh | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-openeuler/recipes-support/bridge-utils/bridge-utils_1.7.1.bb 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 00000000000..4879091c68b --- /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 b5271ec26c0..67ddf7fe798 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 -- Gitee