SPECS: sysklogd.spec - move syslogd-listfiles to /sbin (syslogd is...

glen glen at pld-linux.org
Sun Mar 5 14:54:50 CET 2006


Author: glen                         Date: Sun Mar  5 13:54:50 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- move syslogd-listfiles to /sbin (syslogd is started when /usr is not yet mounted)
- chmod +w for binaries so strip could work
- fix typo in %post script
- rel 19.2

---- Files affected:
SPECS:
   sysklogd.spec (1.114 -> 1.115) 

---- Diffs:

================================================================
Index: SPECS/sysklogd.spec
diff -u SPECS/sysklogd.spec:1.114 SPECS/sysklogd.spec:1.115
--- SPECS/sysklogd.spec:1.114	Mon Feb 27 19:53:57 2006
+++ SPECS/sysklogd.spec	Sun Mar  5 14:54:45 2006
@@ -10,7 +10,7 @@
 Summary(tr):	Linux sistem ve çekirdek kayýt süreci
 Name:		sysklogd
 Version:	1.4.1
-Release:	19.1
+Release:	19.2
 License:	GPL
 Group:		Daemons
 Source0:	http://www.ibiblio.org/pub/Linux/system/daemons/%{name}-%{version}.tar.gz
@@ -107,12 +107,12 @@
 Requires:	klogd
 Requires:	logrotate >= 3.2-3
 Requires:	psmisc >= 20.1
+Provides:	group(syslog)
 Provides:	syslogdaemon
 Provides:	user(syslog)
-Provides:	group(syslog)
+Obsoletes:	msyslog
 Obsoletes:	sysklogd
 Obsoletes:	syslog-ng
-Obsoletes:	msyslog
 
 %description -n syslog
 This is the Linux system logging program. It is run as a daemon
@@ -141,8 +141,8 @@
 Requires(pre):	/usr/bin/getgid
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
-Provides:	user(syslog)
 Provides:	group(syslog)
+Provides:	user(syslog)
 Obsoletes:	sysklogd
 
 %description -n klogd
@@ -193,7 +193,7 @@
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/klogd
 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/klogd
 
-install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/syslogd-listfiles
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sbindir}/syslogd-listfiles
 install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man8
 
 for n in debug kernel maillog messages secure syslog user spooler lpr daemon
@@ -203,13 +203,16 @@
 
 echo .so sysklogd.8 > $RPM_BUILD_ROOT%{_mandir}/man8/syslogd.8
 
+# our strip can't strip otherwise
+chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{klogd,syslogd}
+
 %pre -n syslog
 %groupadd -P syslog -g 18 syslog
 %useradd -P syslog -u 18 -g syslog -c "Syslog User" syslog
 %addusertogroup syslog logs
 
 %post -n syslog
-for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,secure,spooler,syslog,user}
+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
@@ -302,7 +305,7 @@
 %attr(754,root,root) /etc/rc.d/init.d/syslog
 %attr(640,root,root) %ghost /var/log/*
 %attr(755,root,root) %{_sbindir}/syslogd
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/syslogd-listfiles
 %{_mandir}/man5/*
 %{_mandir}/man8/sys*
 
@@ -321,6 +324,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.115  2006/03/05 13:54:45  glen
+- move syslogd-listfiles to /sbin (syslogd is started when /usr is not yet mounted)
+- chmod +w for binaries so strip could work
+- fix typo in %post script
+- rel 19.2
+
 Revision 1.114  2006/02/27 18:53:57  baggins
 - updated files
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sysklogd.spec?r1=1.114&r2=1.115&f=u



More information about the pld-cvs-commit mailing list