Add packaging files 75/54975/1 accepted/tizen_common accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/base/20151224.104206 accepted/tizen/common/20160107.114017 accepted/tizen/mobile/20151224.102117 accepted/tizen/tv/20151224.102154 accepted/tizen/wearable/20151224.102222 submit/tizen/20151222.063629 submit/tizen/20151223.013239 submit/tizen_base/20151224.082742 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_common/20160104.112601
authorHurnjoo Lee <hurnjoo.lee@samsung.com>
Mon, 21 Dec 2015 05:46:10 +0000 (14:46 +0900)
committerHurnjoo Lee <hurnjoo.lee@samsung.com>
Mon, 21 Dec 2015 05:46:10 +0000 (14:46 +0900)
Change-Id: I4712adc96dd9471fb473a07f4466fb9c9397166c
Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
packaging/findutils.changes [new file with mode: 0644]
packaging/findutils.manifest [new file with mode: 0644]
packaging/findutils.spec [new file with mode: 0644]
packaging/sysconfig.locate [new file with mode: 0644]

diff --git a/packaging/findutils.changes b/packaging/findutils.changes
new file mode 100644 (file)
index 0000000..0565955
--- /dev/null
@@ -0,0 +1,6 @@
+* Fri Nov 28 2014 Chanho Park <chanho61.park@samsung.com> upstream/4.5.14-7-gabfd50b
+- Imported Upstream version 4.5.14
+
+* Mon Mar 18 2013 Anas Nashif <anas.nashif@intel.com> upstream/4.5.10@52e3143
+- Fixed package group
+
diff --git a/packaging/findutils.manifest b/packaging/findutils.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/findutils.spec b/packaging/findutils.spec
new file mode 100644 (file)
index 0000000..307c487
--- /dev/null
@@ -0,0 +1,85 @@
+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
diff --git a/packaging/sysconfig.locate b/packaging/sysconfig.locate
new file mode 100644 (file)
index 0000000..087f349
--- /dev/null
@@ -0,0 +1,54 @@
+## 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=""
+