summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-10-24 00:01:10 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-10-24 00:01:10 +0000
commitba0c83a289da26a48f1b08fd69b7d8ef501b224a (patch)
treefc2dd54a1c594fbd9b34e9e6a582f74e0c3f8f7b /packages
parent5e035af68c660b8f5cd56ba1fa7a0262477216e1 (diff)
findutils 4.1.20: Use alternatives for find and xargs since these commands
are also provided by busybox. Closes #1472.
Diffstat (limited to 'packages')
-rw-r--r--packages/findutils/findutils_4.1.20.bb15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/findutils/findutils_4.1.20.bb b/packages/findutils/findutils_4.1.20.bb
index e633b6d405..0ea93f44d3 100644
--- a/packages/findutils/findutils_4.1.20.bb
+++ b/packages/findutils/findutils_4.1.20.bb
@@ -1,7 +1,7 @@
SECTION = "console/utils"
LICENSE = "GPL"
DESCRIPTION = "find, locate, and xargs binaries."
-PR = "r2"
+PR = "r3"
SRC_URI = "ftp://alpha.gnu.org/gnu/findutils/findutils-${PV}.tar.gz \
file://configure.patch;patch=1 \
@@ -15,3 +15,16 @@ inherit autotools gettext
# because it uses __mempcpy, there are other things (TBD:
# see diffutils.mk in buildroot)
EXTRA_OECONF_linux-uclibc = "--without-included-regex"
+
+do_install_append () {
+ mv ${D}${bindir}/find ${D}${bindir}/find.${PN}
+ mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN}
+}
+
+pkg_postinst_${PN} () {
+ for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done
+}
+
+pkg_prerm_${PN} () {
+ for i in find xargs; do update-alternatives --remove $i $i.${PN}; done
+}