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:
Khem Raj
2020-09-01 14:29:21 -07:00
parent 0b15dce76a
commit 7df48b8014
2 changed files with 10 additions and 2 deletions
@@ -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"