SPECS: inn.spec - adjusted %post chmod to match %files section of %ghost fi...

gotar gotar at pld-linux.org
Thu Feb 12 15:31:44 CET 2009


Author: gotar                        Date: Thu Feb 12 14:31:44 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- adjusted %post chmod to match %files section of %ghost files (history),
- removed active.times checking from %post (regular file from %files),
- sorting, cosmetics

---- Files affected:
SPECS:
   inn.spec (1.185 -> 1.186) 

---- Diffs:

================================================================
Index: SPECS/inn.spec
diff -u SPECS/inn.spec:1.185 SPECS/inn.spec:1.186
--- SPECS/inn.spec:1.185	Thu Feb 12 15:11:31 2009
+++ SPECS/inn.spec	Thu Feb 12 15:31:38 2009
@@ -331,10 +331,10 @@
 rm -f $RPM_BUILD_ROOT/var/lib/news/history
 
 umask 002
-> $RPM_BUILD_ROOT%{_sysconfdir}/subscriptions
-touch $RPM_BUILD_ROOT/var/lib/news/history
+:> $RPM_BUILD_ROOT%{_sysconfdir}/subscriptions
 touch $RPM_BUILD_ROOT/var/lib/news/.news.daily
 touch $RPM_BUILD_ROOT/var/lib/news/active.times
+touch $RPM_BUILD_ROOT/var/lib/news/history
 
 LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_bindir}/makehistory \
 	-a $RPM_BUILD_ROOT/var/lib/news/active \
@@ -364,7 +364,7 @@
 	# makehistory fails on uninitialized spool(?) - create empty history in such case
 	%{_bindir}/makehistory || { echo "Creating empty history"; :> history; }
 	chown news:news history
-	chmod 644 history
+	chmod 664 history
 fi
 %{_bindir}/makedbz -s `wc -l history` -f history
 for i in dir hash index pag; do
@@ -373,11 +373,6 @@
 chown news:news history.*
 chmod 644 history.*
 
-if [ ! -f /var/lib/news/active.times ]; then
-	:> /var/lib/news/active.times
-	chown news:news /var/lib/news/active.times
-fi
-
 if [ ! -f /var/lib/news/.news.daily ]; then
 	:> /var/lib/news/.news.daily
 	chown news:news /var/lib/news/.news.daily
@@ -410,9 +405,9 @@
 %attr(770,root,news) %dir /var/lib/news
 %attr(770,root,news) %dir /var/lib/news/backoff
 %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active
+%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active.times
 %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/distributions
 %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/newsgroups
-%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active.times
 %attr(664,news,news) %ghost /var/lib/news/.news.daily
 %attr(664,news,news) %ghost /var/lib/news/history
 
@@ -639,6 +634,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.186  2009/02/12 14:31:38  gotar
+- adjusted %post chmod to match %files section of %ghost files (history),
+- removed active.times checking from %post (regular file from %files),
+- sorting, cosmetics
+
 Revision 1.185  2009/02/12 14:11:31  gotar
 - removed ancient TODO, %post was a nightmare messing with syslog 3 yrs ago
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/inn.spec?r1=1.185&r2=1.186&f=u



More information about the pld-cvs-commit mailing list