mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-11 04:49:58 +00:00
bridge-utils: inherit update-alternatives to avoid duplicate code
Inherit update-alternatives to avoid duplicate code. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
@@ -11,7 +11,11 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/bridge/bridge-utils-${PV}.tar.gz \
|
|||||||
file://bridge-utils-1.5-fix-incorrect-command-in-manual.patch \
|
file://bridge-utils-1.5-fix-incorrect-command-in-manual.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools update-alternatives
|
||||||
|
|
||||||
|
ALTERNATIVE_${PN} = "brctl"
|
||||||
|
ALTERNATIVE_PRIORITY[brctl] = "100"
|
||||||
|
ALTERNATIVE_LINK_NAME[brctl] = "${sbindir}/brctl"
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
|
EXTRA_OECONF = "--with-linux-headers=${STAGING_INCDIR}"
|
||||||
|
|
||||||
@@ -23,11 +27,3 @@ do_install_append () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RRECOMMENDS_${PN} = "kernel-module-bridge"
|
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}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user