mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
quagga,pimd: Use update-alternatives for pimd
pimd is provided by both quagga and pimd, prefer quagga over pimd when both are in image Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
|
||||
PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap"
|
||||
PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam"
|
||||
|
||||
inherit autotools update-rc.d useradd systemd pkgconfig multilib_header
|
||||
inherit autotools update-rc.d useradd systemd pkgconfig multilib_header update-alternatives
|
||||
|
||||
CFLAGS += "-fcommon"
|
||||
|
||||
@@ -237,3 +237,7 @@ pkg_prerm_${PN}-ripngd () {
|
||||
pkg_prerm_${PN}-isisd () {
|
||||
${sysconfdir}/init.d/quagga stop isisd
|
||||
}
|
||||
|
||||
ALTERNATIVE_${PN} = "pimd"
|
||||
ALTERNATIVE_LINK_NAME[pimd] = "${sbindir}/pimd"
|
||||
|
||||
|
||||
@@ -12,9 +12,13 @@ SRC_URI[sha256sum] = "c77a9812751f114490a28a6839b16aac8b020c8d9fd6aa22bf3880c054
|
||||
|
||||
EXTRA_OECONF_append_libc-musl = " --embedded-libc"
|
||||
|
||||
inherit autotools-brokensep
|
||||
inherit autotools-brokensep update-alternatives
|
||||
|
||||
do_configure() {
|
||||
oe_runconf
|
||||
}
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
ALTERNATIVE_${PN} = "pimd"
|
||||
ALTERNATIVE_LINK_NAME[pimd] = "${sbindir}/pimd"
|
||||
|
||||
Reference in New Issue
Block a user