summaryrefslogtreecommitdiff
path: root/meta/packages/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/findutils')
-rw-r--r--meta/packages/findutils/findutils-native_4.2.29.bb7
-rw-r--r--meta/packages/findutils/findutils.inc14
-rw-r--r--meta/packages/findutils/findutils_4.2.29.bb14
3 files changed, 35 insertions, 0 deletions
diff --git a/meta/packages/findutils/findutils-native_4.2.29.bb b/meta/packages/findutils/findutils-native_4.2.29.bb
new file mode 100644
index 0000000000..cb6d72f1e9
--- /dev/null
+++ b/meta/packages/findutils/findutils-native_4.2.29.bb
@@ -0,0 +1,7 @@
+require findutils.inc
+
+inherit native
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/findutils-${PV}"
+
+S = "${WORKDIR}/findutils-${PV}"
diff --git a/meta/packages/findutils/findutils.inc b/meta/packages/findutils/findutils.inc
new file mode 100644
index 0000000000..e054dd0cc7
--- /dev/null
+++ b/meta/packages/findutils/findutils.inc
@@ -0,0 +1,14 @@
+DESCRIPTION = "find, locate, and xargs binaries."
+SECTION = "console/utils"
+LICENSE = "GPL"
+
+SRC_URI = "${GNU_MIRROR}/findutils/findutils-${PV}.tar.gz"
+
+inherit autotools gettext
+
+# diffutils assumes non-glibc compilation with uclibc and
+# this causes it to generate its own implementations of
+# standard functionality. regex.c actually breaks compilation
+# because it uses __mempcpy, there are other things (TBD:
+# see diffutils.mk in buildroot)
+EXTRA_OECONF_linux-uclibc = "--without-included-regex"
diff --git a/meta/packages/findutils/findutils_4.2.29.bb b/meta/packages/findutils/findutils_4.2.29.bb
new file mode 100644
index 0000000000..2f40d03bd4
--- /dev/null
+++ b/meta/packages/findutils/findutils_4.2.29.bb
@@ -0,0 +1,14 @@
+require findutils.inc
+
+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
+}