[packages/tmpwatch] tmpwatch is usable for users as well. move to bin (sbin link preserved)

glen glen at pld-linux.org
Tue Dec 2 10:32:47 CET 2014


commit f24e44b4b76973b42d00c38684f357fef9305594
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Dec 2 11:32:41 2014 +0200

    tmpwatch is usable for users as well. move to bin (sbin link preserved)

 tmpwatch.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tmpwatch.spec b/tmpwatch.spec
index 671fca2..63cf684 100644
--- a/tmpwatch.spec
+++ b/tmpwatch.spec
@@ -11,7 +11,7 @@ Summary(ru.UTF-8):	Утилита удаления файлов по крите
 Summary(uk.UTF-8):	Утиліта видалення файлів за критерієм давності останнього доступу
 Name:		tmpwatch
 Version:	2.11
-Release:	7
+Release:	8
 License:	GPL v2
 Group:		Applications/System
 Source0:	https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2
@@ -97,15 +97,18 @@ gözönüne almadan dizinleri rekürsif olarak arar ve kullanıcının
 %{__autoconf}
 %{__automake}
 %configure \
+	--sbindir=%{_bindir} \
 	--with-fuser=/bin/fuser
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig,%{name}},%{_prefix}/lib}
+install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig,%{name}},%{_prefix}/lib,%{_sbindir}}
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+ln -s ../bin/tmpwatch $RPM_BUILD_ROOT%{_sbindir}/tmpwatch
+
 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}
 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/tmpwatch/common.conf
@@ -134,6 +137,7 @@ fi
 %defattr(644,root,root,755)
 %doc ChangeLog NEWS README
 %attr(755,root,root) %{_sbindir}/tmpwatch
+%attr(755,root,root) %{_bindir}/tmpwatch
 %attr(755,root,root) %{_prefix}/lib/tmpwatch
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/tmpwatch/*.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list