summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-09-27 12:42:16 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-29 16:42:33 +0100
commitb797a842babd3d4ebad7d383346127a49269fd8b (patch)
tree55d2d4d82955fe5945711fb7fd3a89c9a77fd501 /meta
parent2b181178207ab69b589f4fd0068670ccf23c5aee (diff)
downloadopenembedded-core-b797a842babd3d4ebad7d383346127a49269fd8b.tar.gz
openembedded-core-b797a842babd3d4ebad7d383346127a49269fd8b.tar.bz2
openembedded-core-b797a842babd3d4ebad7d383346127a49269fd8b.tar.xz
openembedded-core-b797a842babd3d4ebad7d383346127a49269fd8b.zip
diffutils: use new batch update-alternatives feature
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/diffutils/diffutils_2.8.1.bb22
1 files changed, 2 insertions, 20 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils_2.8.1.bb b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
index 86b46aafe..2b94cc799 100644
--- a/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
+++ b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
@@ -3,7 +3,7 @@ LICENSE = "GPL"
DESCRIPTION = "Diffutils contains the GNU diff, diff3, \
sdiff, and cmp utilities. These programs are usually \
used for creating patch files."
-PR = "r3"
+PR = "r4"
SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz"
@@ -16,23 +16,5 @@ inherit autotools update-alternatives gettext
# see diffutils.mk in buildroot)
EXTRA_OECONF_linux-uclibc = "--without-included-regex"
-do_install_append () {
- mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN}
- mv ${D}${bindir}/cmp ${D}${bindir}/cmp.${PN}
-}
-
-ALTERNATIVE_NAME = "diff"
-ALTERNATIVE_PATH = "diff.${PN}"
+ALTERNATIVE_LINKS = "${bindir}/diff ${bindir}/cmp"
ALTERNATIVE_PRIORITY = "100"
-
-pkg_postinst_${PN} () {
-
-update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100
-
-}
-
-pkg_postrm_${PN} () {
-
-update-alternatives --remove cmp cmp.diffutils
-
-}