[packages/tmpwatch] move /tmp tmpwatch to config

glen glen at pld-linux.org
Tue Aug 22 10:50:46 CEST 2017


commit 54ae5c607d079ab1b35ef0eee418fefe4c59283c
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Aug 22 11:50:25 2017 +0300

    move /tmp tmpwatch to config

 tmpwatch.conf |  1 +
 tmpwatch.cron | 10 ----------
 tmpwatch.spec |  6 +++---
 3 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/tmpwatch.spec b/tmpwatch.spec
index 692ca3a..13e36b8 100644
--- a/tmpwatch.spec
+++ b/tmpwatch.spec
@@ -11,10 +11,10 @@ Summary(ru.UTF-8):	Утилита удаления файлов по крите
 Summary(uk.UTF-8):	Утиліта видалення файлів за критерієм давності останнього доступу
 Name:		tmpwatch
 Version:	2.11
-Release:	11
+Release:	12
 License:	GPL v2
 Group:		Applications/System
-Source0:	https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2
+Source0:	https://releases.pagure.org/tmpwatch/%{name}-%{version}.tar.bz2
 # Source0-md5:	9ea7e169296eb1196b80fe05bba1cbd0
 Source1:	%{name}.sysconfig
 Source2:	%{name}.cron
@@ -23,7 +23,7 @@ Source4:	%{name}.crontab
 Source5:	cronjob-%{name}.timer
 Source6:	cronjob-%{name}.service
 Patch0:		%{name}-boottime.patch
-URL:		https://fedorahosted.org/tmpwatch/
+URL:		https://pagure.io/tmpwatch
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake
 BuildRequires:	rpmbuild(macros) >= 1.644
diff --git a/tmpwatch.conf b/tmpwatch.conf
index 84daeda..2d2bffb 100644
--- a/tmpwatch.conf
+++ b/tmpwatch.conf
@@ -12,3 +12,4 @@
 # OPTS is optional and can be any option from tmpwatch(8)
 
 /var/tmp	720
+/tmp		240 -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix -X /tmp/.s.PGSQL.* -X /tmp/hsperfdata_*
diff --git a/tmpwatch.cron b/tmpwatch.cron
index 2dfc029..1924b3f 100755
--- a/tmpwatch.cron
+++ b/tmpwatch.cron
@@ -8,16 +8,6 @@ if [ -f /etc/sysconfig/tmpwatch ]; then
 	. /etc/sysconfig/tmpwatch
 fi
 
-/usr/sbin/tmpwatch ${OPTIONS} \
-	-x /tmp/.X11-unix \
-	-x /tmp/.XIM-unix \
-	-x /tmp/.font-unix \
-	-x /tmp/.ICE-unix \
-	-x /tmp/.Test-unix \
-	-X /tmp/.s.PGSQL.\* \
-	-X /tmp/hsperfdata_\* \
-	240 /tmp
-
 # Cleanup amavis quarantine:
 if [ ${AMAVIS_QUARANTINE} -gt 0 ] && [ -d /var/spool/amavis/virusmails ]; then
 	/usr/sbin/tmpwatch ${OPTIONS} ${AMAVIS_QUARANTINE} /var/spool/amavis/virusmails
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tmpwatch.git/commitdiff/54ae5c607d079ab1b35ef0eee418fefe4c59283c



More information about the pld-cvs-commit mailing list