/[packages]/cauldron/rsyslog/current/SPECS/rsyslog.spec
ViewVC logotype

Contents of /cauldron/rsyslog/current/SPECS/rsyslog.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 222793 - (show annotations) (download)
Sun Mar 11 17:15:26 2012 UTC (12 years, 1 month ago) by colin
File size: 9946 byte(s)
New version: 5.8.8 (better systemd integration)
1 %define _with_systemd 1
2 %define _libdir /%{_lib}
3
4 Summary: Enhanced system logging and kernel message trapping daemons
5 Name: rsyslog
6 Version: 5.8.8
7 Release: %mkrel 1
8 License: GPLv3
9 Group: System/Kernel and hardware
10 URL: http://www.rsyslog.com/
11 Source0: http://www.rsyslog.com/files/download/%{name}/%{name}-%{version}.tar.gz
12 Source1: rsyslog.init
13 Source2: rsyslog.sysconfig
14 Source3: rsyslog.conf
15 Source4: 00_common.conf
16 Source5: 01_mysql.conf
17 Source6: 02_pgsql.conf
18 Source7: 03_gssapi.conf
19 Source8: 04_relp.conf
20 Source9: 05_dbi.conf
21 Source10: 06_snmp.conf
22 Source11: sysklogd.conf
23 Source12: 07_rsyslog.log
24 Patch0: rsyslog-5.8.4-systemd.patch
25 %if %{_with_systemd}
26 BuildRequires: systemd-units
27 %endif
28 BuildRequires: autoconf
29 BuildRequires: automake
30 %ifnarch %arm %mips
31 BuildRequires: java-rpmbuild
32 %endif
33 BuildRequires: krb5-devel
34 BuildRequires: libdbi-devel
35 BuildRequires: libtool
36 BuildRequires: mysql-devel >= 4.0
37 BuildRequires: net-snmp-devel
38 BuildRequires: pkgconfig
39 BuildRequires: postgresql-devel
40 BuildRequires: relp-devel
41 BuildRequires: zlib-devel
42 Requires: logrotate
43 Provides: syslog-daemon
44 Requires(post): rpm-helper
45 Requires(preun):rpm-helper
46 Requires(post): chkconfig
47 Requires(post): coreutils
48 %if %{_with_systemd}
49 Requires(post): sysvinit
50 Requires(preun): sysvinit
51 Requires(postun): sysvinit
52 %endif
53 Conflicts: syslog-ng
54
55 %description
56 Rsyslog is an enhanced multi-threaded syslogd supporting, among others, MySQL,
57 PostgreSQL, syslog/tcp, RFC 3195, permitted sender lists, filtering on any
58 message part, and fine grain output format control. It is quite compatible to
59 stock sysklogd and can be used as a drop-in replacement. Its advanced features
60 make it suitable for enterprise-class, encryption protected syslog relay chains
61 while at the same time being very easy to setup for the novice user.
62
63 o lmnet.so - Implementation of network related stuff.
64 o lmregexp.so - Implementation of regexp related stuff.
65 o lmtcpclt.so - This is the implementation of TCP-based syslog clients.
66 o lmtcpsrv.so - Common code for plain TCP based servers.
67 o imtcp.so - This is the implementation of the TCP input module.
68 o imudp.so - This is the implementation of the UDP input module.
69 o imuxsock.so - This is the implementation of the Unix sockets input module.
70 o imklog.so - The kernel log input module for Linux.
71 o immark.so - This is the implementation of the build-in mark message input
72 module.
73 o imfile.so - This is the input module for reading text file data.
74
75 %package mysql
76 Summary: MySQL support for rsyslog
77 Group: System/Kernel and hardware
78 Requires: %{name} = %{version}-%{release}
79
80 %description mysql
81 The rsyslog-mysql package contains a dynamic shared object that will add
82 MySQL database support to rsyslog.
83
84 o ommysql.so - This is the implementation of the build-in output module for
85 MySQL.
86
87 %package pgsql
88 Summary: PostgreSQL support for rsyslog
89 Group: System/Kernel and hardware
90 Requires: %{name} = %{version}-%{release}
91
92 %description pgsql
93 The rsyslog-pgsql package contains a dynamic shared object that will add
94 PostgreSQL database support to rsyslog.
95
96 o ompgsql.so - This is the implementation of the build-in output module for
97 PgSQL.
98
99 %package gssapi
100 Summary: GSS-API support for rsyslog
101 Group: System/Kernel and hardware
102 Requires: %{name} = %{version}-%{release}
103
104 %description gssapi
105 The rsyslog-gssapi package contains dynamic shared objects that will add
106 GSS-API support to rsyslog.
107
108 o lmgssutil.so - This is a miscellaneous helper class for gss-api features.
109 o imgssapi.so - This is the implementation of the GSSAPI input module.
110 o omgssapi.so - This is the implementation of the build-in forwarding output
111 module.
112
113 %package relp
114 Summary: RELP support for rsyslog
115 Group: System/Kernel and hardware
116 Requires: %{name} = %{version}-%{release}
117
118 %description relp
119 The rsyslog-relp package contains a dynamic shared object that will add
120 RELP support to rsyslog.
121
122 o imrelp.so - This is the implementation of the RELP input module.
123 o omrelp.so - This is the implementation of the RELP output module.
124
125 %package dbi
126 Summary: Dbi support for rsyslog
127 Group: System/Kernel and hardware
128 Requires: %{name} = %{version}-%{release}
129
130 %description dbi
131 The rsyslog-dbi package contains a dynamic shared object that will add
132 dbi driver support to rsyslog.
133
134 o omlibdbi.so - This is the implementation of the dbi output module.
135
136 %package snmp
137 Summary: SNMP support for rsyslog
138 Group: System/Kernel and hardware
139 Requires: %{name} = %{version}-%{release}
140
141 %description snmp
142 The rsyslog-snmp package contains a dynamic shared object that will add
143 SNMP support to rsyslog.
144
145 o omsnmp.so - This module sends an snmp trap.
146
147 %package docs
148 Summary: HTML documentation for rsyslog
149 Group: System/Kernel and hardware
150
151 %description docs
152 This package contains the HTML documentation for rsyslog.
153
154 %prep
155 %setup -q
156 %apply_patches
157
158 mkdir -p Mageia
159 cp %{SOURCE4} Mageia/00_common.conf
160 cp %{SOURCE5} Mageia/01_mysql.conf
161 cp %{SOURCE6} Mageia/02_pgsql.conf
162 cp %{SOURCE7} Mageia/03_gssapi.conf
163 cp %{SOURCE8} Mageia/04_relp.conf
164 cp %{SOURCE9} Mageia/05_dbi.conf
165 cp %{SOURCE10} Mageia/06_snmp.conf
166
167 %build
168 %serverbuild
169
170 %configure2_5x \
171 %if %{_with_systemd}
172 --with-systemdsystemunitdir=/lib/systemd/system \
173 %endif
174 --disable-static \
175 --sbindir=/sbin \
176 --enable-largefile \
177 --enable-regexp \
178 --enable-zlib \
179 --enable-gssapi-krb5 \
180 --enable-pthreads \
181 --enable-klog \
182 --enable-inet \
183 --enable-mysql \
184 --enable-pgsql \
185 --enable-libdbi \
186 --enable-snmp \
187 --enable-rsyslogd \
188 --enable-mail \
189 --enable-relp \
190 --enable-imfile \
191 --enable-imtemplate
192
193 %make
194
195 %install
196 %makeinstall_std
197
198 install -d -m 755 %{buildroot}%{_initrddir}
199 install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
200 install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
201 install -d -m 755 %{buildroot}%{_sysconfdir}/rsyslog.d
202
203 install -p -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/rsyslog
204 install -p -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/rsyslog
205 install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rsyslog.conf
206 install -p -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/syslog.conf
207 install -p -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/rsyslog
208 install -p -m 644 Mageia/*_*.conf %{buildroot}%{_sysconfdir}/rsyslog.d/
209
210 #get rid of *.la
211 rm %{buildroot}/%{_libdir}/rsyslog/*.la
212
213 # cleanup
214 rm -f %{buildroot}%{_libdir}/rsyslog/imtemplate.so
215
216 # fix html docs
217 rm -rf html_docs; mkdir -p html_docs
218 cp doc/*.html doc/*.jpg html_docs/
219 chmod 644 html_docs/*
220
221 %post
222 %_post_service rsyslog
223
224 for n in /var/log/{messages,secure,maillog,spooler}; do
225 [ -f $n ] && continue
226 umask 066 && touch $n
227 done
228
229 %preun
230 %_preun_service rsyslog
231
232 %triggerin -- rsyslog < 5.8.5-2.mga2
233 # enable systemd unit on update
234 [ -x /bin/systemctl ] && /bin/systemctl enable rsyslog.service || :
235
236 %postun
237 if [ "$1" -ge "1" ]; then
238 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
239 fi
240
241 %post mysql
242 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
243
244 %preun mysql
245 if [ "$1" = 0 ]; then
246 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
247 fi
248
249 %post pgsql
250 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
251
252 %preun pgsql
253 if [ "$1" = 0 ]; then
254 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
255 fi
256
257 %post gssapi
258 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
259
260 %preun gssapi
261 if [ "$1" = 0 ]; then
262 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
263 fi
264
265 %post relp
266 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
267
268 %preun relp
269 if [ "$1" = 0 ]; then
270 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
271 fi
272
273 %post dbi
274 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
275
276 %preun dbi
277 if [ "$1" = 0 ]; then
278 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
279 fi
280
281 %post snmp
282 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
283
284 %preun snmp
285 if [ "$1" = 0 ]; then
286 %{_initrddir}/rsyslog condrestart > /dev/null 2>/dev/null || :
287 fi
288
289 %files
290 %doc AUTHORS ChangeLog README doc/rsyslog-example.conf
291 %{_initrddir}/rsyslog
292 %config(noreplace) %{_sysconfdir}/rsyslog.conf
293 %config(noreplace) %{_sysconfdir}/syslog.conf
294 %config(noreplace) %{_sysconfdir}/sysconfig/rsyslog
295 %config(noreplace) %{_sysconfdir}/logrotate.d/rsyslog
296 %dir %{_sysconfdir}/rsyslog.d
297 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_common.conf
298 %if %{_with_systemd}
299 /lib/systemd/system/rsyslog.service
300 %endif
301 /sbin/rsyslogd
302 %dir %{_libdir}/rsyslog
303 %{_libdir}/rsyslog/imfile.so
304 %{_libdir}/rsyslog/imklog.so
305 %{_libdir}/rsyslog/immark.so
306 %{_libdir}/rsyslog/imtcp.so
307 %{_libdir}/rsyslog/imudp.so
308 %{_libdir}/rsyslog/imuxsock.so
309 %{_libdir}/rsyslog/lmnet.so
310 %{_libdir}/rsyslog/lmnetstrms.so
311 %{_libdir}/rsyslog/lmnsd_ptcp.so
312 %{_libdir}/rsyslog/lmregexp.so
313 %{_libdir}/rsyslog/lmstrmsrv.so
314 %{_libdir}/rsyslog/lmtcpclt.so
315 %{_libdir}/rsyslog/lmzlibw.so
316 %{_libdir}/rsyslog/lmtcpsrv.so
317 %{_libdir}/rsyslog/omtesting.so
318 %{_libdir}/rsyslog/ommail.so
319 %{_libdir}/rsyslog/omruleset.so
320 %{_mandir}/*/*
321
322 %files mysql
323 %doc plugins/ommysql/createDB.sql plugins/ommysql/contrib/delete_mysql
324 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_mysql.conf
325 %{_libdir}/rsyslog/ommysql.so
326
327 %files pgsql
328 %doc plugins/ompgsql/createDB.sql
329 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_pgsql.conf
330 %{_libdir}/rsyslog/ompgsql.so
331
332 %files gssapi
333 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_gssapi.conf
334 %{_libdir}/rsyslog/omgssapi.so
335 %{_libdir}/rsyslog/imgssapi.so
336 %{_libdir}/rsyslog/lmgssutil.so
337
338 %files relp
339 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_relp.conf
340 %{_libdir}/rsyslog/imrelp.so
341 %{_libdir}/rsyslog/omrelp.so
342
343 %files dbi
344 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_dbi.conf
345 %{_libdir}/rsyslog/omlibdbi.so
346
347 %files snmp
348 %config(noreplace) %{_sysconfdir}/rsyslog.d/*_snmp.conf
349 %{_libdir}/rsyslog/omsnmp.so
350
351 %files docs
352 %doc html_docs/*
353
354

  ViewVC Help
Powered by ViewVC 1.1.30