diff options
Diffstat (limited to 'packages/diffutils')
-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 + +} |