- Update to tmpwatch-2.9.16.

- Exclude /tmp/hsperfdata_*. Resolves: #527425
- Preserve timestamps where possible.
This commit is contained in:
Miloslav Trmac 2009-10-15 14:50:37 +00:00
parent e70b34ca60
commit 2901d19370
4 changed files with 15 additions and 7 deletions

View File

@ -1 +1 @@
tmpwatch-2.9.15.tar.bz2
tmpwatch-2.9.16.tar.bz2

View File

@ -1 +1 @@
41ffc6789ffdbf0e35da1ffb655276d1 tmpwatch-2.9.15.tar.bz2
40eee5c3e3f352c30e532ffc1f0af3a8 tmpwatch-2.9.16.tar.bz2

View File

@ -1,7 +1,8 @@
#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 10d /tmp
-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
-X '/tmp/hsperfdata_*' 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then

View File

@ -1,7 +1,7 @@
Summary: A utility for removing files based on when they were last accessed
Name: tmpwatch
Version: 2.9.15
Release: 2
Version: 2.9.16
Release: 1%{?dist}
URL: https://fedorahosted.org/tmpwatch/
Source0: https://fedorahosted.org/releases/t/m/tmpwatch/tmpwatch-%{version}.tar.bz2
Source1: tmpwatch.daily
@ -26,7 +26,8 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} install
make ROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} \
INSTALL='install -p' install
mkdir -p %{buildroot}%{_bindir}
# The $(...) computes /usr/bin => ../../
@ -34,7 +35,7 @@ ln -s $(echo %{_bindir} |sed 's,/[^/]\+,/..,g; s,^/,,')%{_sbindir}/tmpwatch \
%{buildroot}%{_bindir}/tmpwatch
mkdir -p %{buildroot}/etc/cron.daily
cp %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch
install -p %{SOURCE1} %{buildroot}/etc/cron.daily/tmpwatch
chmod +x %{buildroot}/etc/cron.daily/tmpwatch
%clean
@ -49,6 +50,12 @@ rm -rf %{buildroot}
%config(noreplace) /etc/cron.daily/tmpwatch
%changelog
* Thu Oct 15 2009 Miloslav Trmač <mitr@redhat.com> - 2.9.16-1
- Update to tmpwatch-2.9.16.
- Exclude /tmp/hsperfdata_*.
Resolves: #527425
- Preserve timestamps where possible.
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild