summaryrefslogtreecommitdiff
path: root/packages/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/findutils')
-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
+}