diff --git a/.cvsignore b/.cvsignore index 5253619..42ab6fe 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -tmpwatch-2.7.1.tar.gz +tmpwatch-2.7.3.tar.gz diff --git a/sources b/sources index 7408ac4..38f1a71 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ae012a1fa418b8dafce356f404a22fc5 tmpwatch-2.7.1.tar.gz +96f4442387675b052e148f8503e7c662 tmpwatch-2.7.3.tar.gz diff --git a/tmpwatch.spec b/tmpwatch.spec index e7586d7..68c2d59 100644 --- a/tmpwatch.spec +++ b/tmpwatch.spec @@ -1,6 +1,6 @@ Summary: A utility for removing files based on when they were last accessed. Name: tmpwatch -Version: 2.7.1 +Version: 2.7.3 Release: 1 Source: tmpwatch-%{version}.tar.gz Copyright: GPL @@ -20,7 +20,7 @@ removes empty directories and regular files. %setup -q %build -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %install rm -rf %{buildroot} @@ -32,9 +32,9 @@ make PREFIX=%{buildroot} MANDIR=%{_mandir} install >> ./etc/cron.daily/tmpwatch echo '/usr/sbin/tmpwatch 720 /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?}' \ + echo 'for d in /var/{cache/man,catman}/{X11R6/cat?,cat?,local/cat?}; do \ + [ -d $d ] && /usr/sbin/tmpwatch -f 240 $d \ +done' \ >> ./etc/cron.daily/tmpwatch chmod +x ./etc/cron.daily/tmpwatch ) @@ -49,6 +49,13 @@ rm -rf %{buildroot} %config /etc/cron.daily/tmpwatch %changelog +* 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.