diff options
-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 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" | |||
3 | DESCRIPTION = "Diffutils contains the GNU diff, diff3, \ | 3 | DESCRIPTION = "Diffutils contains the GNU diff, diff3, \ |
4 | sdiff, and cmp utilities. These programs are usually \ | 4 | sdiff, and cmp utilities. These programs are usually \ |
5 | used for creating patch files." | 5 | used for creating patch files." |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" | 8 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz" |
9 | 9 | ||
@@ -18,8 +18,21 @@ EXTRA_OECONF_linux-uclibc = "--without-included-regex" | |||
18 | 18 | ||
19 | do_install_append () { | 19 | do_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 | ||
23 | ALTERNATIVE_NAME = "diff" | 24 | ALTERNATIVE_NAME = "diff" |
24 | ALTERNATIVE_PATH = "diff.${PN}" | 25 | ALTERNATIVE_PATH = "diff.${PN}" |
25 | ALTERNATIVE_PRIORITY = "100" | 26 | ALTERNATIVE_PRIORITY = "100" |
27 | |||
28 | pkg_postinst_${PN} () { | ||
29 | |||
30 | update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100 | ||
31 | |||
32 | } | ||
33 | |||
34 | pkg_postrm_${PN} () { | ||
35 | |||
36 | update-alternatives --remove cmp cmp.diffutils | ||
37 | |||
38 | } | ||