Summary: A utility for removing files based on when they were last accessed. Name: tmpwatch Version: 2.9.1 Release: 1 Source: %{name}-%{version}.tar.gz License: GPL Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: psmisc %description The tmpwatch utility recursively searches through specified directories and removes files which have not been accessed in a specified period of time. Tmpwatch is normally used to clean up directories which are used for temporarily holding files (for example, /tmp). Tmpwatch ignores symlinks, won't switch filesystems and only removes empty directories and regular files. %prep %setup -q %build make %install rm -rf %{buildroot} make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} install mkdir -p %{buildroot}/etc/cron.daily cat > %{buildroot}/etc/cron.daily/tmpwatch < - 2.9.1-1 - Add --exclude, use it to preserve X socket directories (#107069) - Allow multiple directory arguments with relative paths (#91097) - Don't manually strip the binary * Fri May 30 2003 Mike A. Harris 2.9.0-1 - Added Solaris/HPUX support to tmpwatch via patch from Paul Gear (#71288) - Rebuild in rawhide as 2.9.0-1 * Mon Feb 10 2003 Nalin Dahyabhai 2.8.4-5 - rebuild * Fri Feb 7 2003 Nalin Dahyabhai 2.8.4-2 - rebuild * Tue Oct 8 2002 Mike A. Harris 2.8.4-4 - All-arch rebuild * Fri Jun 21 2002 Tim Powers - automated rebuild * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Mike A. Harris 2.8.4-1 - Bump release and rebuild in new environment * Fri Apr 13 2002 Mike A. Harris 2.8.3-1 - Added support for large files with 64bit offsets by adding to CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 bug (#56961) * Sun Jan 27 2002 Mike A. Harris 2.8.2-1 - Added newlines to logfile messages as per bug #58912 * Thu Nov 8 2001 Preston Brown - define default SBINDIR in Makefile - incorrect boolean comparison fix * Wed Aug 29 2001 Preston Brown - cron script fix (#52785) * Tue Aug 28 2001 Preston Brown - rebuild for 5.x, 6.x, 7.x errata * Mon Aug 27 2001 Preston Brown - noreplace /etc/cron.daily/tmpwatch * Mon Aug 6 2001 Preston Brown 2.8-1 - added a "nodirs" option which inhibits removal of empty directories. - Integrated race condition fixes from Martin Macok (#50148) - do not try to remove ext3 journal files (#50522) * Tue Jul 3 2001 Preston Brown 2.7.4-1 - fix typo in cron script * Mon Jul 2 2001 Preston Brown - better checking for directory existence cleaning man cache dirs (#44117) * Fri May 11 2001 Trond Eivind Glomsrød - Handle directories with large files - fix some warnings during compilation * Thu Mar 29 2001 Preston Brown - fixed longstanding bug where directories removed while in test mode. * Fri Mar 9 2001 Preston Brown - Patch from enrico.scholz@informatik.tu-chemnitz.de allows concurrent usage of mtime, ctime, and atime checking (#19550). * Fri Jan 05 2001 Preston Brown - increased interval for removal to 30 days for /var/tmp per FHS (#19951) * Tue Sep 12 2000 Nalin Dahyabhai - use execle() instead of system() to get the correct return code, fixes from Jeremy Katz * Thu Sep 7 2000 Nalin Dahyabhai - rework to not have to fork() (#17286) - set utime() after we're done reading a directory * Sat Jun 17 2000 Matt Wilson - defattr * Tue Jun 13 2000 Preston Brown - FHS compliance * Thu May 18 2000 Preston Brown - don't complain about failure to remove non-empty directories. - fix man page path * Wed May 17 2000 Preston Brown - support /var/cache/man and /var/catman (FHS 2.1 compliance). * Fri May 05 2000 Preston Brown - support for CTIME from jik@kamens.brookline.ma.us - fixes for fuser checks from Ian Burrell . - remove directories when empty without --all flag, to be consistent w/docs. * Mon Feb 14 2000 Preston Brown - option to use fuser to see if file in use before removing * Wed Feb 02 2000 Cristian Gafton - fix description - man pages are compressed * Tue Jan 18 2000 Preston Brown - null terminal opt struct (#7836) - test flag implies verbose (#2383) * Wed Jan 12 2000 Paul Gear - HP-UX port (including doco update) - Tweaked Makefile to allow installation into different base directory - Got rid of GETOPT_... defines which didn't do anything, so that short equivalents for all long options could be defined. - Fixed bug in message() where 'where' file handle was set but unused - Changed most fprintf() calls to message() * Mon Aug 30 1999 Preston Brown - skip lost+found directories - option to use file's atime instead of mtime (# 4178) * Mon Jun 7 1999 Jeff Johnson - cleanup more man pages, this time adding in cvs (#224). * Thu Apr 08 1999 Preston Brown - I am the new maintainer - fixed cleanup of directories - added --quiet flag - freshen manpage - nice patch from Kevin Vajk integrated * Wed Jun 10 1998 Erik Troan - make /etc/cron.daily/tmpwatch executable * Tue Jan 13 1998 Erik Troan - version 1.5 - fixed flags passing - cleaned up message() * Wed Oct 22 1997 Erik Troan - added man page to package - uses a buildroot and %attr - fixed error message generation for directories - fixed flag propagation * Mon Mar 24 1997 Erik Troan - Don't follow symlinks which are specified on the command line - Added a man page * Sun Mar 09 1997 Erik Troan - Rebuilt to get right permissions on the Alpha (though I have no idea how they ended up wrong).