fix solo2 ethernet problem in some Gigabit switches
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / bridge-utils / bridge-utils.inc
1 DESCRIPTION = "Tools for ethernet bridging."
2 HOMEPAGE = "http://bridge.sourceforge.net/"
3 SECTION = "console/network"
4 LICENSE = "GPLv2"
5
6 SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz"
7
8 inherit autotools
9
10 EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
11
12 do_install_append () {
13         mv ${D}${sbindir}/brctl ${D}${sbindir}/brctl.${PN}
14         install -d ${D}/${datadir}/bridge-utils
15         install -d ${D}/${sysconfdir}/network/if-pre-up.d
16         install -d ${D}/${sysconfdir}/network/if-post-down.d
17 }
18
19 DEPENDS = "sysfsutils"
20 RRECOMMENDS_${PN} = "kernel-module-bridge"
21
22 pkg_postinst_${PN} () {
23         update-alternatives --install ${sbindir}/brctl brctl brctl.${PN} 100
24 }
25
26 pkg_prerm_${PN} () {
27         update-alternatives --remove brctl brctl.${PN}
28 }