mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
1f7f7df5f3
bridge-utils provides tools for ethernet bridging. Signed-off-by: Zhenhua Luo <b19537@freescale.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
29 lines
739 B
PHP
29 lines
739 B
PHP
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}
|
|
}
|