--- /dev/null
+Name: findutils
+Url: http://www.gnu.org/software/findutils/
+Version: 4.3.8
+Release: 0
+Summary: The GNU versions of find utilities (find and xargs)
+License: GPL-2.0+
+Group: Base/Tools
+# retrieved from http://alpha.gnu.org/pub/gnu/findutils/findutils-4.5.10.tar.gz
+Source: findutils-%{version}.tar.bz2
+Source1: sysconfig.locate
+Source1001: findutils.manifest
+
+%description
+The findutils package contains programs which will help you locate
+files on your system. The find utility searches through a hierarchy
+of directories looking for files which match a certain set of criteria
+(such as a file name pattern). The xargs utility builds and executes
+command lines from standard input arguments (usually lists of file
+names generated by the find command).
+
+You should install findutils because it includes tools that are very
+useful for finding things on your system.
+
+
+%package locate
+Summary: Tool for Locating Files (findutils subpackage)
+Group: Base/Tools
+Provides: findutils:/usr/bin/locate
+Requires: findutils = %{version}
+
+%description locate
+This package contains the locate program which is part of the GNU
+findutils software suite.
+
+You can find files fast using locate. On installing findutils-locate
+an additional daily cron job will be added to the cron system. This
+job will update the files database every night or shortly after
+switching on the computer.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%ifarch %arm armv5tel armv7l armv7el armv5el
+# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
+export DEFAULT_ARG_SIZE="(31u * 1024u)"
+%endif
+%configure \
+ --libexecdir=%{_libdir}/find \
+ --localstatedir=/var/lib
+%{__make} %{?_smp_mflags}
+
+%check
+make check
+
+%install
+%make_install
+
+install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/locate
+rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind
+rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind
+rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint*
+%find_lang %{name}
+
+%docs_package
+
+%lang_package
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license COPYING
+%{_bindir}/find
+%{_bindir}/xargs
+
+%files locate
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{_bindir}/locate
+%{_bindir}/updatedb
+%{_libdir}/find
+%config(noreplace) %{_sysconfdir}/sysconfig/locate
+
+%changelog
--- /dev/null
+## Path: Applications/Locate
+## Description: Configuration of updatedb
+## Type: yesno
+## Default: yes
+#
+# Should updatedb (for locate) be started by cron.daily ("yes" or "no")
+#
+RUN_UPDATEDB=yes
+
+## Type: string(nobody,root)
+## Default: nobody
+#
+# updatedb has a parameter "--localuser".
+# It runs the "find" command as this user. Some people think this is a
+# security hole if set to 'root' (because some directory information can
+# be read which is normally protected). Others think it is useful to hold
+# all files in the database.
+# So if you want full information in locate db, set RUN_UPDATEDB_AS=root.
+# If you want security use RUN_UPDATEDB_AS=nobody.
+#
+RUN_UPDATEDB_AS=nobody
+
+## Type: string
+## Default: ""
+#
+# uptdatedb normally only scans local harddisks, but can include net paths
+# in the database as well. If you specify directories here, they will be
+# scanned.
+#
+UPDATEDB_NETPATHS=""
+
+## Type: string
+## Default: "/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys"
+#
+# uptdatedb can skip directories for its database. The following parameter
+# says which ones.
+#
+UPDATEDB_PRUNEPATHS="/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys"
+
+## Type: string("",nobody)
+## Default: ""
+#
+# Search net paths as ? (e.g. nobody)
+#
+UPDATEDB_NETUSER=""
+
+## Type: string
+## Default: ""
+#
+# updatedb can skip certain filesystem types completely
+# this sets the parameter "--prunefs" for updatedb
+#
+UPDATEDB_PRUNEFS=""
+