]>
Commit | Line | Data |
---|---|---|
88d746d2 | 1 | # TODO |
88d746d2 | 2 | # - without gssapi still generates dep on heimdal-libs |
eb59d20f JB |
3 | # --enable-ksi-ls12 (BR: libksi >= 3.19.0) |
4 | # --enable-mmgrok (BR: glib2-devel >= 2.0, grok) | |
5 | # --enable-mmkubernetes (BR: curl lognorm >= 2.0.3) | |
6 | # --enable-mmnormalize (BR: liblognorm-devel >= 2.0.3) | |
7 | # --enable-pmnormalize (BR: liblognorm-devel >= 2.0.3) | |
8 | # --enable-omamqp1? (BR: libqpid-proton >= 0.9) | |
9 | # --enable-omhdfs? (BR: hdfs.h or hadoop/hdfs.h) | |
5997e750 SP |
10 | # |
11 | # Conditional build: | |
eb59d20f | 12 | %bcond_without curl # clickhouse, elasticsearch, fmhttp, imdocker, and omhttpfs support vis curl |
5c2c427c | 13 | %bcond_without dbi # database support via libdbi |
73b56bd9 | 14 | %bcond_without gssapi # GSSAPI Kerberos 5 support |
eb59d20f JB |
15 | %bcond_without kafka # Kafka output support |
16 | %bcond_without maxminddb # MaxmindDB dblookup support | |
17 | %bcond_without mongodb # MongoDB output support | |
88d746d2 | 18 | %bcond_without mysql # MySQL database support |
eb59d20f | 19 | %bcond_with openssl # mmrfc5424addhmac module |
73b56bd9 | 20 | %bcond_without pgsql # PostgreSQL database support |
eb59d20f JB |
21 | %bcond_without rabbitmq # RammitMQ support |
22 | %bcond_without redis # REDIS output support via hiredis | |
23 | %bcond_without relp # RELP input/output support | |
24 | %bcond_without rfc3195 # RFC 3195 input support | |
73b56bd9 | 25 | %bcond_without snmp # SNMP support |
eb59d20f JB |
26 | %bcond_with tcl # Tcl output support [broken tcl linking] |
27 | %bcond_without zeromq # 0MQ input/output support via czmq | |
28 | %bcond_without systemd # systemd integration and journal (input/output) support | |
88d746d2 | 29 | |
284a559d PG |
30 | Summary: Linux system and kernel logger |
31 | Summary(de.UTF-8): Linux-System- und Kerner-Logger | |
32 | Summary(es.UTF-8): Registrador de log del sistema linux | |
33 | Summary(fr.UTF-8): Le système Linux et le logger du noyau | |
34 | Summary(pl.UTF-8): Programy logujące zdarzenia w systemie i jądrze Linuksa | |
35 | Summary(pt_BR.UTF-8): Registrador de log do sistema linux | |
36 | Summary(tr.UTF-8): Linux sistem ve çekirdek kayıt süreci | |
37 | Name: rsyslog | |
eb59d20f JB |
38 | Version: 8.2004.0 |
39 | Release: 1 | |
8b647ddd | 40 | License: GPL v3+ |
284a559d | 41 | Group: Daemons |
acae48e6 JB |
42 | #Source0Download: https://www.rsyslog.com/downloads/download-v8-stable/ |
43 | Source0: https://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz | |
eb59d20f | 44 | # Source0-md5: 375a60ab0f461367f84f07a5dbda6de2 |
a097ef7f SP |
45 | Source1: %{name}.init |
46 | Source2: %{name}.conf | |
47 | Source3: %{name}.sysconfig | |
5b253f29 | 48 | Source4: %{name}.logrotate |
5c2c427c | 49 | Patch0: rsyslog-systemd.patch |
acae48e6 | 50 | URL: https://www.rsyslog.com/ |
eb59d20f | 51 | %{?with_zeromq:BuildRequires: czmq-devel >= 3.0.2} |
acae48e6 | 52 | BuildRequires: gnutls-devel >= 1.4.0 |
2bf17689 | 53 | %{?with_gssapi:BuildRequires: heimdal-devel} |
eb59d20f | 54 | %{?with_redis:BuildRequires: hiredis-devel >= 0.10.1} |
6174378e | 55 | BuildRequires: libdbi-devel |
acae48e6 | 56 | BuildRequires: libestr-devel >= 0.1.9 |
eb59d20f | 57 | BuildRequires: libfastjson-devel >= 0.99.8 |
acae48e6 | 58 | BuildRequires: libgcrypt-devel |
eb59d20f | 59 | %{?with_rfc3195:BuildRequires: liblogging-rfc3195-devel >= 1.0.1} |
acae48e6 | 60 | BuildRequires: liblogging-stdlog-devel >= 1.0.3 |
eb59d20f JB |
61 | #BuildRequires: liblognorm-devel >= 2.0.3 |
62 | %{?with_maxminddb:BuildRequires: libmaxminddb-devel} | |
acae48e6 | 63 | BuildRequires: libnet-devel >= 1:1.1 |
eb59d20f JB |
64 | %{?with_kafka:BuildRequires: librdkafka-devel >= 0.9.1} |
65 | %{?with_relp:BuildRequires: librelp-devel >= 1.2.14} | |
acae48e6 | 66 | BuildRequires: libuuid-devel |
eb59d20f | 67 | %{?with_mongodb:BuildRequires: mongo-c-driver-devel >= 1.0} |
73b56bd9 JB |
68 | %{?with_mysql:BuildRequires: mysql-devel} |
69 | %{?with_snmp:BuildRequires: net-snmp-devel} | |
eb59d20f | 70 | %{?with_openssl:BuildRequires: openssl-devel >= 0.9.7} |
d594a7b2 | 71 | BuildRequires: pkgconfig |
73b56bd9 | 72 | %{?with_pgsql:BuildRequires: postgresql-devel} |
eb59d20f | 73 | %{?with_rabbitmq:BuildRequires: rabbitmq-c-devel >= 0.2.0} |
3ecc32bd | 74 | BuildRequires: rpmbuild(macros) >= 1.626 |
eb59d20f JB |
75 | %{?with_systemd:BuildRequires: systemd-devel >= 1:234} |
76 | %{?with_tcl:BuildRequires: tcl-devel} | |
77 | BuildRequires: xxHash-devel | |
acae48e6 | 78 | BuildRequires: zlib-devel |
284a559d PG |
79 | Requires(post): fileutils |
80 | Requires(post,preun): /sbin/chkconfig | |
81 | Requires(post,preun): rc-scripts >= 0.2.0 | |
82 | Requires(postun): /usr/sbin/groupdel | |
83 | Requires(postun): /usr/sbin/userdel | |
284a559d PG |
84 | Requires(pre): /bin/id |
85 | Requires(pre): /usr/bin/getgid | |
707ea13f | 86 | Requires(pre): /usr/lib/rpm/user_group.sh |
284a559d PG |
87 | Requires(pre): /usr/sbin/groupadd |
88 | Requires(pre): /usr/sbin/useradd | |
89 | Requires(pre): /usr/sbin/usermod | |
84b1d4ec | 90 | Requires(post,preun,postun): systemd-units >= 38 |
284a559d PG |
91 | Requires(triggerpostun): sed >= 4.0 |
92 | # for vservers we don't need klogd and syslog works without klogd | |
93 | # (just it doesn't log kernel buffer into syslog) | |
94 | # Requires: klogd | |
acae48e6 | 95 | Requires: libestr >= 0.1.9 |
eb59d20f | 96 | Requires: libfastjson >= 0.99.8 |
acae48e6 | 97 | Requires: liblogging-stdlog >= 1.0.3 |
284a559d PG |
98 | Requires: logrotate >= 3.2-3 |
99 | Requires: psmisc >= 20.1 | |
84b1d4ec | 100 | Requires: systemd-units >= 38 |
284a559d | 101 | Provides: group(syslog) |
d02b649b JR |
102 | Provides: service(klogd) |
103 | Provides: service(syslog) | |
284a559d PG |
104 | Provides: syslogdaemon |
105 | Provides: user(syslog) | |
106 | Obsoletes: msyslog | |
acac4388 | 107 | Obsoletes: rsyslog-systemd |
284a559d PG |
108 | Obsoletes: sysklogd |
109 | Obsoletes: syslog-ng | |
a15cedb6 BS |
110 | Conflicts: cronie < 1.5.0-3 |
111 | Conflicts: fcron < 3.1.2-5 | |
3714e2e4 | 112 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
284a559d | 113 | |
3714e2e4 | 114 | %description |
707ea13f SP |
115 | Rsyslog is an enhanced multi-threaded syslogd supporting, among |
116 | others, MySQL, syslog/tcp, RFC 3195, permitted sender lists, filtering | |
117 | on any message part, and fine grain output format control. It is quite | |
118 | compatible to stock sysklogd and can be used as a drop-in replacement. | |
119 | Its advanced features make it suitable for enterprise-class, | |
120 | encryption protected syslog relay chains while at the same time being | |
121 | very easy to setup for the novice user. | |
284a559d | 122 | |
73b56bd9 JB |
123 | %description -l pl.UTF-8 |
124 | rsyslog to zaawansowany, wielowątkowy syslogd obsługujący m.in. | |
125 | MySQL-a, syslog/tcp, RFC 3195, listy dopuszczalnych nadawców, | |
0ca0cfed ER |
126 | filtrowanie po częściach komunikatów i szczegółową kontrolę formatu |
127 | wyjściowego. Jest w miarę kompatybilny ze zwykłym sysklogd i może być | |
128 | używany jako jego zamiennik. Jego zaawansowane możliwości czynią go | |
129 | odpowiednim do produkcyjnych, szyfrowanych łańcuchów przekazywania | |
130 | logów, a jednocześnie jest przy tym łatwy do skonfigurowania dla | |
131 | początkującego użytkownika. | |
73b56bd9 | 132 | |
4fffed3f | 133 | %package gssapi |
f0da554a | 134 | Summary: GSSAPI authentication and encryption support for rsyslog |
73b56bd9 | 135 | Summary(pl.UTF-8): Obsługa uwierzytelniania GSSAPI i szyfrowania dla rsysloga |
f0da554a | 136 | Group: Daemons |
d820c9a0 | 137 | Requires: %{name} = %{version}-%{release} |
4fffed3f SP |
138 | |
139 | %description gssapi | |
f0da554a SP |
140 | The rsyslog-gssapi package contains the rsyslog plugins which support |
141 | GSSAPI authentication and secure connections. GSSAPI is commonly used | |
142 | for Kerberos authentication. | |
4fffed3f | 143 | |
73b56bd9 JB |
144 | %description gssapi -l pl.UTF-8 |
145 | Pakiet rsyslog-gssapi zawiera wtyczki rsysloga obsługujące | |
146 | uwierzytelnianie GSSAPI i bezpieczne połączenia. GSSAPI jest | |
147 | powszechnie używane do uwierzytelniania Kerberos. | |
148 | ||
eb59d20f JB |
149 | %package http |
150 | Summary: HTTP support modules for rsyslog | |
151 | Summary(pl.UTF-8): Moduły obsługujące HTTP dla rsysloga | |
152 | Group: Daemons | |
153 | Requires: %{name} = %{version}-%{release} | |
154 | ||
155 | %description http | |
156 | HTTP support modules for rsyslog: http function module, docker input | |
157 | module, clickhouse output module, elasticsearch output module, http | |
158 | output module and httpfs output module. | |
159 | ||
160 | %description http -l pl.UTF-8 | |
161 | Moduły obsługujące HTTP dla rsysloga: moduł funkcji http, moduł | |
162 | wejściowy docker, moduł wyjściowy clickhouse, moduł wyjściowy | |
163 | elasticsearch i moduł wyjściowy http i moduł wyjściowy httpfs. | |
164 | ||
165 | %package czmq | |
166 | Summary: 0MQ input/output support for rsyslog | |
167 | Summary(pl.UTF-8): Obsługa wejścia/wyjścia 0MQ dla rsysloga | |
168 | Group: Daemons | |
169 | Requires: %{name} = %{version}-%{release} | |
170 | Requires: czmq >= 3.0.2 | |
171 | ||
172 | %description czmq | |
173 | 0MQ input/output support for rsyslog. | |
174 | ||
175 | %description czmq -l pl.UTF-8 | |
176 | Obsługa wejścia/wyjścia 0MQ dla rsysloga. | |
177 | ||
178 | %package kafka | |
179 | Summary: Kafka input/output support for rsyslog | |
180 | Summary(pl.UTF-8): Obsługa wejścia/wyjścia Kafka dla rsysloga | |
181 | Group: Daemons | |
182 | Requires: %{name} = %{version}-%{release} | |
183 | Requires: librdkafka >= 0.9.1 | |
184 | ||
185 | %description kafka | |
186 | Kafka input/output support for rsyslog. | |
187 | ||
188 | %description kafka -l pl.UTF-8 | |
189 | Obsługa wejścia/wyjścia Kafka dla rsysloga. | |
190 | ||
191 | %package relp | |
192 | Summary: RELP input/output support for rsyslog | |
193 | Summary(pl.UTF-8): Obsługa wejścia/wyjścia RELP dla rsysloga | |
194 | Group: Daemons | |
195 | Requires: %{name} = %{version}-%{release} | |
196 | Requires: librelp >= 1.2.14 | |
197 | ||
198 | %description relp | |
199 | RELP input/output support for rsyslog. | |
200 | ||
201 | %description relp -l pl.UTF-8 | |
202 | Obsługa wejścia/wyjścia RELP dla rsysloga. | |
203 | ||
204 | %package rfc3195 | |
205 | Summary: RFC 3195 input support for rsyslog | |
206 | Summary(pl.UTF-8): Obsługa wejścia RFC 3195 dla rsysloga | |
207 | Group: Daemons | |
208 | Requires: %{name} = %{version}-%{release} | |
209 | Requires: liblogging-rfc3195 >= 1.0.1 | |
210 | ||
211 | %description rfc3195 | |
212 | RFC 3195 input support for rsyslog. | |
213 | ||
214 | %description rfc3195 -l pl.UTF-8 | |
215 | Obsługa wejścia RFC 3195 dla rsysloga. | |
216 | ||
acae48e6 JB |
217 | %package gnutls |
218 | Summary: TLS protocol support for rsyslog | |
219 | Summary(pl.UTF-8): Obsługa protokołu TLS dla rsysloga | |
220 | Group: Daemons | |
221 | Requires: %{name} = %{version}-%{release} | |
222 | Requires: gnutls-libs >= 1.4.0 | |
223 | ||
224 | %description gnutls | |
225 | The rsyslog-gnutls package contains the rsyslog plugin that provide | |
226 | the ability to receive syslog messages via upcoming | |
227 | syslog-transport-tls IETF standard protocol. | |
228 | ||
229 | %description gnutls -l pl.UTF-8 | |
230 | Ten pakiet zawiera wtyczkę rsysloga zapewniającą możliwośc odbierania | |
231 | komunikatów sysloga poprzez protokół nadchodzącego standardu IETF | |
232 | syslog-transport-tls. | |
233 | ||
eb59d20f JB |
234 | %package mmdblookup |
235 | Summary: Maxmind DB lookup module for rsyslog | |
236 | Summary(pl.UTF-8): Moduł wyszukujący w bazie Maxmind DB dla rsysloga | |
237 | Group: Daemons | |
238 | Requires: %{name} = %{version}-%{release} | |
239 | ||
240 | %description mmdblookup | |
241 | Maxmind DB lookup module for rsyslog. | |
242 | ||
243 | %description mmdblookup -l pl.UTF-8 | |
244 | Moduł wyszukujący w bazie Maxmind DB dla rsysloga. | |
245 | ||
246 | %package hiredis | |
247 | Summary: REDIS output support for rsyslog | |
248 | Summary(pl.UTF-8): Obsługa wyjścia REDIS dla rsysloga | |
249 | Group: Daemons | |
250 | Requires: %{name} = %{version}-%{release} | |
251 | Requires: hiredis >= 0.10.1 | |
252 | ||
253 | %description hiredis | |
254 | REDIS output support for rsyslog. | |
255 | ||
256 | %description hiredis -l pl.UTF-8 | |
257 | Obsługa wyjścia REDIS dla rsysloga. | |
258 | ||
5c2c427c AF |
259 | %package dbi |
260 | Summary: libdbi database support for rsyslog | |
eb59d20f | 261 | Summary(pl.UTF-8): Obsługa baz danych przez libdbi dla rsysloga |
5c2c427c AF |
262 | Group: Daemons |
263 | Requires: %{name} = %{version}-%{release} | |
264 | ||
265 | %description dbi | |
266 | This module supports a large number of database systems via | |
267 | libdbi. Libdbi abstracts the database layer and provides drivers for | |
268 | many systems. Drivers are available via the libdbi-drivers project. | |
269 | ||
acae48e6 JB |
270 | %description dbi -l pl.UTF-8 |
271 | Ten moduł obsłuje wiele różnych systemów baz danych poprzez libdbi. | |
272 | Libdbi to abstrakcyjna warstwa baz danych, udostępniająca sterowniki | |
273 | do wielu systemów; sterowniki są dostępne w projekcie libdbi-drivers. | |
274 | ||
eb59d20f JB |
275 | %package mongodb |
276 | Summary: MongoDB output support for rsyslog | |
277 | Summary(pl.UTF-8): Obsługa wyjścia MongoDB dla rsysloga | |
278 | Group: Daemons | |
279 | Requires: %{name} = %{version}-%{release} | |
280 | ||
281 | %description mongodb | |
282 | MongoDB output support for rsyslog. | |
283 | ||
284 | %description mongodb -l pl.UTF-8 | |
285 | Obsługa wyjścia MongoDB dla rsysloga. | |
286 | ||
acae48e6 JB |
287 | %package mysql |
288 | Summary: MySQL support for rsyslog | |
289 | Summary(pl.UTF-8): Obsługa MySQL-a do rsysloga | |
5c2c427c AF |
290 | Group: Daemons |
291 | Requires: %{name} = %{version}-%{release} | |
292 | ||
acae48e6 JB |
293 | %description mysql |
294 | The rsyslog-mysql package contains a dynamic shared object that will | |
295 | add MySQL database support to rsyslog. | |
296 | ||
297 | %description mysql -l pl.UTF-8 | |
298 | Pakiet rsyslog-mysql zawiera moduł dynamiczny dodający obsługę bazy | |
299 | danych MySQL do rsysloga. | |
300 | ||
301 | %package pgsql | |
302 | Summary: PostgresSQL support for rsyslog | |
303 | Summary(pl.UTF-8): Obsługa PostgreSQL-a dla rsysloga | |
304 | Group: Daemons | |
305 | Requires: %{name} = %{version}-%{release} | |
306 | ||
307 | %description pgsql | |
308 | The rsyslog-pgsql package contains a dynamic shared object that will | |
309 | add PostgreSQL database support to rsyslog. | |
310 | ||
311 | %description pgsql -l pl.UTF-8 | |
312 | Pakiet rsyslog-pgsql zawiera moduł dynamiczny dodający obsługę bazy | |
313 | danych PostgreSQL do rsysloga. | |
5c2c427c | 314 | |
eb59d20f JB |
315 | %package rabbitmq |
316 | Summary: RabbitMQ output support for rsyslog | |
317 | Summary(pl.UTF-8): Obsługa wyjścia RabbitMQ dla rsysloga | |
318 | Group: Daemons | |
319 | Requires: %{name} = %{version}-%{release} | |
320 | Requires: rabbitmq-c >= 0.2.0 | |
321 | ||
322 | %description rabbitmq | |
323 | RabbitMQ output support for rsyslog. | |
324 | ||
325 | %description rabbitmq -l pl.UTF-8 | |
326 | Obsługa wyjścia RabbitMQ dla rsysloga. | |
327 | ||
5c2c427c AF |
328 | %package snmp |
329 | Summary: SNMP protocol support for rsyslog | |
acae48e6 | 330 | Summary(pl.UTF-8): Obsługa protokołu SNMP dla rsysloga |
5c2c427c AF |
331 | Group: Daemons |
332 | Requires: %{name} = %{version}-%{release} | |
333 | ||
334 | %description snmp | |
335 | The rsyslog-snmp package contains the rsyslog plugin that provides the | |
336 | ability to send syslog messages as SNMPv1 and SNMPv2c traps. | |
337 | ||
acae48e6 JB |
338 | %description snmp -l pl.UTF-8 |
339 | Ten pakiet zawiera wtyczkę rsysloga zapewniającą możliwość wysyłania | |
340 | komunikatów sysloga jako pułapki SNMPv1 i SNMPv2c. | |
341 | ||
342 | %package udpspoof | |
343 | Summary: The omudpspoof module for rsyslog | |
344 | Summary(pl.UTF-8): Moduł omudspoof dla rsysloga | |
5c2c427c AF |
345 | Group: Daemons |
346 | Requires: %{name} = %{version}-%{release} | |
347 | ||
acae48e6 JB |
348 | %description udpspoof |
349 | This module is similar to the regular UDP forwarder, but permits to | |
350 | spoof the sender address. Also, it enables to circle through a number | |
351 | of source ports. | |
352 | ||
353 | %description udpspoof -l pl.UTF-8 | |
354 | Ten moduł jest podobny do zwykłego przekaźnika UDP, ale pozwana na | |
355 | fałszowanie adresu nadawcy. Dodatkowo umożliwia wysyłanie | |
356 | naprzemiennie z pewnej liczby portów źródłowych. | |
5c2c427c | 357 | |
284a559d PG |
358 | %prep |
359 | %setup -q | |
5c2c427c | 360 | %patch0 -p1 |
284a559d PG |
361 | |
362 | %build | |
5997e750 | 363 | %configure \ |
5c2c427c | 364 | --disable-silent-rules \ |
eb59d20f JB |
365 | %{?with_curl:--enable-clickhouse} \ |
366 | %{?with_curl:--enable-elasticsearch} \ | |
367 | --enable-fmhash-xxhash \ | |
368 | %{!?with_curl:--disable-fmhttp} \ | |
5c2c427c | 369 | --enable-gnutls \ |
acae48e6 | 370 | %{?with_gssapi:--enable-gssapi-krb5} \ |
eb59d20f | 371 | --enable-imbatchreport \ |
5c2c427c | 372 | --enable-imdiag \ |
eb59d20f | 373 | %{?with_curl:--enable-imdocker} \ |
ec96f36f | 374 | --enable-imfile \ |
eb59d20f JB |
375 | %{?with_zeromq:--enable-imczmq} \ |
376 | %{?with_systemd:--enable-imjournal} \ | |
377 | %{?with_kafka:--enable-imkafka} \ | |
5c2c427c AF |
378 | --enable-impstats \ |
379 | --enable-imptcp \ | |
380 | --enable-imtemplate \ | |
acae48e6 | 381 | %{?with_dbi:--enable-libdbi} \ |
eb59d20f | 382 | %{!?with_systemd:--disable-libsystemd} \ |
5c2c427c | 383 | --enable-mail \ |
eb59d20f JB |
384 | --enable-mmanon \ |
385 | --enable-mmaudit \ | |
386 | --enable-mmcount \ | |
387 | %{?with_maxminddb:--enable-mmdblookup} \ | |
388 | --enable-mmfields \ | |
389 | --enable-mmjsonparse \ | |
390 | --enable-mmpstrucdata \ | |
391 | %{?with_openssl:--enable-mmrfc5424addhmac} \ | |
392 | --enable-mmrm1stspace \ | |
393 | --enable-mmsequence \ | |
5c2c427c | 394 | --enable-mmsnmptrapd \ |
eb59d20f JB |
395 | --enable-mmtaghostname \ |
396 | --enable-mmutf8fix \ | |
acae48e6 | 397 | %{?with_mysql:--enable-mysql} \ |
eb59d20f | 398 | %{?with_zeromq:--enable-omczmq} \ |
5c2c427c | 399 | --enable-omdbalerting \ |
eb59d20f JB |
400 | --enable-omfile-hardened \ |
401 | %{?with_curl:--enable-omhttp} \ | |
402 | %{?with_curl:--enable-omhttpfs} \ | |
403 | %{?with_redis:--enable-omhiredis} \ | |
404 | %{?with_systemd:--enable-omjournal} \ | |
405 | %{?with_kafka:--enable-omkafka} \ | |
406 | %{?with_mongodb:--enable-ommongodb} \ | |
5c2c427c | 407 | --enable-omprog \ |
eb59d20f | 408 | %{?with_rabbitmq:--enable-omrabbitmq} \ |
212617ce | 409 | --enable-omruleset \ |
5c2c427c | 410 | --enable-omstdout \ |
eb59d20f | 411 | %{?with_tcl:--enable-omtcl} \ |
5c2c427c AF |
412 | --enable-omtemplate \ |
413 | --enable-omudpspoof \ | |
414 | --enable-omuxsock \ | |
acae48e6 | 415 | %{?with_pgsql:--enable-pgsql} \ |
5c2c427c | 416 | --enable-pmaixforwardedfrom \ |
eb59d20f | 417 | --enable-pmciscoios \ |
5c2c427c | 418 | --enable-pmcisconames \ |
eb59d20f | 419 | --enable-pmdb2diag \ |
5c2c427c | 420 | --enable-pmlastmsg \ |
eb59d20f | 421 | --enable-pmpanngfw \ |
5c2c427c AF |
422 | --enable-pmrfc3164sd \ |
423 | --enable-pmsnare \ | |
eb59d20f JB |
424 | %{?with_relp:--enable-relp} \ |
425 | %{?with_rfc3195:--enable-rfc3195} \ | |
5c2c427c | 426 | --enable-smcustbindcdr \ |
5c2c427c | 427 | %{?with_snmp:--enable-snmp} \ |
acae48e6 | 428 | --enable-unlimited-select \ |
eb59d20f | 429 | --enable-usertools \ |
acae48e6 | 430 | --with-systemdsystemunitdir=%{systemdunitdir} |
5997e750 | 431 | |
3714e2e4 | 432 | %{__make} |
284a559d PG |
433 | |
434 | %install | |
435 | rm -rf $RPM_BUILD_ROOT | |
f16b19a4 | 436 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,logrotate.d,rsyslog.d} \ |
284a559d PG |
437 | $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_bindir}} \ |
438 | $RPM_BUILD_ROOT/{dev,var/log} | |
439 | ||
440 | %{__make} install \ | |
4fffed3f | 441 | DESTDIR=$RPM_BUILD_ROOT |
284a559d | 442 | |
88d746d2 ER |
443 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rsyslog |
444 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rsyslog.conf | |
445 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rsyslog | |
446 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/rsyslog | |
a097ef7f | 447 | |
8bb0dc91 | 448 | for n in cron daemon debug kernel lpr maillog messages secure spooler syslog user; do |
284a559d PG |
449 | > $RPM_BUILD_ROOT/var/log/$n |
450 | done | |
451 | ||
00340333 JB |
452 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rsyslog/*.la |
453 | ||
454 | %clean | |
455 | rm -rf $RPM_BUILD_ROOT | |
456 | ||
3714e2e4 | 457 | %pre |
284a559d PG |
458 | %groupadd -P syslog -g 18 syslog |
459 | %useradd -P syslog -u 18 -g syslog -c "Syslog User" syslog | |
460 | %addusertogroup syslog logs | |
461 | ||
3714e2e4 | 462 | %post |
284a559d PG |
463 | for n in /var/log/{cron,daemon,debug,kernel,lpr,maillog,messages,secure,spooler,syslog,user}; do |
464 | if [ -f $n ]; then | |
ec96f36f | 465 | chown root:logs $n |
284a559d PG |
466 | continue |
467 | else | |
468 | touch $n | |
469 | chmod 000 $n | |
ec96f36f | 470 | chown root:logs $n |
284a559d PG |
471 | chmod 640 $n |
472 | fi | |
473 | done | |
474 | ||
3714e2e4 | 475 | /sbin/chkconfig --add %{name} |
f16b19a4 | 476 | %service rsyslog restart "%{name} daemon" |
284a559d | 477 | |
d02b649b | 478 | %systemd_post rsyslog.service |
031270e3 | 479 | ln -sf /lib/systemd/system/rsyslog.service /etc/systemd/system/syslog.service || : |
d02b649b | 480 | |
3714e2e4 | 481 | %preun |
284a559d | 482 | if [ "$1" = "0" ]; then |
3714e2e4 PG |
483 | %service %{name} stop |
484 | /sbin/chkconfig --del %{name} | |
284a559d | 485 | fi |
d02b649b | 486 | %systemd_preun rsyslog.service |
284a559d | 487 | |
3714e2e4 | 488 | %postun |
284a559d PG |
489 | if [ "$1" = "0" ]; then |
490 | %userremove syslog | |
491 | %groupremove syslog | |
492 | fi | |
d02b649b JR |
493 | %systemd_reload |
494 | ||
495 | %triggerpostun -- %{name} < 5.8.6-4 | |
496 | %systemd_trigger rsyslog.service | |
284a559d | 497 | |
284a559d PG |
498 | %triggerpostun -- inetutils-syslogd |
499 | /sbin/chkconfig --del syslog | |
500 | /sbin/chkconfig --add syslog | |
501 | if [ -f /etc/syslog.conf.rpmsave ]; then | |
502 | mv -f /etc/syslog.conf{,.rpmnew} | |
503 | mv -f /etc/syslog.conf{.rpmsave,} | |
504 | echo "Moved /etc/syslog.conf.rpmsave to /etc/syslog.conf" | |
505 | echo "Original file from package is available as /etc/syslog.conf.rpmnew" | |
506 | fi | |
507 | ||
3714e2e4 | 508 | %files |
284a559d | 509 | %defattr(644,root,root,755) |
acae48e6 | 510 | %doc AUTHORS ChangeLog README.md |
eb59d20f JB |
511 | %attr(755,root,root) %{_bindir}/logctl |
512 | %attr(755,root,root) %{_bindir}/rscryutil | |
513 | %attr(755,root,root) %{_sbindir}/rsyslogd | |
f16b19a4 | 514 | %dir %{_sysconfdir}/rsyslog.d |
ec96f36f | 515 | %attr(640,root,syslog) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rsyslog.conf |
a097ef7f SP |
516 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rsyslog |
517 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/rsyslog | |
518 | %attr(754,root,root) /etc/rc.d/init.d/rsyslog | |
acae48e6 JB |
519 | %attr(640,root,logs) %ghost /var/log/cron |
520 | %attr(640,root,logs) %ghost /var/log/daemon | |
521 | %attr(640,root,logs) %ghost /var/log/debug | |
522 | %attr(640,root,logs) %ghost /var/log/kernel | |
523 | %attr(640,root,logs) %ghost /var/log/lpr | |
524 | %attr(640,root,logs) %ghost /var/log/maillog | |
525 | %attr(640,root,logs) %ghost /var/log/messages | |
526 | %attr(640,root,logs) %ghost /var/log/secure | |
527 | %attr(640,root,logs) %ghost /var/log/spooler | |
528 | %attr(640,root,logs) %ghost /var/log/syslog | |
529 | %attr(640,root,logs) %ghost /var/log/user | |
530 | %{systemdunitdir}/rsyslog.service | |
d30c8748 | 531 | %dir %{_libdir}/rsyslog |
eb59d20f JB |
532 | %attr(755,root,root) %{_libdir}/rsyslog/fmhash.so |
533 | %attr(755,root,root) %{_libdir}/rsyslog/imbatchreport.so | |
212617ce | 534 | %attr(755,root,root) %{_libdir}/rsyslog/imdiag.so |
ec96f36f | 535 | %attr(755,root,root) %{_libdir}/rsyslog/imfile.so |
eb59d20f | 536 | %{?with_systemd:%attr(755,root,root) %{_libdir}/rsyslog/imjournal.so} |
73b56bd9 JB |
537 | %attr(755,root,root) %{_libdir}/rsyslog/imklog.so |
538 | %attr(755,root,root) %{_libdir}/rsyslog/immark.so | |
212617ce JR |
539 | %attr(755,root,root) %{_libdir}/rsyslog/impstats.so |
540 | %attr(755,root,root) %{_libdir}/rsyslog/imptcp.so | |
73b56bd9 JB |
541 | %attr(755,root,root) %{_libdir}/rsyslog/imtcp.so |
542 | %attr(755,root,root) %{_libdir}/rsyslog/imudp.so | |
543 | %attr(755,root,root) %{_libdir}/rsyslog/imuxsock.so | |
212617ce | 544 | %attr(755,root,root) %{_libdir}/rsyslog/lmcry_gcry.so |
73b56bd9 | 545 | %attr(755,root,root) %{_libdir}/rsyslog/lmnet.so |
5b253f29 AM |
546 | %attr(755,root,root) %{_libdir}/rsyslog/lmnetstrms.so |
547 | %attr(755,root,root) %{_libdir}/rsyslog/lmnsd_ptcp.so | |
73b56bd9 JB |
548 | %attr(755,root,root) %{_libdir}/rsyslog/lmregexp.so |
549 | %attr(755,root,root) %{_libdir}/rsyslog/lmtcpclt.so | |
550 | %attr(755,root,root) %{_libdir}/rsyslog/lmtcpsrv.so | |
17f8b5ba | 551 | %attr(755,root,root) %{_libdir}/rsyslog/lmzlibw.so |
eb59d20f JB |
552 | %attr(755,root,root) %{_libdir}/rsyslog/mmanon.so |
553 | %attr(755,root,root) %{_libdir}/rsyslog/mmaudit.so | |
554 | %attr(755,root,root) %{_libdir}/rsyslog/mmcount.so | |
212617ce | 555 | %attr(755,root,root) %{_libdir}/rsyslog/mmexternal.so |
eb59d20f JB |
556 | %attr(755,root,root) %{_libdir}/rsyslog/mmfields.so |
557 | %attr(755,root,root) %{_libdir}/rsyslog/mmjsonparse.so | |
558 | %attr(755,root,root) %{_libdir}/rsyslog/mmpstrucdata.so | |
559 | %attr(755,root,root) %{_libdir}/rsyslog/mmrm1stspace.so | |
560 | %attr(755,root,root) %{_libdir}/rsyslog/mmsequence.so | |
5c2c427c | 561 | %attr(755,root,root) %{_libdir}/rsyslog/mmsnmptrapd.so |
eb59d20f JB |
562 | %attr(755,root,root) %{_libdir}/rsyslog/mmtaghostname.so |
563 | %attr(755,root,root) %{_libdir}/rsyslog/mmutf8fix.so | |
564 | %attr(755,root,root) %{_libdir}/rsyslog/omfile-hardened.so | |
565 | %{?with_systemd:%attr(755,root,root) %{_libdir}/rsyslog/omjournal.so} | |
5c2c427c AF |
566 | %attr(755,root,root) %{_libdir}/rsyslog/ommail.so |
567 | %attr(755,root,root) %{_libdir}/rsyslog/omprog.so | |
212617ce | 568 | %attr(755,root,root) %{_libdir}/rsyslog/omruleset.so |
5c2c427c | 569 | %attr(755,root,root) %{_libdir}/rsyslog/omstdout.so |
212617ce | 570 | %attr(755,root,root) %{_libdir}/rsyslog/omtesting.so |
5c2c427c AF |
571 | %attr(755,root,root) %{_libdir}/rsyslog/omuxsock.so |
572 | %attr(755,root,root) %{_libdir}/rsyslog/pmaixforwardedfrom.so | |
eb59d20f | 573 | %attr(755,root,root) %{_libdir}/rsyslog/pmciscoios.so |
5c2c427c | 574 | %attr(755,root,root) %{_libdir}/rsyslog/pmcisconames.so |
eb59d20f | 575 | %attr(755,root,root) %{_libdir}/rsyslog/pmdb2diag.so |
5c2c427c | 576 | %attr(755,root,root) %{_libdir}/rsyslog/pmlastmsg.so |
eb59d20f | 577 | %attr(755,root,root) %{_libdir}/rsyslog/pmpanngfw.so |
5c2c427c | 578 | %attr(755,root,root) %{_libdir}/rsyslog/pmsnare.so |
acae48e6 JB |
579 | %{_mandir}/man5/rsyslog.conf.5* |
580 | %{_mandir}/man8/rsyslogd.8* | |
4fffed3f | 581 | |
eb59d20f JB |
582 | %if %{with curl} |
583 | %files http | |
584 | %defattr(644,root,root,755) | |
585 | %attr(755,root,root) %{_libdir}/rsyslog/fmhttp.so | |
586 | %attr(755,root,root) %{_libdir}/rsyslog/imdocker.so | |
587 | %attr(755,root,root) %{_libdir}/rsyslog/omclickhouse.so | |
588 | %attr(755,root,root) %{_libdir}/rsyslog/omelasticsearch.so | |
589 | %attr(755,root,root) %{_libdir}/rsyslog/omhttp.so | |
590 | %attr(755,root,root) %{_libdir}/rsyslog/omhttpfs.so | |
591 | %endif | |
592 | ||
bd9b9208 | 593 | %if %{with gssapi} |
4fffed3f SP |
594 | %files gssapi |
595 | %defattr(644,root,root,755) | |
73b56bd9 | 596 | %attr(755,root,root) %{_libdir}/rsyslog/imgssapi.so |
c1934518 | 597 | %attr(755,root,root) %{_libdir}/rsyslog/lmgssutil.so |
73b56bd9 | 598 | %attr(755,root,root) %{_libdir}/rsyslog/omgssapi.so |
bd9b9208 | 599 | %endif |
5c2c427c | 600 | |
eb59d20f JB |
601 | %if %{with zeromq} |
602 | %files czmq | |
603 | %defattr(644,root,root,755) | |
604 | %attr(755,root,root) %{_libdir}/rsyslog/imczmq.so | |
605 | %attr(755,root,root) %{_libdir}/rsyslog/omczmq.so | |
606 | %endif | |
607 | ||
608 | %if %{with kafka} | |
609 | %files kafka | |
610 | %defattr(644,root,root,755) | |
611 | %attr(755,root,root) %{_libdir}/rsyslog/imkafka.so | |
612 | %attr(755,root,root) %{_libdir}/rsyslog/omkafka.so | |
613 | %endif | |
614 | ||
615 | %if %{with relp} | |
616 | %files relp | |
617 | %defattr(644,root,root,755) | |
618 | %attr(755,root,root) %{_libdir}/rsyslog/imrelp.so | |
619 | %attr(755,root,root) %{_libdir}/rsyslog/omrelp.so | |
620 | %endif | |
621 | ||
622 | %if %{with rfc3195} | |
623 | %files rfc3195 | |
624 | %defattr(644,root,root,755) | |
625 | %attr(755,root,root) %{_libdir}/rsyslog/im3195.so | |
626 | %endif | |
627 | ||
acae48e6 JB |
628 | %files gnutls |
629 | %defattr(644,root,root,755) | |
630 | %attr(755,root,root) %{_libdir}/rsyslog/lmnsd_gtls.so | |
631 | ||
eb59d20f JB |
632 | %if %{with maxminddb} |
633 | %files mmdblookup | |
634 | %defattr(644,root,root,755) | |
635 | %attr(755,root,root) %{_libdir}/rsyslog/mmdblookup.so | |
636 | %endif | |
637 | ||
638 | %if %{with redis} | |
639 | %files hiredis | |
640 | %defattr(644,root,root,755) | |
641 | %attr(755,root,root) %{_libdir}/rsyslog/omhiredis.so | |
642 | %endif | |
643 | ||
5c2c427c AF |
644 | %if %{with dbi} |
645 | %files dbi | |
646 | %defattr(644,root,root,755) | |
647 | %attr(755,root,root) %{_libdir}/rsyslog/omlibdbi.so | |
648 | %endif | |
649 | ||
eb59d20f JB |
650 | %if %{with mongodb} |
651 | %files mongodb | |
652 | %defattr(644,root,root,755) | |
653 | %attr(755,root,root) %{_libdir}/rsyslog/ommongodb.so | |
654 | %endif | |
655 | ||
acae48e6 JB |
656 | %if %{with mysql} |
657 | %files mysql | |
5c2c427c | 658 | %defattr(644,root,root,755) |
acae48e6 JB |
659 | %doc plugins/ommysql/createDB.sql |
660 | %attr(755,root,root) %{_libdir}/rsyslog/ommysql.so | |
661 | %endif | |
662 | ||
663 | %if %{with pgsql} | |
664 | %files pgsql | |
665 | %defattr(644,root,root,755) | |
666 | %doc plugins/ompgsql/createDB.sql | |
667 | %attr(755,root,root) %{_libdir}/rsyslog/ompgsql.so | |
668 | %endif | |
5c2c427c | 669 | |
eb59d20f JB |
670 | %if %{with rabbitmq} |
671 | %files rabbitmq | |
672 | %defattr(644,root,root,755) | |
673 | %attr(755,root,root) %{_libdir}/rsyslog/omrabbitmq.so | |
674 | %endif | |
675 | ||
5c2c427c AF |
676 | %if %{with snmp} |
677 | %files snmp | |
678 | %defattr(644,root,root,755) | |
679 | %attr(755,root,root) %{_libdir}/rsyslog/omsnmp.so | |
680 | %endif | |
681 | ||
acae48e6 | 682 | %files udpspoof |
5c2c427c | 683 | %defattr(644,root,root,755) |
acae48e6 | 684 | %attr(755,root,root) %{_libdir}/rsyslog/omudpspoof.so |