From 0e525b540a9aa524e04269c184129e22f8c721db Mon Sep 17 00:00:00 2001 From: Ricardo Salveti de Araujo Date: Fri, 6 Nov 2009 19:40:32 -0300 Subject: [PATCH 027/118] bc: Changing dc installation in order to avoid conflict with busybox. Using update-alternatives to have more priority than busybox. Signed-off-by: Rodrigo Vivi Signed-off-by: Ricardo Salveti de Araujo --- recipes/bc/bc_1.06.bb | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/recipes/bc/bc_1.06.bb b/recipes/bc/bc_1.06.bb index c7fb550..788809d 100644 --- a/recipes/bc/bc_1.06.bb +++ b/recipes/bc/bc_1.06.bb @@ -2,5 +2,19 @@ DESCRIPTION = "An arbitrary precision calculator language." SECTION = "console/utils" SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz" LICENSE = "GPL" +PR = "r1" inherit autotools + +do_install_append () { + mv ${D}${bindir}/dc ${D}${bindir}/dc.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/dc dc dc.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove dc dc.${PN} +} + -- 1.6.3.3