From 1f7f7df5f34b6e3930665b6d9074d65815b5d176 Mon Sep 17 00:00:00 2001 From: Zhenhua Luo Date: Fri, 16 Dec 2011 14:19:21 +0000 Subject: bridge-utils: add bridge-utils provides tools for ethernet bridging. Signed-off-by: Zhenhua Luo Signed-off-by: Koen Kooi --- .../bridge-utils/bridge-utils.inc | 28 ++++++++++++++++++++++ .../bridge-utils/bridge-utils_1.4.bb | 6 +++++ 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc create mode 100644 meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc new file mode 100644 index 0000000..75bf2a9 --- /dev/null +++ b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils.inc @@ -0,0 +1,28 @@ +DESCRIPTION = "Tools for ethernet bridging." +HOMEPAGE = "http://bridge.sourceforge.net/" +SECTION = "console/network" +LICENSE = "GPLv2" + +SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz" + +inherit autotools + +EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}" + +do_install_append () { + mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN} + install -d ${D}/${datadir}/bridge-utils + install -d ${D}/${sysconfdir}/network/if-pre-up.d + install -d ${D}/${sysconfdir}/network/if-post-down.d +} + +DEPENDS = "sysfsutils" +RRECOMMENDS_${PN} = "kernel-module-bridge" + +pkg_postinst_${PN} () { + update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove brctl brctl.${PN} +} diff --git a/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb new file mode 100644 index 0000000..00a5815 --- /dev/null +++ b/meta-oe/recipes-connectivity/bridge-utils/bridge-utils_1.4.bb @@ -0,0 +1,6 @@ +require bridge-utils.inc + +LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37" + +SRC_URI[md5sum] = "0182fcac3a2b307113bbec34e5f1c673" +SRC_URI[sha256sum] = "876975e9bcc302aa8b829161ea3348b12b9b879f1db0dc98feaed8d0e5dd5933" -- cgit v1.1