bridge-utils: add

bridge-utils provides tools for ethernet bridging.

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Zhenhua Luo
2011-12-16 14:19:21 +00:00
committed by Koen Kooi
parent 7a20673d7a
commit 1f7f7df5f3
2 changed files with 34 additions and 0 deletions
@@ -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}
}
@@ -0,0 +1,6 @@
require bridge-utils.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f9d20a453221a1b7e32ae84694da2c37"
SRC_URI[md5sum] = "0182fcac3a2b307113bbec34e5f1c673"
SRC_URI[sha256sum] = "876975e9bcc302aa8b829161ea3348b12b9b879f1db0dc98feaed8d0e5dd5933"