diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-26 10:01:08 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-03-26 10:01:08 +0000 |
commit | d019cee75f8f983ec52982c95c0e59110266623d (patch) | |
tree | 8826872099264d9bc491eed6502270751a5aa584 /meta/packages/diffutils | |
parent | 069bb4019f9dd2698f58030a37474afbf2037301 (diff) | |
download | openembedded-core-d019cee75f8f983ec52982c95c0e59110266623d.tar.gz openembedded-core-d019cee75f8f983ec52982c95c0e59110266623d.tar.bz2 openembedded-core-d019cee75f8f983ec52982c95c0e59110266623d.tar.xz openembedded-core-d019cee75f8f983ec52982c95c0e59110266623d.zip |
diffutils: use update-alternatives for cmp (also provided with busybox 1.9.1)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4121 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/diffutils')
-rw-r--r-- | meta/packages/diffutils/diffutils_2.8.1.bb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta/packages/diffutils/diffutils_2.8.1.bb b/meta/packages/diffutils/diffutils_2.8.1.bb index a0a7b7dad..584188c2a 100644 --- a/meta/packages/diffutils/diffutils_2.8.1.bb +++ b/meta/packages/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 = "r2" +PR = "r3" SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" @@ -18,8 +18,21 @@ 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_PRIORITY = "100" + +pkg_postinst_${PN} () { + +update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100 + +} + +pkg_postrm_${PN} () { + +update-alternatives --remove cmp cmp.diffutils + +} |