1 DESCRIPTION = "find, locate, and xargs binaries."
2 SECTION = "console/utils"
5 SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz;name=archive"
7 BBCLASSEXTEND = "native"
9 inherit autotools gettext
13 # diffutils assumes non-glibc compilation with uclibc and
14 # this causes it to generate its own implementations of
15 # standard functionality. regex.c actually breaks compilation
16 # because it uses __mempcpy, there are other things (TBD:
17 # see diffutils.mk in buildroot)
18 EXTRA_OECONF_libc-uclibc += "--without-included-regex"
20 EXTRA_OEMAKE += "SORT=${bindir}/sort"
23 cd ${D}${bindir} && mv find find.findutils
24 cd ${D}${bindir} && mv xargs xargs.findutils
26 # When staging native package, postinst/prerm is not called and find.findutils is not so usefull in -native
27 do_install_virtclass-native () {
31 pkg_postinst_${PN} () {
32 for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done
36 for i in find xargs; do update-alternatives --remove $i $i.${PN}; done