diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-04-08 11:55:32 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-04-08 11:55:32 +0000 |
commit | 1dc00eb81a2d185d0d78a67077dddef717399cd9 (patch) | |
tree | ca8a252ce480ab1a40bdd69ba40e29beea8696d6 /packages | |
parent | 40d4d8f4d9ab5771b2e9dff13b7150e9968e14c2 (diff) |
diffutils: use update-alternatives for cmp (also provided with busybox 1.9.1) (from Poky)
Diffstat (limited to 'packages')
-rw-r--r-- | packages/diffutils/diffutils_2.8.1.bb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/diffutils/diffutils_2.8.1.bb b/packages/diffutils/diffutils_2.8.1.bb index a0a7b7dad9..584188c2a3 100644 --- a/packages/diffutils/diffutils_2.8.1.bb +++ b/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 + +} |