SPECS: sysklogd.spec - fixed freaky %post

qwiat qwiat at pld-linux.org
Sun Oct 19 03:16:50 CEST 2008


Author: qwiat                        Date: Sun Oct 19 01:16:49 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed freaky %post

---- Files affected:
SPECS:
   sysklogd.spec (1.128 -> 1.129) 

---- Diffs:

================================================================
Index: SPECS/sysklogd.spec
diff -u SPECS/sysklogd.spec:1.128 SPECS/sysklogd.spec:1.129
--- SPECS/sysklogd.spec:1.128	Tue Sep  4 00:39:36 2007
+++ SPECS/sysklogd.spec	Sun Oct 19 03:16:44 2008
@@ -10,7 +10,7 @@
 Summary(tr.UTF-8):	Linux sistem ve çekirdek kayıt süreci
 Name:		sysklogd
 Version:	1.5
-Release:	0.1
+Release:	0.2
 License:	GPL v2+
 Group:		Daemons
 Source0:	http://www.infodrom.org/projects/sysklogd/download/%{name}-%{version}.tar.gz
@@ -210,16 +210,11 @@
 %addusertogroup syslog logs
 
 %post -n syslog
-for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,secure,spooler,syslog,user}; do
-	if [ -f $n ]; then
-		chown syslog:syslog $n
-		continue
-	else
-		touch $n
-		chmod 000 $n
-		chown syslog:syslog $n
-		chmod 640 $n
-	fi
+[ ! -d /var/log/news ] && mkdir /var/log/news
+for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,secure,spooler,syslog,user,news/news.crit,news/news.err,news/news.notice}; do
+	[ ! -f $n ] && touch $n
+	chmod 640 $n
+	chown syslog:syslog $n
 done
 
 /sbin/chkconfig --add syslog
@@ -307,6 +302,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.129  2008/10/19 01:16:44  qwiat
+- fixed freaky %post
+
 Revision 1.128  2007/09/03 22:39:36  qboosh
 - there are BSD-licensed parts of code, but both daemons as a whole are GPLed
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sysklogd.spec?r1=1.128&r2=1.129&f=u



More information about the pld-cvs-commit mailing list