summaryrefslogtreecommitdiffstats
path: root/meta/packages/diffutils
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-03-26 10:01:08 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-03-26 10:01:08 +0000
commitd019cee75f8f983ec52982c95c0e59110266623d (patch)
tree8826872099264d9bc491eed6502270751a5aa584 /meta/packages/diffutils
parent069bb4019f9dd2698f58030a37474afbf2037301 (diff)
downloadpoky-d019cee75f8f983ec52982c95c0e59110266623d.tar.gz
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.bb15
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 a0a7b7dad9..584188c2a3 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"
3DESCRIPTION = "Diffutils contains the GNU diff, diff3, \ 3DESCRIPTION = "Diffutils contains the GNU diff, diff3, \
4sdiff, and cmp utilities. These programs are usually \ 4sdiff, and cmp utilities. These programs are usually \
5used for creating patch files." 5used for creating patch files."
6PR = "r2" 6PR = "r3"
7 7
8SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" 8SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz"
9 9
@@ -18,8 +18,21 @@ EXTRA_OECONF_linux-uclibc = "--without-included-regex"
18 18
19do_install_append () { 19do_install_append () {
20 mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN} 20 mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN}
21 mv ${D}${bindir}/cmp ${D}${bindir}/cmp.${PN}
21} 22}
22 23
23ALTERNATIVE_NAME = "diff" 24ALTERNATIVE_NAME = "diff"
24ALTERNATIVE_PATH = "diff.${PN}" 25ALTERNATIVE_PATH = "diff.${PN}"
25ALTERNATIVE_PRIORITY = "100" 26ALTERNATIVE_PRIORITY = "100"
27
28pkg_postinst_${PN} () {
29
30update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100
31
32}
33
34pkg_postrm_${PN} () {
35
36update-alternatives --remove cmp cmp.diffutils
37
38}