From d5dbcba7852a0e9050818da0dca53788537103f6 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 13:22:05 +0000 Subject: [PATCH] auto-import changelog data from tmpwatch-2.5.1-3.src.rpm Wed Jul 12 2000 Prospector - automatic rebuild 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 07 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). --- .cvsignore | 1 + sources | 1 + tmpwatch.spec | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 tmpwatch.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8dfe0fe 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tmpwatch-2.5.1.tar.gz diff --git a/sources b/sources index e69de29..ce5c314 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +815980bafbbc0ff0f0f7e7056eac5da7 tmpwatch-2.5.1.tar.gz diff --git a/tmpwatch.spec b/tmpwatch.spec new file mode 100644 index 0000000..5de97a9 --- /dev/null +++ b/tmpwatch.spec @@ -0,0 +1,124 @@ +Summary: A utility for removing files based on when they were last accessed. +Name: tmpwatch +Version: 2.5.1 +Release: 3 +Source: tmpwatch-%{version}.tar.gz +Copyright: 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 RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + +%install +rm -rf $RPM_BUILD_ROOT +make PREFIX=$RPM_BUILD_ROOT MANDIR=%{_mandir} install + +( cd $RPM_BUILD_ROOT + mkdir -p ./etc/cron.daily + echo '/usr/sbin/tmpwatch 240 /tmp /var/tmp' \ + >> ./etc/cron.daily/tmpwatch + echo '[ -d /var/cache/man ] && /usr/sbin/tmpwatch -f 240 /var/cache/man/{X11R6/cat?,cat?,local/cat?}' \ + >> ./etc/cron.daily/tmpwatch + echo '[ -d /var/catman ] && /usr/sbin/tmpwatch -f 240 /var/catman/{X11R6/cat?,cat?,local/cat?}' \ + >> ./etc/cron.daily/tmpwatch + chmod +x ./etc/cron.daily/tmpwatch +) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/usr/sbin/tmpwatch +%{_mandir}/man8/tmpwatch.8* +%config /etc/cron.daily/tmpwatch + +%changelog +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* 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).