From 05c4fb75ed79d01189b13bd408880f062259dee9 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Tue, 29 Nov 2005 22:09:33 +0000 Subject: [PATCH] - Add --exclude-user (original patch by Brett Pemberton) - Fix too long line in /etc/cron.daily/tmpwatch --- .cvsignore | 2 +- sources | 2 +- tmpwatch.spec | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index 21763c2..bc2fb90 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -tmpwatch-2.9.5.tar.gz +tmpwatch-2.9.6.tar.gz diff --git a/sources b/sources index cb02004..be59e6c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -38e5736baddc67e0689f4d636775d601 tmpwatch-2.9.5.tar.gz +6c316f1853a30bfee182fee23e509317 tmpwatch-2.9.6.tar.gz diff --git a/tmpwatch.spec b/tmpwatch.spec index e626c4a..9c08b18 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.9.5 +Version: 2.9.6 Release: 1 Source: %{name}-%{version}.tar.gz License: GPL @@ -27,13 +27,13 @@ rm -rf %{buildroot} make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} install mkdir -p %{buildroot}/etc/cron.daily -cat > %{buildroot}/etc/cron.daily/tmpwatch < %{buildroot}/etc/cron.daily/tmpwatch <<\EOF /usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix \ -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp /usr/sbin/tmpwatch 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do - if [ -d "\$d" ]; then - /usr/sbin/tmpwatch -f 720 \$d + if [ -d "$d" ]; then + /usr/sbin/tmpwatch -f 720 "$d" fi done EOF @@ -49,6 +49,10 @@ rm -rf %{buildroot} %config(noreplace) /etc/cron.daily/tmpwatch %changelog +* Tue Nov 29 2005 Miloslav Trmac - 2.9.6-1 +- Add --exclude-user (original patch by Brett Pemberton) +- Fix too long line in /etc/cron.daily/tmpwatch + * Fri Nov 11 2005 Miloslav Trmac - 2.9.5-1 - Fix GPL reference in usage message (#163531, patch by Ville Skyttä) - Convert changelog to UTF-8