mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user