mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-10 16:16:00 +02:00
update-alternatives.bbclass does not create the brctl symbolic links for multilib, since the wrong use of PN generates /usr/sbin/brctl.lib32-bridge-utils, not /usr/sbin/brctl.bridge-utils; In fact, no need to rename brctl by calling mv, since update-alternatives will handle it Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
29 lines
940 B
PHP
29 lines
940 B
PHP
SUMMARY = "Tools for ethernet bridging"
|
|
HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
|
|
SECTION = "console/network"
|
|
LICENSE = "GPLv2"
|
|
|
|
DEPENDS = "sysfsutils"
|
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz \
|
|
file://bridge-utils-1.5-check-error-returns-from-write-to-sysfs.patch \
|
|
file://bridge-utils-1.5-fix-error-message-for-incorrect-command.patch \
|
|
file://bridge-utils-1.5-fix-incorrect-command-in-manual.patch \
|
|
"
|
|
|
|
inherit autotools 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"
|