summaryrefslogtreecommitdiff
path: root/recipes/findutils
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/findutils
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/findutils')
-rw-r--r--recipes/findutils/findutils-4.2.29/mkinstalldirs.patch14
-rw-r--r--recipes/findutils/findutils-native_4.2.29.bb7
-rw-r--r--recipes/findutils/findutils-native_4.4.bb9
-rw-r--r--recipes/findutils/findutils.inc19
-rw-r--r--recipes/findutils/findutils_4.2.29.bb15
-rw-r--r--recipes/findutils/findutils_4.4.bb14
6 files changed, 78 insertions, 0 deletions
diff --git a/recipes/findutils/findutils-4.2.29/mkinstalldirs.patch b/recipes/findutils/findutils-4.2.29/mkinstalldirs.patch
new file mode 100644
index 0000000000..e82380b1b2
--- /dev/null
+++ b/recipes/findutils/findutils-4.2.29/mkinstalldirs.patch
@@ -0,0 +1,14 @@
+Index: findutils-4.2.29/po/Makefile.in.in
+===================================================================
+--- findutils-4.2.29.orig/po/Makefile.in.in 2008-11-01 22:45:48.466060774 +0100
++++ findutils-4.2.29/po/Makefile.in.in 2008-11-01 22:46:18.000751035 +0100
+@@ -29,8 +29,7 @@
+
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-MKINSTALLDIRS = @MKINSTALLDIRS@
+-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
++mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+
+ GMSGFMT = @GMSGFMT@
+ MSGFMT = @MSGFMT@
diff --git a/recipes/findutils/findutils-native_4.2.29.bb b/recipes/findutils/findutils-native_4.2.29.bb
new file mode 100644
index 0000000000..cb6d72f1e9
--- /dev/null
+++ b/recipes/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/recipes/findutils/findutils-native_4.4.bb b/recipes/findutils/findutils-native_4.4.bb
new file mode 100644
index 0000000000..1a7b1fe4a8
--- /dev/null
+++ b/recipes/findutils/findutils-native_4.4.bb
@@ -0,0 +1,9 @@
+require findutils.inc
+
+inherit native
+
+DEFAULT_PREFERENCE = "-1"
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/findutils-${PV}"
+
+S = "${WORKDIR}/findutils-${PV}"
diff --git a/recipes/findutils/findutils.inc b/recipes/findutils/findutils.inc
new file mode 100644
index 0000000000..209edd60ad
--- /dev/null
+++ b/recipes/findutils/findutils.inc
@@ -0,0 +1,19 @@
+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"
+
+do_install_append() {
+ cd ${D}${bindir} && mv find find.findutils
+ cd ${D}${bindir} && mv xargs xargs.findutils
+}
diff --git a/recipes/findutils/findutils_4.2.29.bb b/recipes/findutils/findutils_4.2.29.bb
new file mode 100644
index 0000000000..a89d0924f4
--- /dev/null
+++ b/recipes/findutils/findutils_4.2.29.bb
@@ -0,0 +1,15 @@
+require findutils.inc
+
+PR = "r1"
+
+SRC_URI += "file://mkinstalldirs.patch;patch=1"
+
+EXTRA_OECONF += " ac_cv_path_SORT=/usr/bin/sort "
+
+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
+}
diff --git a/recipes/findutils/findutils_4.4.bb b/recipes/findutils/findutils_4.4.bb
new file mode 100644
index 0000000000..25dec2592e
--- /dev/null
+++ b/recipes/findutils/findutils_4.4.bb
@@ -0,0 +1,14 @@
+require findutils.inc
+
+PR = "r1"
+DEFAULT_PREFERENCE = "-1"
+
+EXTRA_OECONF += " ac_cv_path_SORT=/usr/bin/sort "
+
+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
+}