SPECS: inn.spec - more logs cleanup (or does it write directly the...
glen
glen at pld-linux.org
Sat Mar 25 16:50:58 CET 2006
Author: glen Date: Sat Mar 25 15:50:58 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- more logs cleanup (or does it write directly there?)
---- Files affected:
SPECS:
inn.spec (1.166 -> 1.167)
---- Diffs:
================================================================
Index: SPECS/inn.spec
diff -u SPECS/inn.spec:1.166 SPECS/inn.spec:1.167
--- SPECS/inn.spec:1.166 Sat Mar 25 16:34:25 2006
+++ SPECS/inn.spec Sat Mar 25 16:50:53 2006
@@ -332,9 +332,6 @@
touch $RPM_BUILD_ROOT/var/lib/news/history
touch $RPM_BUILD_ROOT/var/lib/news/.news.daily
touch $RPM_BUILD_ROOT/var/lib/news/active.times
-touch $RPM_BUILD_ROOT/var/log/news/news.notice
-touch $RPM_BUILD_ROOT/var/log/news/news.crit
-touch $RPM_BUILD_ROOT/var/log/news/news.err
# obsolete?
#touch $RPM_BUILD_ROOT%{_includedir}/inn/configdata.h
@@ -373,7 +370,8 @@
chmod 644 history.*
else
cd /var/lib/news
- # FIXME: this will fail immediately as it needs *configured* inn.conf!
+ # FIXME: this will fail immediately as it needs *configured*
+ # inn.conf, but PLD default rpm doesn't provide one!
%{_bindir}/makehistory
%{_bindir}/makedbz -s `wc -l <history` -f history
for i in dir hash index pag; do
@@ -394,25 +392,6 @@
chmod 664 /var/lib/news/.news.daily
fi
-# FIXME: /var/log is syslog daemon business, not ours!
-if [ ! -f /var/log/news/news.notice ]; then
- touch /var/log/news/news.notice
- chown news:news /var/log/news/news.notice
- chmod 664 /var/log/news/news.notice
-fi
-
-if [ ! -f /var/log/news/news.crit ]; then
- touch /var/log/news/news.crit
- chown news:news /var/log/news/news.crit
- chmod 660 /var/log/news/news.crit
-fi
-
-if [ ! -f /var/log/news/news.err ]; then
- touch /var/log/news/news.err
- chown news:news /var/log/news/news.err
- chmod 660 /var/log/news/news.err
-fi
-
/sbin/chkconfig --add inn
%service inn restart "inn news server"
@@ -447,12 +426,7 @@
# LOGS
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/inn
-%attr(770,root,news) %dir /var/log/news
-%attr(770,root,news) %dir /var/log/archiv/news
%attr(770,news,news) %dir /var/run/news
-%attr(664,news,news) %ghost /var/log/news/news.notice
-%attr(660,news,news) %ghost /var/log/news/news.crit
-%attr(660,news,news) %ghost /var/log/news/news.err
# SPOOL
%attr(771,root,news) %dir /var/spool/news
@@ -660,6 +634,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.167 2006/03/25 15:50:53 glen
+- more logs cleanup (or does it write directly there?)
+
Revision 1.166 2006/03/25 15:34:25 qboosh
- create+own /home/services/news dir
- don't mess with syslog configuration - PLD syslogs handle news.* by default now
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/inn.spec?r1=1.166&r2=1.167&f=u
More information about the pld-cvs-commit
mailing list