From bd3e2122948071b1ea3cff770e1db3176ec0285e Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 13:23:11 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20tmpwatc?= =?UTF-8?q?h-2.7.3-1.src.rpm=20Mon=20Jul=2002=202001=20Preston=20Brown=20=20-=20better=20checking=20for=20directory=20?= =?UTF-8?q?existence=20cleaning=20man=20cache=20dirs=20(#44117)=20Fri=20Ma?= =?UTF-8?q?y=2011=202001=20Trond=20Eivind=20Glomsr=F8d=20?= =?UTF-8?q?=20-=20Handle=20directories=20with=20large=20files=20-=20fix=20?= =?UTF-8?q?some=20warnings=20during=20compilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 2 +- sources | 2 +- tmpwatch.spec | 17 ++++++++++++----- 3 files changed, 14 insertions(+), 7 deletions(-) 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.