1 Summary: Linux system and kernel logger
2 Summary(de.UTF-8): Linux-System- und Kerner-Logger
3 Summary(es.UTF-8): Registrador de log del sistema linux
4 Summary(fr.UTF-8): Le système Linux et le logger du noyau
5 Summary(pl.UTF-8): Programy logujące zdarzenia w systemie i jądrze Linuksa
6 Summary(pt_BR.UTF-8): Registrador de log do sistema linux
7 Summary(tr.UTF-8): Linux sistem ve çekirdek kayıt süreci
13 Source0: http://download.rsyslog.com/rsyslog/%{name}-%{version}.tar.gz
14 # Source0-md5: e053094e8103165f98ddafe828f6ae4b
17 #Source3: syslog.logrotate
18 #Source4: syslog.sysconfig
20 #Source6: klogd.sysconfig
21 #Source7: syslogd-listfiles.sh
22 #Source8: syslogd-listfiles.8
23 URL: http://www.rsyslog.com/
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 #%define _exec_prefix /
27 #%define _bindir /usr/sbin
28 #%define _sbindir /sbin
31 Rsyslog is an enhanced multi-threaded syslogd supporting, among others,
32 MySQL, syslog/tcp, RFC 3195, permitted sender lists, filtering on any
33 message part, and fine grain output format control. It is quite compatible
34 to stock sysklogd and can be used as a drop-in replacement. Its advanced
35 features make it suitable for enterprise-class, encryption protected
36 syslog relay chains while at the same time being very easy to setup for
40 Summary: Linux system logger
41 Summary(de.UTF-8): Linux-System-Logger
42 Summary(pl.UTF-8): Program logujący zdarzenia w systemie Linux
45 Requires(post): fileutils
46 Requires(post,preun): /sbin/chkconfig
47 Requires(post,preun): rc-scripts >= 0.2.0
48 Requires(postun): /usr/sbin/groupdel
49 Requires(postun): /usr/sbin/userdel
50 Requires(pre): /usr/lib/rpm/user_group.sh
51 Requires(pre): /bin/id
52 Requires(pre): /usr/bin/getgid
53 Requires(pre): /usr/sbin/groupadd
54 Requires(pre): /usr/sbin/useradd
55 Requires(pre): /usr/sbin/usermod
56 Requires(triggerpostun): sed >= 4.0
57 # for vservers we don't need klogd and syslog works without klogd
58 # (just it doesn't log kernel buffer into syslog)
60 Requires: logrotate >= 3.2-3
61 Requires: psmisc >= 20.1
62 Provides: group(syslog)
63 Provides: syslogdaemon
64 Provides: user(syslog)
69 %description -n syslog
70 This is the Linux system logging program. It is run as a daemon
71 (background process) to log messages to different places. These are
72 usually things like sendmail logs, security logs, and errors from
75 %description -n syslog -l pl.UTF-8
76 Pakiet ten zawiera program, który jest uruchamiany jako demon i służy
77 do logowania zdarzeń w systemie Linux. Same logi mogą być składowane w
78 różnych miejscach (zdalnie i lokalnie). Przeważnie do logów trafiają
79 informacje o odbieranej i wysyłanej poczcie np. z sendmaila, zdarzenia
80 dotyczące bezpieczeństwa systemu, a także informacje o błędach z
84 Summary: Linux kernel logger
85 Summary(de.UTF-8): Linux-Kerner-Logger
86 Summary(pl.UTF-8): Program logujący zdarzenia w jądrze Linuksa
88 Requires(post,preun): /sbin/chkconfig
89 Requires(post,preun): rc-scripts >= 0.2.0
90 Requires(postun): /usr/sbin/groupdel
91 Requires(postun): /usr/sbin/userdel
92 Requires(pre): /usr/lib/rpm/user_group.sh
93 Requires(pre): /bin/id
94 Requires(pre): /usr/bin/getgid
95 Requires(pre): /usr/sbin/groupadd
96 Requires(pre): /usr/sbin/useradd
97 Requires(pre): /usr/sbin/usermod
98 Provides: group(syslog)
99 Provides: user(syslog)
102 %description -n klogd
103 This is the Linux kernel logging program. It is run as a daemon
104 (background process) to log messages from kernel.
106 %description -n klogd -l pl.UTF-8
107 Pakiet ten zawiera program, który jest uruchamiany jako demon i służy
108 do logowania komunikatów jądra Linuksa.
125 OPTIMIZE="%{rpmcflags}" \
126 LDFLAGS="%{rpmldflags}"
129 rm -rf $RPM_BUILD_ROOT
130 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,logrotate.d} \
131 $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_bindir}} \
132 $RPM_BUILD_ROOT/{dev,var/log}
135 BINDIR=$RPM_BUILD_ROOT%{_sbindir} \
136 MANDIR=$RPM_BUILD_ROOT%{_mandir}
138 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/syslog.conf
140 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog
141 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog
142 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/syslog
143 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/klogd
144 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/klogd
146 install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/syslogd-listfiles
147 install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man8
149 for n in debug kernel maillog messages secure syslog user spooler lpr daemon
151 > $RPM_BUILD_ROOT/var/log/$n
154 echo .so sysklogd.8 > $RPM_BUILD_ROOT%{_mandir}/man8/syslogd.8
156 # our strip can't strip otherwise
157 chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{klogd,syslogd}
160 %groupadd -P syslog -g 18 syslog
161 %useradd -P syslog -u 18 -g syslog -c "Syslog User" syslog
162 %addusertogroup syslog logs
165 for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,secure,spooler,syslog,user}; do
167 chown syslog:syslog $n
172 chown syslog:syslog $n
177 /sbin/chkconfig --add syslog
178 %service syslog restart "syslog daemon"
179 %service -q klogd restart
182 if [ "$1" = "0" ]; then
184 /sbin/chkconfig --del syslog
188 if [ "$1" = "0" ]; then
194 %groupadd -P klogd -g 18 syslog
195 %useradd -P klogd -u 18 -g syslog -c "Syslog User" syslog
196 %addusertogroup syslog logs
199 /sbin/chkconfig --add klogd
200 %service klogd restart "kernel logger daemon"
203 if [ "$1" = "0" ]; then
205 /sbin/chkconfig --del klogd
209 if [ "$1" = "0" ]; then
214 %triggerpostun -- inetutils-syslogd
215 /sbin/chkconfig --del syslog
216 /sbin/chkconfig --add syslog
217 if [ -f /etc/syslog.conf.rpmsave ]; then
218 mv -f /etc/syslog.conf{,.rpmnew}
219 mv -f /etc/syslog.conf{.rpmsave,}
220 echo "Moved /etc/syslog.conf.rpmsave to /etc/syslog.conf"
221 echo "Original file from package is available as /etc/syslog.conf.rpmnew"
224 %triggerpostun -n syslog -- syslog < 1.4.1-17.7
225 # remove any -a option from ADDITIONAL_SOCK
226 cp -f /etc/sysconfig/syslog{,.rpmsave}
227 sed -i -e '/^ADDITIONAL_SOCK=/s/-a //g' /etc/sysconfig/syslog
229 # reset config file permission, so people running with syslog uid can
230 # survive syslog reload
231 chgrp syslog /etc/syslog.conf
234 rm -rf $RPM_BUILD_ROOT
237 %defattr(644,root,root,755)
238 %doc ANNOUNCE NEWS README* CHANGES
239 %attr(640,root,syslog) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
240 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/syslog
241 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/syslog
242 %attr(754,root,root) /etc/rc.d/init.d/syslog
243 %attr(640,root,root) %ghost /var/log/*
244 %attr(755,root,root) %{_sbindir}/syslogd
245 %attr(755,root,root) %{_bindir}/syslogd-listfiles
250 %defattr(644,root,root,755)
251 %attr(754,root,root) /etc/rc.d/init.d/klogd
252 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/klogd
253 %attr(755,root,root) %{_sbindir}/klogd
254 %{_mandir}/man8/klog*