From ba7b366383fd404258fa632013dd1df571cfb5b7bab3b12134b9202d1f0225d7 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 18 Dec 2006 23:15:57 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/findutils?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + cron.daily.clean_core | 81 ++++++++ cron.daily.updatedb | 63 ++++++ findutils-4.2.29.diff | 97 +++++++++ findutils-4.2.29.tar.gz | 3 + findutils.changes | 428 ++++++++++++++++++++++++++++++++++++++++ findutils.spec | 337 +++++++++++++++++++++++++++++++ ready | 0 sysconfig.cron-locate | 19 ++ sysconfig.locate | 54 +++++ warn.diff | 41 ++++ 12 files changed, 1147 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cron.daily.clean_core create mode 100644 cron.daily.updatedb create mode 100644 findutils-4.2.29.diff create mode 100644 findutils-4.2.29.tar.gz create mode 100644 findutils.changes create mode 100644 findutils.spec create mode 100644 ready create mode 100644 sysconfig.cron-locate create mode 100644 sysconfig.locate create mode 100644 warn.diff diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cron.daily.clean_core b/cron.daily.clean_core new file mode 100644 index 0000000..dcd6798 --- /dev/null +++ b/cron.daily.clean_core @@ -0,0 +1,81 @@ +#!/bin/sh +# +# +# clean_core. This script was split off cron.daily +# Please add your local changes to cron.daily.local +# since this file will be overwritten, when updating your system. +# +# Copyright (c) 2006 SuSE Linux Products GmbH, Nuernberg, Germany. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +# Author: Burchard Steinbild , 1996 +# Florian La Roche , 1996 +# +# +# + + +# +# paranoia settings +# +umask 022 + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +export PATH + +# +# get configuration +# +if [ -f /etc/sysconfig/locate ]; then + . /etc/sysconfig/locate +fi +if [ -f /etc/sysconfig/cron ]; then + . /etc/sysconfig/cron +fi + +# +# look for old core files and tell user about it. +# +if [ -z "$MAX_DAYS_FOR_CORE" ]; then + MAX_DAYS_FOR_CORE=5 +fi + +if [ -n "$RUN_UPDATEDB" -a "$RUN_UPDATEDB" = yes -a \ + -x /usr/bin/updatedb ]; then + for DUMMY in $(find /var/lib/locatedb -mtime -7 2>/dev/null); do + IFS=$'\n' + for COREFILE in $(locate '*/core' '*/core.[0-9]*' 2>/dev/null); do + for i in $(find "$COREFILE" ! \( -fstype nfs -o -fstype NFS \) \ + \( -name core -o -regex ".*/core\\.[0-9]+" \) -type f \ + -mtime +"$MAX_DAYS_FOR_CORE" 2>/dev/null); do + if [ -x /usr/bin/file ]; then + type=$(/usr/bin/file "$i") + case $type in + *core\ file*) + ;; + *) + continue + ;; + esac + fi + if [ "$DELETE_OLD_CORE" = yes ]; then + echo "Deleting core file older than $MAX_DAYS_FOR_CORE days: $i" + if [ -x /usr/bin/file ]; then + echo file "$i" + echo "$type" + fi + rm -f "$i" + else + echo "Found core file older than $MAX_DAYS_FOR_CORE days: $i" + if [ -x /usr/bin/file ]; then + echo file "$i" + echo "$type" + fi + fi + done + done + done +fi + +exit 0 diff --git a/cron.daily.updatedb b/cron.daily.updatedb new file mode 100644 index 0000000..34a0305 --- /dev/null +++ b/cron.daily.updatedb @@ -0,0 +1,63 @@ +#!/bin/sh +# +# +# updatedb. This script was split off cron.daily. +# Please add your local changes to cron.daily.local +# since this file will be overwritten, when updating your system. +# +# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# +# Author: Burchard Steinbild , 1996 +# Florian La Roche , 1996 +# +# +# + + +# +# paranoia settings +# +umask 022 + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +export PATH + +# +# get information from /etc/rc.config +# +if [ -f /etc/sysconfig/locate ] ; then + . /etc/sysconfig/locate +fi + +# +# update database for locate +# +if [ -n "$RUN_UPDATEDB" -a "$RUN_UPDATEDB" = "yes" -a \ + -x /usr/bin/updatedb ] ; then + + # avoid error messages from updatedb when using user nobody for find. + cd / + + PARAMS="`test -n "$RUN_UPDATEDB_AS" && \ + fgrep localuser /usr/bin/updatedb > /dev/null && \ + echo --localuser=$RUN_UPDATEDB_AS`" + + PARAMS="$PARAMS `test -n "$UPDATEDB_PRUNEPATHS" && \ + echo --prunepaths=\'$(eval echo $UPDATEDB_PRUNEPATHS)\'`" + + PARAMS="$PARAMS `test -n "$UPDATEDB_NETUSER" && \ + echo --netuser=$UPDATEDB_NETUSER`" + + PARAMS="$PARAMS `test -n "$UPDATEDB_NETPATHS" && \ + echo --netpaths=\'$(eval echo $UPDATEDB_NETPATHS)\'`" + + PARAMS="$PARAMS `test -n "$UPDATEDB_PRUNEFS" && \ + echo --prunefs=\'$(eval echo $UPDATEDB_PRUNEFS)\'`" + + eval nice -n 19 ionice -c 3 /usr/bin/updatedb $PARAMS 2> /dev/null +fi + + +exit 0 diff --git a/findutils-4.2.29.diff b/findutils-4.2.29.diff new file mode 100644 index 0000000..3eb4253 --- /dev/null +++ b/findutils-4.2.29.diff @@ -0,0 +1,97 @@ +--- doc/find.texi ++++ doc/find.texi +@@ -2900,7 +2900,7 @@ + @item --prunepaths='@var{path}@dots{}' + Directories to omit from the database, which would otherwise be + included. The environment variable @code{PRUNEPATHS} also sets this +-value. Default is @file{/tmp /usr/tmp /var/tmp /afs}. The paths are ++value. Default is @file{/tmp /usr/tmp /var/tmp /afs /var/spool}. The paths are + used as regular expressions (with @code{find ... -regex}, so you need + to specify these paths in the same way that @code{find} will encounter + them. This means for example that the paths must not include trailing +--- locate/updatedb.1 ++++ locate/updatedb.1 +@@ -75,8 +75,7 @@ + .TP + .B \-\-output=\fIdbfile\fP + The database file to build. +-Default is system-dependent. In Debian GNU/Linux, the default +-is /var/cache/locate/locatedb. ++Default is /var/lib/locatedb. + .TP + .B \-\-localuser=\fIuser\fP + The user to search non-network directories as, using \fBsu\fP(1). +@@ -85,7 +84,7 @@ + .TP + .B \-\-netuser=\fIuser\fP + The user to search network directories as, using \fBsu\fP(1). +-Default is \fBdaemon\fP. ++Default is \fBnobody\fP. + You can also use the environment variable \fBNETUSER\fP to set this user. + .TP + .B \-\-old\-format +--- locate/updatedb.sh ++++ locate/updatedb.sh +@@ -117,7 +117,7 @@ + : ${NETPATHS=} + + # Directories to not put in the database, which would otherwise be. +-: ${PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /sfs"} ++: ${PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /sfs /var/spool"} + + # Trailing slashes result in regex items that are never matched, which + # is not what the user will expect. Therefore we now reject such +@@ -147,7 +147,7 @@ + export TMPDIR + + # The user to search network directories as. +-: ${NETUSER=daemon} ++: ${NETUSER=nobody} + + # The directory containing the subprograms. + if test -n "$LIBEXECDIR" ; then +@@ -172,11 +172,10 @@ + + PATH=/bin:/usr/bin:${BINDIR}; export PATH + +-: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"} ++: ${PRUNEFS="nfs NFS nfs4 proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs cifs 9P"} + + if test -n "$PRUNEFS"; then +-prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \ +- -e 's/-o //' -e 's/$/ -o/'` ++ prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-fstype \1 -o/g'` + else + prunefs_exp='' + fi +@@ -235,8 +234,8 @@ + # results in a temp file, then rename it atomically. + if test -s $LOCATE_DB.n; then + rm -f $LOCATE_DB ++ chmod 644 $LOCATE_DB.n + mv $LOCATE_DB.n $LOCATE_DB +- chmod 644 $LOCATE_DB + else + echo "updatedb: new database would be empty" >&2 + rm -f $LOCATE_DB.n +@@ -305,8 +304,8 @@ + # put the results in a temp file, then rename it atomically. + if test -s $LOCATE_DB.n; then + rm -f $LOCATE_DB ++ chmod 644 $LOCATE_DB.n + mv $LOCATE_DB.n $LOCATE_DB +- chmod 644 $LOCATE_DB + else + echo "updatedb: new database would be empty" >&2 + rm -f $LOCATE_DB.n +--- xargs/xargs.c ++++ xargs/xargs.c +@@ -1234,7 +1234,7 @@ + [-I replace-str] [-i[replace-str]] [--replace[=replace-str]]\n\ + [-n max-args] [--max-args=max-args]\n\ + [-s max-chars] [--max-chars=max-chars]\n\ +- [-P max-procs] [--max-procs=max-procs] [[--show-limits]\n\ ++ [-P max-procs] [--max-procs=max-procs] [--show-limits]\n\ + [--verbose] [--exit] [--no-run-if-empty] [--arg-file=file]\n\ + [--version] [--help] [command [initial-arguments]]\n"), + program_name); diff --git a/findutils-4.2.29.tar.gz b/findutils-4.2.29.tar.gz new file mode 100644 index 0000000..9032802 --- /dev/null +++ b/findutils-4.2.29.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a9ed8db0711f8419156e786b6aecd42dd05df29e53e380d8924e696f7071ae0 +size 1096112 diff --git a/findutils.changes b/findutils.changes new file mode 100644 index 0000000..b902591 --- /dev/null +++ b/findutils.changes @@ -0,0 +1,428 @@ +------------------------------------------------------------------- +Mon Dec 4 13:22:38 CET 2006 - schwab@suse.de + +- Update to findutils 4.2.29. + ** Documentation Fixes + The global effect of options (other than -daystart and -follow) is now + explained more clearly in the manual page. Savannah bug #15360. + ** Bug Fixes + #17782: find -execdir now correctly puts the prefix "./" before the + expansion of "{}" rather than at the start of the argument it appears + in. Please note that if you use the -exec or -execdir actions with a + shell, then you may be vulnerable to shell code injection attacks, so + don't do that. It's not a security defect in find - you should not be + passing untrusted data (such as file names chosen by other people) to + the shell. + #17477: find -printf '%' (that is, where the format has a trailing %) + now generates an error message. + +------------------------------------------------------------------- +Mon Nov 20 13:26:15 CET 2006 - schwab@suse.de + +- cron.daily.clean_core: robustify even more. + +------------------------------------------------------------------- +Mon Oct 16 13:56:56 CEST 2006 - schwab@suse.de + +- cron.daily.clean_core: robustify to avoid matching non-cores [#210987]. + +------------------------------------------------------------------- +Mon Aug 7 11:46:08 CEST 2006 - schwab@suse.de + +- Update to finutils 4.2.28. + ** Bug Fixes + Savannah bug #15800: If find finds more subdirectories within a parent + directory than it previously expected to based on the link count of + the parent, the resulting error message now gives the correct + directory name (previously an error message was issued but it + specified the wrong directory). + Savannah bug #16738: "find .... -exec ... {} +" now works if you have + a large environment and many files must be passed to the -exec + action. The same problem affected the -execdir action, though since + the number of files in a given directory will normally be smaller, the + problem was worse for -exec. + Savannah bug #16579: Updatedb now works if it is running as a user + whose login shell is not actually a shell. + ** Translations + The following translations have been updated: + Vietnamese, Belarusian, Catalan, Danish, German, Greek, Esperanto, + Spanish, Estonian, Finnish, French, Irish, Galician, Croatian, Hungarian, + Indonesian, Italian, Japanese, Korean, Luganda, Malay, Dutch, Polish, + Portuguese, Brazilian Portuguese, Romanian, Russian, Kinyarwanda, + Slovak, Slovenian, Serbian, Swedish, Turkish, Chinese (simplified), + Chinese (traditional), Bulgarian + +------------------------------------------------------------------- +Mon Jul 24 16:47:14 CEST 2006 - rguenther@suse.de + +- Do not run autoreconf. + +------------------------------------------------------------------- +Mon Jul 24 14:31:33 CEST 2006 - schwab@suse.de + +- Add 9P to PRUNEFS [#129339]. + +------------------------------------------------------------------- +Fri Jun 30 13:06:55 CEST 2006 - schwab@suse.de + +- Add nfs4 to PRUNEFS [#189281]. + +------------------------------------------------------------------- +Thu Mar 23 17:42:50 CET 2006 - schwab@suse.de + +- Add /sys to UPDATEDB_PRUNEPATHS [#160354]. + +------------------------------------------------------------------- +Wed Jan 25 21:30:12 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Jan 16 14:01:33 CET 2006 - schwab@suse.de + +- Fix permissions of cron scripts [#138550]. + +------------------------------------------------------------------- +Wed Dec 7 13:33:54 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.27. + +------------------------------------------------------------------- +Mon Dec 5 16:52:06 CET 2005 - schwab@suse.de + +- Drop SELinux support. + +------------------------------------------------------------------- +Tue Nov 22 21:43:47 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.26. + +------------------------------------------------------------------- +Wed Oct 19 14:39:21 CEST 2005 - schwab@suse.de + +- Add cifs to the default for PRUNEFS [#129339]. + +------------------------------------------------------------------- +Wed Oct 5 10:13:09 CEST 2005 - schwab@suse.de + +- Cleanup. + +------------------------------------------------------------------- +Sun Sep 25 21:46:24 CEST 2005 - schwab@suse.de + +- Fix warnings. + +------------------------------------------------------------------- +Sun Sep 4 16:26:36 CEST 2005 - schwab@suse.de + +- Update to findutils 4.2.25. + +------------------------------------------------------------------- +Sun Sep 4 11:26:26 CEST 2005 - schwab@suse.de + +- Don't link libselinux statically. + +------------------------------------------------------------------- +Mon Aug 1 14:22:19 CEST 2005 - mmj@suse.de + +- Make updatedb run as an idle io process + +------------------------------------------------------------------- +Sun Jun 26 10:47:28 CEST 2005 - schwab@suse.de + +- Make regex syntax compatible to previous versions again. + +------------------------------------------------------------------- +Mon Jun 20 13:39:29 CEST 2005 - schwab@suse.de + +- Update to findutils 4.2.23. + +------------------------------------------------------------------- +Wed Jun 1 13:47:41 CEST 2005 - schwab@suse.de + +- Rename cron scripts. + +------------------------------------------------------------------- +Thu Mar 24 10:48:37 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.20. + +------------------------------------------------------------------- +Wed Mar 9 14:26:52 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.19 [#71803]. + +------------------------------------------------------------------- +Sat Feb 19 16:14:25 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.18. + +------------------------------------------------------------------- +Mon Jan 31 12:12:10 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.15. + +------------------------------------------------------------------- +Wed Jan 26 10:48:21 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.14. + +------------------------------------------------------------------- +Mon Jan 24 14:16:17 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.13. + +------------------------------------------------------------------- +Mon Jan 17 16:15:37 CET 2005 - schwab@suse.de + +- Fix use of next_element. + +------------------------------------------------------------------- +Wed Jan 12 13:47:24 CET 2005 - schwab@suse.de + +- Update to findutils 4.2.11. + +------------------------------------------------------------------- +Mon Nov 22 21:55:40 CET 2004 - schwab@suse.de + +- Update to findutils 4.2.7. + +------------------------------------------------------------------- +Mon Nov 1 23:39:47 CET 2004 - schwab@suse.de + +- Update to findutils 4.2.3. + +------------------------------------------------------------------- +Tue Oct 26 15:53:04 CEST 2004 - schwab@suse.de + +- Update to findutils 4.2.2. + +------------------------------------------------------------------- +Thu Aug 5 15:44:31 CEST 2004 - schwab@suse.de + +- Update to findutils 4.1.20. + +------------------------------------------------------------------- +Thu Jul 29 12:04:28 CEST 2004 - schwab@suse.de + +- Add patch to support d_type. +- Add patch to support POSIX xargs options. + +------------------------------------------------------------------- +Mon Mar 15 16:27:21 CET 2004 - kukuk@suse.de + +- Adjust for new SELinux version + +------------------------------------------------------------------- +Fri Dec 12 23:14:04 CET 2003 - schwab@suse.de + +- Fix file list. + +------------------------------------------------------------------- +Tue Nov 11 20:51:59 CET 2003 - schwab@suse.de + +- Terminate xargs help output with a newline. + +------------------------------------------------------------------- +Wed Oct 15 15:05:38 CEST 2003 - schwab@suse.de + +- Cleanup selinux patch. + +------------------------------------------------------------------- +Wed Oct 15 01:08:24 CEST 2003 - ro@suse.de + +- link libselinux static + +------------------------------------------------------------------- +Tue Oct 14 22:24:38 CEST 2003 - kukuk@suse.de + +- Add selinux patch +- Build not as root +- Fix permissions in RPM filelist + +------------------------------------------------------------------- +Fri Oct 3 13:23:32 CEST 2003 - kukuk@suse.de + +- Remove tetex from neededforbuild + +------------------------------------------------------------------- +Tue May 13 17:42:56 CEST 2003 - schwab@suse.de + +- Add %defattr. +- Fix file list. + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Mon Apr 7 13:11:26 CEST 2003 - schwab@suse.de + +- Only delete info entries when removing last version. + +------------------------------------------------------------------- +Thu Mar 6 16:10:59 CET 2003 - schwab@suse.de + +- Fix clean_core cron script [#22758]: + * use /etc/sysconfig/locate + * add proper quoting + * use mtime for finding old cores. +- Fix feedback address. + +------------------------------------------------------------------- +Thu Feb 6 17:48:22 CET 2003 - schwab@suse.de + +- Use %install_info. + +------------------------------------------------------------------- +Tue Dec 10 17:12:14 CET 2002 - schwab@suse.de + +- Add meta tags to fillup templates. + +------------------------------------------------------------------- +Fri Aug 9 18:51:56 CEST 2002 - bk@suse.de + +- findutils-locate: use nice -n 19 for the daily cronjob of updatedb + +------------------------------------------------------------------- +Mon Aug 5 13:53:18 CEST 2002 - schwab@suse.de + +- Fix missing newline [#17427]. + +------------------------------------------------------------------- +Wed Jul 31 17:43:39 CEST 2002 - schwab@suse.de + +- Add PreReq for locate. + +------------------------------------------------------------------- +Sun Jun 23 21:29:07 CEST 2002 - schwab@suse.de + +- Make -name conforming to POSIX. + +------------------------------------------------------------------- +Fri Mar 8 21:24:10 CET 2002 - schwab@suse.de + +- Add some documentation [#14733]. + +------------------------------------------------------------------- +Mon Feb 25 13:06:48 CET 2002 - schwab@suse.de + +- Fix permissions. + +------------------------------------------------------------------- +Wed Feb 6 13:30:16 CET 2002 - ro@suse.de + +- sysconfig/cron_daily -> sysconfig/cron + +------------------------------------------------------------------- +Thu Jan 31 17:46:08 CET 2002 - ro@suse.de + +- added sysconfig.locate and cron.daily scripts updatedb and + clean core to locate subpackage + +------------------------------------------------------------------- +Thu Jan 31 17:20:41 CET 2002 - schwab@suse.de + +- Put locate and related programs in their own subpackage. + +------------------------------------------------------------------- +Wed Jun 6 23:25:58 CEST 2001 - schwab@suse.de + +- Update to findutils 4.1.7. + +------------------------------------------------------------------- +Thu Nov 23 16:35:08 CET 2000 - bk@suse.de + +- added suse update config macro, was needed for s390 + +------------------------------------------------------------------- +Tue Oct 24 13:51:01 CEST 2000 - schwab@suse.de + +- Update to findutils 4.1.6. +- Renamed from find. + +------------------------------------------------------------------- +Fri Oct 13 09:56:21 CEST 2000 - schwab@suse.de + +- Fix substitution in updatedb script. + +------------------------------------------------------------------- +Wed Sep 13 21:16:02 CEST 2000 - schwab@suse.de + +- Fix compilation problem with getline. +- Don't use included regex. + +------------------------------------------------------------------- +Wed Sep 13 15:27:31 CEST 2000 - schwab@suse.de + +- Update to findutils 4.1.3. + +------------------------------------------------------------------- +Thu Mar 16 15:35:08 CET 2000 - schwab@suse.de + +- xargs: Move arg_max limit check after environ size check. + +------------------------------------------------------------------- +Wed Feb 2 18:07:57 CET 2000 - schwab@suse.de + +- Fix substitutions in updatedb. + +------------------------------------------------------------------- +Mon Jan 17 17:59:44 CET 2000 - schwab@suse.de + +- /usr/{info,man} -> /usr/share/{info,man} +- Get rid of Makefile.Linux +- Remove some obsolete changes + +------------------------------------------------------------------- +Mon Nov 15 19:10:13 MET 1999 - kukuk@suse.de + +- fix returncode from dostat and dolstat + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Thu Aug 26 17:12:33 CEST 1999 - schwab@suse.de + +- fix "find -false , -name ." + +------------------------------------------------------------------- +Fri Dec 18 16:02:24 MET 1998 - ro@suse.de + +- for glibc: use getline from libc + +------------------------------------------------------------------- +Tue Sep 1 12:01:46 MEST 1998 - ro@suse.de + +- fixed macro problems with strcpy,strdup,... + +------------------------------------------------------------------- +Thu May 14 11:05:35 MEST 1998 - florian@suse.de + +- added "-s /bin/sh" to further 2 places +- also prune "afs smbfs autofs" filesystems +- fix "find / -xtype l" +- xargs: raise default limit of 20k to 80k for the environment and + all command parameters + +------------------------------------------------------------------- +Mon Nov 10 11:04:28 MET 1997 - bs@suse.de + +- added "-s /bin/sh" to su command in updatedb (our nobody has /bin/false + for default shell) + +---------------------------------------------------------------------------- +Sun Apr 13 23:04:29 MEST 1997 - florian@suse.de + + +- add bug-fixes from debian and gnu.utils.bugs + +- updatedb now supports "--prunefs" + +- "mv /usr/libexec/* /usr/lib/find/" + + diff --git a/findutils.spec b/findutils.spec new file mode 100644 index 0000000..dfccf9c --- /dev/null +++ b/findutils.spec @@ -0,0 +1,337 @@ +# +# spec file for package findutils (Version 4.2.29) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: findutils +URL: http://www.gnu.org/software/findutils/ +License: GNU General Public License (GPL) +Group: Productivity/File utilities +Provides: find +Obsoletes: find +Autoreqprov: on +PreReq: %{install_info_prereq} +Version: 4.2.29 +Release: 1 +Summary: GNU find--Finding Files +Source: findutils-%{version}.tar.gz +Source1: sysconfig.locate +Source2: sysconfig.cron-locate +Source3: cron.daily.updatedb +Source4: cron.daily.clean_core +Patch: findutils-%{version}.diff +Patch2: warn.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package contains GNU find and xargs. The programs comply with +POSIX 1003.2. They also support additional options, some borrowed from +Unix and some unique to GNU. + + + +Authors: +-------- + David J. MacKenzie + Jan Brittenson + Brian L. Matthews + Mike Rendell + James A. Woods + Jay Plett + Tim Wood + +%package locate +Summary: Tool for Locating Files (GNU Findutils Subpackage) +Group: Productivity/File utilities +Provides: findutils:/usr/bin/locate +Autoreqprov: on +PreReq: %fillup_prereq + +%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. + + + +Authors: +-------- + David J. MacKenzie + Jan Brittenson + Brian L. Matthews + Mike Rendell + James A. Woods + Jay Plett + Tim Wood + +%prep +%setup -q +%patch +%patch2 + +%build +./configure CFLAGS="$RPM_OPT_FLAGS" \ + --prefix=%{_prefix} --libexecdir=%{_libdir}/find \ + --localstatedir=/var/lib \ + --infodir=%{_infodir} --mandir=%{_mandir} \ + --without-included-regex \ + --enable-d_type-optimisation +make + +%install +make install DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates +mkdir -p $RPM_BUILD_ROOT/etc/cron.daily +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates +install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.daily/suse.de-updatedb +install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.daily/suse.de-clean-core + +%clean +rm -rf $RPM_BUILD_ROOT + +%post locate +%{fillup_only -n locate} +%{fillup_only -sn cron locate} + +%post +%install_info --info-dir=%{_infodir} %{_infodir}/find.info.gz + +%postun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/find.info.gz + +%files +%defattr(-,root,root,755) +%doc README NEWS AUTHORS TODO +%{_bindir}/find +%{_bindir}/xargs +%{_datadir}/locale/*/LC_MESSAGES/*.mo +%doc %{_infodir}/find.info*.gz +%doc %{_mandir}/man1/find.1.gz +%doc %{_mandir}/man1/xargs.1.gz + +%files locate +%defattr(-,root,root,755) +/etc/cron.daily/* +%{_bindir}/locate +%{_bindir}/updatedb +%{_libdir}/find +%doc %{_mandir}/man1/locate.1.gz +%doc %{_mandir}/man1/updatedb.1.gz +%doc %{_mandir}/man5/locatedb.5.gz +/var/adm/fillup-templates/* + +%changelog -n findutils +* Mon Dec 04 2006 - schwab@suse.de +- Update to finutils 4.2.29. + ** Documentation Fixes + The global effect of options (other than -daystart and -follow) is now + explained more clearly in the manual page. Savannah bug #15360. + ** Bug Fixes + [#17782]: find -execdir now correctly puts the prefix "./" before the + expansion of "{}" rather than at the start of the argument it appears + in. Please note that if you use the -exec or -execdir actions with a + shell, then you may be vulnerable to shell code injection attacks, so + don't do that. It's not a security defect in find - you should not be + passing untrusted data (such as file names chosen by other people) to + the shell. + [#17477]: find -printf '%%' (that is, where the format has a trailing %%) + now generates an error message. +* Mon Nov 20 2006 - schwab@suse.de +- cron.daily.clean_core: robustify even more. +* Mon Oct 16 2006 - schwab@suse.de +- cron.daily.clean_core: robustify to avoid matching non-cores [#210987]. +* Mon Aug 07 2006 - schwab@suse.de +- Update to finutils 4.2.28. + ** Bug Fixes + Savannah bug #15800: If find finds more subdirectories within a parent + directory than it previously expected to based on the link count of + the parent, the resulting error message now gives the correct + directory name (previously an error message was issued but it + specified the wrong directory). + Savannah bug #16738: "find .... -exec ... {} +" now works if you have + a large environment and many files must be passed to the -exec + action. The same problem affected the -execdir action, though since + the number of files in a given directory will normally be smaller, the + problem was worse for -exec. + Savannah bug #16579: Updatedb now works if it is running as a user + whose login shell is not actually a shell. + ** Translations + The following translations have been updated: + Vietnamese, Belarusian, Catalan, Danish, German, Greek, Esperanto, + Spanish, Estonian, Finnish, French, Irish, Galician, Croatian, Hungarian, + Indonesian, Italian, Japanese, Korean, Luganda, Malay, Dutch, Polish, + Portuguese, Brazilian Portuguese, Romanian, Russian, Kinyarwanda, + Slovak, Slovenian, Serbian, Swedish, Turkish, Chinese (simplified), + Chinese (traditional), Bulgarian +* Mon Jul 24 2006 - rguenther@suse.de +- Do not run autoreconf. +* Mon Jul 24 2006 - schwab@suse.de +- Add 9P to PRUNEFS [#129339]. +* Fri Jun 30 2006 - schwab@suse.de +- Add nfs4 to PRUNEFS [#189281]. +* Thu Mar 23 2006 - schwab@suse.de +- Add /sys to UPDATEDB_PRUNEPATHS [#160354]. +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Jan 16 2006 - schwab@suse.de +- Fix permissions of cron scripts [#138550]. +* Wed Dec 07 2005 - schwab@suse.de +- Update to findutils 4.2.27. +* Mon Dec 05 2005 - schwab@suse.de +- Drop SELinux support. +* Tue Nov 22 2005 - schwab@suse.de +- Update to findutils 4.2.26. +* Wed Oct 19 2005 - schwab@suse.de +- Add cifs to the default for PRUNEFS [#129339]. +* Wed Oct 05 2005 - schwab@suse.de +- Cleanup. +* Sun Sep 25 2005 - schwab@suse.de +- Fix warnings. +* Sun Sep 04 2005 - schwab@suse.de +- Update to findutils 4.2.25. +* Sun Sep 04 2005 - schwab@suse.de +- Don't link libselinux statically. +* Mon Aug 01 2005 - mmj@suse.de +- Make updatedb run as an idle io process +* Sun Jun 26 2005 - schwab@suse.de +- Make regex syntax compatible to previous versions again. +* Mon Jun 20 2005 - schwab@suse.de +- Update to findutils 4.2.23. +* Wed Jun 01 2005 - schwab@suse.de +- Rename cron scripts. +* Thu Mar 24 2005 - schwab@suse.de +- Update to findutils 4.2.20. +* Wed Mar 09 2005 - schwab@suse.de +- Update to findutils 4.2.19 [#71803]. +* Sat Feb 19 2005 - schwab@suse.de +- Update to findutils 4.2.18. +* Mon Jan 31 2005 - schwab@suse.de +- Update to findutils 4.2.15. +* Wed Jan 26 2005 - schwab@suse.de +- Update to findutils 4.2.14. +* Mon Jan 24 2005 - schwab@suse.de +- Update to findutils 4.2.13. +* Mon Jan 17 2005 - schwab@suse.de +- Fix use of next_element. +* Wed Jan 12 2005 - schwab@suse.de +- Update to findutils 4.2.11. +* Mon Nov 22 2004 - schwab@suse.de +- Update to findutils 4.2.7. +* Mon Nov 01 2004 - schwab@suse.de +- Update to findutils 4.2.3. +* Tue Oct 26 2004 - schwab@suse.de +- Update to findutils 4.2.2. +* Thu Aug 05 2004 - schwab@suse.de +- Update to findutils 4.1.20. +* Thu Jul 29 2004 - schwab@suse.de +- Add patch to support d_type. +- Add patch to support POSIX xargs options. +* Mon Mar 15 2004 - kukuk@suse.de +- Adjust for new SELinux version +* Fri Dec 12 2003 - schwab@suse.de +- Fix file list. +* Tue Nov 11 2003 - schwab@suse.de +- Terminate xargs help output with a newline. +* Wed Oct 15 2003 - schwab@suse.de +- Cleanup selinux patch. +* Wed Oct 15 2003 - ro@suse.de +- link libselinux static +* Tue Oct 14 2003 - kukuk@suse.de +- Add selinux patch +- Build not as root +- Fix permissions in RPM filelist +* Fri Oct 03 2003 - kukuk@suse.de +- Remove tetex from neededforbuild +* Tue May 13 2003 - schwab@suse.de +- Add %%defattr. +- Fix file list. +* Thu Apr 24 2003 - ro@suse.de +- fix install_info --delete call and move from preun to postun +* Mon Apr 07 2003 - schwab@suse.de +- Only delete info entries when removing last version. +* Thu Mar 06 2003 - schwab@suse.de +- Fix clean_core cron script [#22758]: + * use /etc/sysconfig/locate + * add proper quoting + * use mtime for finding old cores. +- Fix feedback address. +* Thu Feb 06 2003 - schwab@suse.de +- Use %%install_info. +* Tue Dec 10 2002 - schwab@suse.de +- Add meta tags to fillup templates. +* Fri Aug 09 2002 - bk@suse.de +- findutils-locate: use nice -n 19 for the daily cronjob of updatedb +* Mon Aug 05 2002 - schwab@suse.de +- Fix missing newline [#17427]. +* Wed Jul 31 2002 - schwab@suse.de +- Add PreReq for locate. +* Sun Jun 23 2002 - schwab@suse.de +- Make -name conforming to POSIX. +* Fri Mar 08 2002 - schwab@suse.de +- Add some documentation [#14733]. +* Mon Feb 25 2002 - schwab@suse.de +- Fix permissions. +* Wed Feb 06 2002 - ro@suse.de +- sysconfig/cron_daily -> sysconfig/cron +* Thu Jan 31 2002 - ro@suse.de +- added sysconfig.locate and cron.daily scripts updatedb and + clean core to locate subpackage +* Thu Jan 31 2002 - schwab@suse.de +- Put locate and related programs in their own subpackage. +* Wed Jun 06 2001 - schwab@suse.de +- Update to findutils 4.1.7. +* Thu Nov 23 2000 - bk@suse.de +- added suse update config macro, was needed for s390 +* Tue Oct 24 2000 - schwab@suse.de +- Update to findutils 4.1.6. +- Renamed from find. +* Fri Oct 13 2000 - schwab@suse.de +- Fix substitution in updatedb script. +* Wed Sep 13 2000 - schwab@suse.de +- Fix compilation problem with getline. +- Don't use included regex. +* Wed Sep 13 2000 - schwab@suse.de +- Update to findutils 4.1.3. +* Thu Mar 16 2000 - schwab@suse.de +- xargs: Move arg_max limit check after environ size check. +* Wed Feb 02 2000 - schwab@suse.de +- Fix substitutions in updatedb. +* Mon Jan 17 2000 - schwab@suse.de +- /usr/{info,man} -> /usr/share/{info,man} +- Get rid of Makefile.Linux +- Remove some obsolete changes +* Mon Nov 15 1999 - kukuk@suse.de +- fix returncode from dostat and dolstat +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Thu Aug 26 1999 - schwab@suse.de +- fix "find -false , -name ." +* Fri Dec 18 1998 - ro@suse.de +- for glibc: use getline from libc +* Tue Sep 01 1998 - ro@suse.de +- fixed macro problems with strcpy,strdup,... +* Thu May 14 1998 - florian@suse.de +- added "-s /bin/sh" to further 2 places +- also prune "afs smbfs autofs" filesystems +- fix "find / -xtype l" +- xargs: raise default limit of 20k to 80k for the environment and + all command parameters +* Mon Nov 10 1997 - bs@suse.de +- added "-s /bin/sh" to su command in updatedb (our nobody has /bin/false + for default shell) +* Sun Apr 13 1997 - florian@suse.de +- add bug-fixes from debian and gnu.utils.bugs +- updatedb now supports "--prunefs" +- "mv /usr/libexec/* /usr/lib/find/" diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/sysconfig.cron-locate b/sysconfig.cron-locate new file mode 100644 index 0000000..50b1074 --- /dev/null +++ b/sysconfig.cron-locate @@ -0,0 +1,19 @@ +## Path: System/Cron +## Description: Deleting core files +## Type: yesno +## Default: no +# +# Should old corefiles they be deleted? ("yes" or "no") +# If set to 'no', cron.daily will tell you if it finds old core files. +# NOTE: This feature requires RUN_UPDATEDB to be set to "yes" +# and the package with locate (findutils-locate) to be installed. +# +DELETE_OLD_CORE=no + +## Type: integer +## Default: 7 +# +# Maximum age of core files (in days) +# +MAX_DAYS_FOR_CORE=7 + diff --git a/sysconfig.locate b/sysconfig.locate new file mode 100644 index 0000000..1074a75 --- /dev/null +++ b/sysconfig.locate @@ -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="" + diff --git a/warn.diff b/warn.diff new file mode 100644 index 0000000..b0c18ea --- /dev/null +++ b/warn.diff @@ -0,0 +1,41 @@ +Index: lib/regexprops.c +================================================================================ +--- lib/regexprops.c ++++ lib/regexprops.c +@@ -144,7 +144,7 @@ + } + + +-static int describe_regex_syntax(int options) ++static void describe_regex_syntax(int options) + { + newpara(); + content("The character @samp{.} matches any single character"); +@@ -435,7 +435,7 @@ + + + +-static int menu() ++static void menu() + { + int i, options; + const char *name; +@@ -456,7 +456,7 @@ + } + + +-static int describe_all(const char *up) ++static void describe_all(const char *up) + { + const char *name, *next, *previous; + int options; +--- xargs/xargs.c ++++ xargs/xargs.c +@@ -409,6 +409,7 @@ + error(1, 0, + _("Invalid input delimiter specification %s: the delimiter must be either a single character or an escape sequence starting with \\."), + s); ++ return 0; + } + } + }