diff options
Diffstat (limited to 'recipes/findutils')
-rw-r--r-- | recipes/findutils/findutils-4.2.29/mkinstalldirs.patch | 14 | ||||
-rw-r--r-- | recipes/findutils/findutils-native_4.2.29.bb | 7 | ||||
-rw-r--r-- | recipes/findutils/findutils-native_4.4.bb | 9 | ||||
-rw-r--r-- | recipes/findutils/findutils.inc | 19 | ||||
-rw-r--r-- | recipes/findutils/findutils_4.2.29.bb | 15 | ||||
-rw-r--r-- | recipes/findutils/findutils_4.4.bb | 14 |
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 +} |