]> TLD Linux GIT Repositories - packages/syslog-ng.git/blob - syslog-ng.spec
- BR/R riemann-c-client 1.6.0
[packages/syslog-ng.git] / syslog-ng.spec
1 # TODO:
2 # - switch to LTS version??? where???
3 # - relies on libs in /usr which is wrong
4 #   (well, for modules bringing additional functionality it's acceptable IMO --q)
5 # - package python module
6 #
7 # Conditional build:
8 %bcond_with     dynamic                 # link dynamically with glib, eventlog, pcre (modules are always linked dynamically)
9 %bcond_without  sql                     # support for logging to SQL DB
10 %bcond_with     tests                   # do not perform "make check"
11 %bcond_without  http                    # support for HTTP destination
12 %bcond_without  json                    # support for JSON template formatting
13 %bcond_without  mongodb                 # support for mongodb destination
14 %bcond_without  redis                   # support for Redis destination
15 %bcond_without  smtp                    # support for logging into SMTP
16 %bcond_without  geoip2                  # support for GeoIP2
17 %bcond_without  riemann                 # support for Riemann monitoring system
18 %bcond_without  amqp                    # AMQP support
19 %bcond_with     python                  # python module
20 %bcond_with     java                    # java modules and support
21 %bcond_without  system_libivykis        # use system libivykis
22 %bcond_without  system_rabbitmq         # use system librabbitmq
23
24 %if %{without amqp}
25 %undefine with_system_rabbitmq
26 %endif
27
28 # as in git submodule
29 %define libivykis_version 0.42.4
30
31 %define         glib2_ver       1:2.32.0
32 %define         mver    4.8
33 Summary:        Syslog-ng - new generation of the system logger
34 Summary(pl.UTF-8):      Syslog-ng - systemowy demon logujący nowej generacji
35 Summary(pt_BR.UTF-8):   Daemon de log nova geração
36 Name:           syslog-ng
37 Version:        4.8.0
38 Release:        1
39 License:        GPL v2+ with OpenSSL exception
40 Group:          Daemons
41 Source0:        https://github.com/balabit/syslog-ng/archive/%{name}-%{version}.tar.gz
42 # Source0-md5:  11711fb6c942ef52e89f114054854f54
43 Source1:        %{name}.init
44 Source2:        %{name}.conf
45 Source3:        %{name}.logrotate
46 Source5:        %{name}-simple.conf
47 Source6:        https://github.com/buytenh/ivykis/archive/v%{libivykis_version}/ivykis-%{libivykis_version}.tar.gz
48 # Source6-md5:  e09caeb95a01a541ec40d3b757dada12
49 Patch0:         %{name}-datadir.patch
50 Patch1:         %{name}-nolibs.patch
51 Patch2:         man-paths.patch
52 Patch3:         %{name}-link.patch
53 Patch4:         no_shared_ivykis.patch
54 Patch5:         bison.patch
55 Patch6:         shebang.patch
56 Patch7:         32bit.patch
57 Patch8:         glib-static.patch
58 URL:            https://syslog-ng.org/
59 BuildRequires:  autoconf >= 2.59
60 BuildRequires:  automake
61 BuildRequires:  bison >= 3.7.6
62 %{?with_http:BuildRequires:     curl-devel}
63 BuildRequires:  docbook-style-xsl
64 %{?with_tests:BuildRequires:    findutils}
65 BuildRequires:  flex
66 BuildRequires:  glib2-devel >= %{glib2_ver}
67 %{?with_redis:BuildRequires:    hiredis-devel >= 0.11.0}
68 %{?with_java:BuildRequires:     jdk >= 1.8}
69 %{?with_json:BuildRequires:     json-c-devel >= 0.13}
70 %{?with_java:BuildRequires:     gradle >= 3.4}
71 %{?with_mongodb:BuildRequires:  libbson-devel}
72 BuildRequires:  libcap-devel
73 %{?with_sql:BuildRequires:      libdbi-devel >= 0.9.0}
74 %{?with_smtp:BuildRequires:     libesmtp-devel}
75 %{?with_system_libivykis:BuildRequires: libivykis-devel >= %{libivykis_version}}
76 %{?with_mongodb:BuildRequires:  mongo-c-driver-devel}
77 %{?with_geoip2:BuildRequires:   libmaxminddb-devel}
78 BuildRequires:  libnet-devel >= 1:1.1.2.1-3
79 %{?with_java:BuildRequires:     librdkafka-devel >= 1.1.0}
80 BuildRequires:  libtool >= 2:2.0
81 BuildRequires:  libwrap-devel
82 BuildRequires:  libxslt-progs
83 BuildRequires:  lz4-devel >= r131-5
84 BuildRequires:  openssl-devel >= 0.9.8
85 BuildRequires:  pcre2-8-devel >= 10.0
86 BuildRequires:  pkgconfig
87 %{?with_system_rabbitmq:BuildRequires:  rabbitmq-c-devel >= 0.5.3}
88 %{?with_riemann:BuildRequires:  riemann-c-client-devel >= 1.6.0}
89 BuildRequires:  rpm >= 4.4.9-56
90 BuildRequires:  rpmbuild(macros) >= 1.623
91 BuildRequires:  which
92 %if %{with tests}
93 BuildRequires:  GeoIP-db-Country
94 BuildRequires:  pylint
95 BuildRequires:  python
96 BuildRequires:  python-pep8
97 BuildRequires:  python-ply
98 BuildRequires:  tzdata
99 %endif
100 %if %{without dynamic}
101 BuildRequires:  glib2-static >= %{glib2_ver}
102 %{?with_system_libivykis:BuildRequires: libivykis-static >= %{libivykis_version}}
103 BuildRequires:  pcre-static >= 6.1
104 BuildRequires:  zlib-static
105 %endif
106 Requires(post): fileutils
107 Requires(post,preun):   /sbin/chkconfig
108 Requires:       %{name}-libs = %{version}-%{release}
109 Requires:       psmisc >= 20.1
110 %{?with_system_rabbitmq:Requires:       rabbitmq-c >= 0.0.1}
111 Requires:       rc-scripts >= 0.4.3.0
112 # for afsocket
113 Requires:       libnet >= 1:1.1.2.1-7
114 Requires:       openssl >= 0.9.8
115 Provides:       service(klogd)
116 Provides:       service(syslog)
117 Provides:       syslogdaemon
118 Obsoletes:      syslog-ng-module-afsocket
119 Obsoletes:      syslog-ng-module-dbparser
120 Obsoletes:      syslog-ng-module-tfgeoip
121 Obsoletes:      syslog-ng-systemd
122 Conflicts:      klogd
123 Conflicts:      msyslog
124 Conflicts:      rsyslog
125 Conflicts:      syslog
126 Conflicts:      cronie < 1.5.0-3
127 Conflicts:      fcron < 3.1.2-5
128 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
129
130 %define xsl_stylesheets_dir /usr/share/sgml/docbook/xsl-stylesheets
131
132 %if %{without dynamic}
133 # syslog-ng has really crazy linking rules (see their bugzilla).
134 # Some rules, according to syslog-ng devs, are like this:
135 # - libsyslog-ng.so has undefined symbols for third party libraries
136 #   and these symbols should go via main syslog-ng binary
137 # - same applies for modules
138 # In dynamic case tests are forcily linked with dynamic modules, which doesn't work with as-needed.
139 %define         filterout_ld                    -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
140 %define         no_install_post_check_so        1
141 %define         _sbindir                        /sbin
142 %define         slibdir                         /%{_lib}
143 %else
144 %define         slibdir                         %{_libdir}
145 %endif
146 # or just %{_libdir}? modules seem to be always linked dynamically
147 %define         moduledir                       %{slibdir}/syslog-ng
148
149 %description
150 syslog-ng is a syslogd replacement for Unix and Unix-like systems. It
151 has been tested on Solaris, BSDi and Linux, and were found to run
152 reliably. syslog-ng gives you a much enhanced configuration scheme,
153 which lets you filter messages based on not only priority/facility
154 pairs, but also on message content. You can use regexps to direct log
155 stream to different destinations. A destination can be anything from a
156 simple file to a network connection. syslog-ng supports TCP
157 logforwarding, together with hashing to prevent unauthorized
158 modification on the line.
159
160 %description -l pl.UTF-8
161 Syslog-ng jest zamiennikiem dla standardowo używanych programów typu
162 syslog. Działa w systemie SunOS, BSD, Linux. Daje znacznie większe
163 możliwości logowania i kontrolowania zbieranych informacji.
164
165 %description -l pt_BR.UTF-8
166 Syslog-ng é um substituto para o syslog tradicional, mas com diversas
167 melhorias, como, por exemplo, a habilidade de filtrar mensagens de log
168 por seu conteúdo (usando expressões regulares) e não apenas pelo par
169 facility/prioridade como o syslog original.
170
171 %package module-afmongodb
172 Summary:        MongoDB destination support module for syslog-ng
173 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów w bazie MongoDB
174 Group:          Libraries
175 Requires:       %{name} = %{version}-%{release}
176 Requires:       libmongo-client >= 0.1.8
177
178 %description module-afmongodb
179 MongoDB destination support module for syslog-ng.
180
181 %description module-afmongodb -l pl.UTF-8
182 Moduł sysloga-ng do obsługi zapisu logów w bazie MongoDB.
183
184 %package module-afsmtp
185 Summary:        SMTP output support module for syslog-ng
186 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi wysyłania logów do serwerów SMTP
187 Group:          Libraries
188 Requires:       %{name} = %{version}-%{release}
189 Requires:       openssl >= 0.9.8
190
191 %description module-afsmtp
192 SMTP output support module for syslog-ng.
193
194 %description module-afsmtp -l pl.UTF-8
195 Moduł sysloga-ng do obsługi wysyłania logów do serwerów SMTP.
196
197 %package module-afsql
198 Summary:        SQL destination support module for syslog-ng
199 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów w bazach SQL
200 Group:          Libraries
201 Requires:       %{name} = %{version}-%{release}
202 Requires:       libdbi >= 0.8.3-2
203 Requires:       openssl >= 0.9.8
204
205 %description module-afsql
206 SQL destination support module for syslog-ng (via libdbi).
207
208 %description module-afsql -l pl.UTF-8
209 Moduł sysloga-ng do obsługi zapisu logów w bazach SQL (poprzez
210 libdbi).
211
212 %package module-http
213 Summary:        HTTP destination support module for syslog-ng
214 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów poprzez HTTP
215 Group:          Libraries
216 Requires:       %{name} = %{version}-%{release}
217
218 %description module-http
219 HTTP destination support module for syslog-ng (via libcurl).
220
221 %description module-http -l pl.UTF-8
222 Moduł sysloga-ng do obsługi zapisu logów poprzez HTTP (via libcurl).
223
224 %package module-java
225 Summary:        Java destination support module for syslog-ng
226 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów przy pomocy Java
227 Group:          Libraries
228 Requires:       %{name} = %{version}-%{release}
229 Requires:       librdkafka >= 1.1.0
230 Requires:       %{name}-module-json-plugin = %{version}-%{release}
231
232 %description module-java
233 Java destination support module for syslog-ng
234
235 %description module-java -l pl.UTF-8
236 Moduł sysloga-ng do obsługi zapisu logów przy pomocy Java
237
238 %package module-json-plugin
239 Summary:        JSON formatting template function for syslog-ng
240 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi szablonów z formatowaniem JSON
241 Group:          Libraries
242 Requires:       %{name} = %{version}-%{release}
243 Requires:       json-c >= 0.9
244 Obsoletes:      syslog-ng-module-tfjson
245
246 %description module-json-plugin
247 JSON formatting template function for syslog-ng.
248
249 %description module-json-plugin -l pl.UTF-8
250 Moduł sysloga-ng do obsługi szablonów z formatowaniem JSON.
251
252 %package module-python
253 Summary:        Python destination support module for syslog-ng
254 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów przy pomocy pythona
255 Group:          Libraries
256 Requires:       %{name} = %{version}-%{release}
257 Requires:       python3
258
259 %description module-python
260 Python destination support module for syslog-ng
261
262 %description module-python -l pl.UTF-8
263 Moduł sysloga-ng do obsługi zapisu logów przy pomocy pythona
264
265 %package module-redis
266 Summary:        Redis destination support module for syslog-ng
267 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów w bazie Redis
268 Group:          Libraries
269 Requires:       %{name} = %{version}-%{release}
270
271 %description module-redis
272 Redis destination support module for syslog-ng (via libhiredis).
273
274 %description module-redis -l pl.UTF-8
275 Moduł sysloga-ng do obsługi zapisu logów w bazie Redis (poprzez
276 libhiredis).
277
278 %package module-riemann
279 Summary:        Riemann destination support module for syslog-ng
280 Summary(pl.UTF-8):      Moduł sysloga-ng do obsługi zapisu logów do systemu Riemann
281 Group:          Libraries
282 Requires:       %{name} = %{version}-%{release}
283 Requires:       riemann-c-client >= 1.6.0
284
285 %description module-riemann
286 Riemann destination support module for syslog-ng.
287
288 %description module-riemann -l pl.UTF-8
289 Moduł sysloga-ng do obsługi zapisu logów do systemu Riemann.
290
291 %package libs
292 Summary:        Shared library for syslog-ng
293 Summary(pl.UTF-8):      Biblioteka współdzielona sysloga-ng
294 Group:          Libraries
295 %if %{with dynamic}
296 Requires:       glib2 >= %{glib2_ver}
297 %{?with_system_libivykis:Requires:      libivykis >= 0.42}
298 Requires:       pcre >= 6.1
299 %endif
300 Conflicts:      syslog-ng < 3.3.1-3
301
302 %description libs
303 Shared library for syslog-ng.
304
305 %description libs -l pl.UTF-8
306 Biblioteka współdzielona sysloga-ng.
307
308 %package devel
309 Summary:        Header files for syslog-ng modules development
310 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia modułów dla sysloga-ng
311 Group:          Development/Libraries
312 Requires:       %{name}-libs = %{version}-%{release}
313 %if %{with dynamic}
314 Requires:       glib2-devel >= %{glib2_ver}
315 %{?with_system_libivykis:Requires:      libivykis-devel >= 0.42}
316 Requires:       pcre-devel >= 6.1
317 %endif
318
319 %description devel
320 Header files for syslog-ng modules development.
321
322 %description devel -l pl.UTF-8
323 Pliki nagłówkowe do tworzenia modułów dla sysloga-ng.
324
325 %prep
326 %setup -q -n %{name}-%{name}-%{version} -a 6
327
328 rmdir lib/ivykis
329 mv ivykis-%{libivykis_version} lib/ivykis
330
331 %patch0 -p1
332 %patch1 -p1
333 %patch2 -p1
334 %patch3 -p1
335 %patch4 -p1
336 %patch5 -p1
337 %patch6 -p1
338 %patch7 -p1
339 %patch8 -p1
340 cp -p %{SOURCE5} contrib/syslog-ng.conf.simple
341
342 %{__sed} -i -e 's|/usr/bin/awk|/bin/awk|' scl/syslogconf/convert-syslogconf.awk
343
344 %build
345 %{__libtoolize}
346 %{__aclocal} -I m4
347 %{__autoconf}
348 %{__autoheader}
349 %{__automake}
350 %configure \
351         --sysconfdir=%{_sysconfdir}/syslog-ng \
352         --disable-silent-rules \
353         --with-docbook=%{xsl_stylesheets_dir}/manpages/docbook.xsl \
354         --enable-java%{!?with_java:=no} \
355         --enable-java-modules%{!?with_java:=no} \
356         --enable-python%{!?with_python:=no} \
357 %if %{with mongodb}
358         --enable-mongodb \
359         --with-mongoc=system \
360 %else
361         --disable-mongodb \
362 %endif
363 %if %{with system_libivykis}
364         --with-ivykis=system \
365 %else
366         --with-ivykis=internal \
367 %endif
368         %{?with_system_rabbitmq:--with-librabbitmq-client=system} \
369         --with-module-dir=%{moduledir} \
370         --with-pidfile-dir=/var/run \
371         --with-timezone-dir=%{_datadir}/zoneinfo \
372         --with-python-packages=none \
373         %{__enable_disable amqp} \
374         --disable-cloud-auth \
375         %{__enable_disable geoip2} \
376         --enable-http%{!?with_http:=no} \
377         --enable-ipv6 \
378         --enable-json%{!?with_json:=no} \
379         %{__enable_disable java kafka} \
380         --enable-linux-caps \
381         --enable-manpages \
382         --enable-pacct \
383         --enable-pcre \
384         --enable-redis%{!?with_redis:=no} \
385         --enable-riemann%{!?with_riemann:=no} \
386         --enable-smtp%{!?with_smtp:=no} \
387         --enable-spoof-source \
388         --enable-ssl \
389         --disable-systemd \
390         --enable-tcp-wrapper \
391 %if %{with sql}
392         --enable-sql \
393 %endif
394 %if %{with dynamic}
395         --enable-dynamic-linking
396 %else
397         --enable-mixed-linking
398 %endif
399
400 %{__make}
401
402 %if %{with tests}
403 LD_LIBRARY_PATH=$(find $PWD -name '*.so*' -printf "%h:")
404 PYTHONPATH=$(pwd)/tests/functional
405 export LD_LIBRARY_PATH PYTHONPATH
406 %{__make} check
407 %endif
408
409 %install
410 rm -rf $RPM_BUILD_ROOT
411 install -d $RPM_BUILD_ROOT/etc/{sysconfig,logrotate.d,rc.d/init.d} \
412         $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/patterndb.d \
413         $RPM_BUILD_ROOT/var/{log,lib/%{name}/xsd}
414
415 %{__make} -j1 install \
416         pkgconfigdir=%{_pkgconfigdir} \
417         DESTDIR=$RPM_BUILD_ROOT
418
419 %if "%{slibdir}" != "%{_libdir}"
420 install -d $RPM_BUILD_ROOT%{slibdir}
421 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libsyslog-ng-%{mver}.so.* $RPM_BUILD_ROOT%{slibdir}
422 ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libsyslog-ng-%{mver}.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libsyslog-ng.so
423
424 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libevtlog-%{mver}.so.* $RPM_BUILD_ROOT%{slibdir}
425 ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libevtlog-%{mver}.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libevtlog.so
426
427 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libsecret-storage.so.* $RPM_BUILD_ROOT%{slibdir}
428 ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libsecret-storage.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libsecret-storage.so
429
430 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libloggen_helper-%{mver}.so.* $RPM_BUILD_ROOT%{slibdir}
431 ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libloggen_helper-%{mver}.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libloggen_helper.so
432
433 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libloggen_plugin-%{mver}.so.* $RPM_BUILD_ROOT%{slibdir}
434 ln -snf %{slibdir}/$(basename $RPM_BUILD_ROOT%{slibdir}/libloggen_plugin-%{mver}.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libloggen_plugin.so
435 %endif
436
437 %{__sed} -e 's|@@SBINDIR@@|%{_sbindir}|g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog-ng
438 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/syslog-ng.conf
439 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/syslog-ng
440
441 for n in cron daemon debug kernel lpr maillog messages secure shorewall spooler syslog user xferlog; do
442         > $RPM_BUILD_ROOT/var/log/$n
443 done
444 touch $RPM_BUILD_ROOT/etc/sysconfig/%{name}
445 ln -s "%{name}" $RPM_BUILD_ROOT/etc/sysconfig/%{name}@default
446
447 %{__rm} $RPM_BUILD_ROOT%{_sbindir}/syslog-ng-debun
448 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/syslog-ng-debun.1
449 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
450 %{__rm} $RPM_BUILD_ROOT%{moduledir}/*.la
451 %{__rm} $RPM_BUILD_ROOT%{moduledir}/loggen/*.la
452
453 %if %{with python}
454 %{__rm} -rf $RPM_BUILD_ROOT%{_sysconfdir}/syslog-ng/python
455 %else
456 %{__rm} $RPM_BUILD_ROOT%{_bindir}/syslog-ng-update-virtualenv
457 %endif
458
459 %if !%{with java}
460 %{__rm} -rf $RPM_BUILD_ROOT%{_datadir}/syslog-ng/include/scl/{elasticsearch,hdfs,kafka}
461 %endif
462
463 %clean
464 rm -rf $RPM_BUILD_ROOT
465
466 %post
467 if [ "$1" = "1" ]; then
468         # disable /proc/kmsg from config on first install on vserver
469         {
470                 while read f ctx; do
471                         [ "$f" = "VxID:" -o "$f" = "s_context:" ] && break
472                 done </proc/self/status
473         } 2>/dev/null
474         if [ -z "$ctx" -o "$ctx" = "0" ]; then
475                 VSERVER=no
476         else
477                 VSERVER=yes
478         fi
479         if [ "$VSERVER" = "yes" ]; then
480                 %{__sed} -i -e '/\/proc\/kmsg/ s/^[^#]/#&/' %{_sysconfdir}/%{name}/%{name}.conf
481         fi
482 fi
483
484 /sbin/chkconfig --add syslog-ng
485 %service syslog-ng restart "syslog-ng daemon"
486
487 %preun
488 if [ "$1" = "0" ]; then
489         %service syslog-ng stop
490         /sbin/chkconfig --del syslog-ng
491 fi
492
493 %triggerun -- syslog-ng < 3.0
494 sed -i -e 's#sync(\(.*\))#flush_lines(\1)#g' /etc/syslog-ng/syslog-ng.conf
495 sed -i -e 's#pipe ("/proc/kmsg"#file ("/proc/kmsg"#g' /etc/syslog-ng/syslog-ng.conf
496 sed -i -e 's#log_prefix#program_override#g' /etc/syslog-ng/syslog-ng.conf
497 sed -i -e 's#^destination #destination d_#g' /etc/syslog-ng/syslog-ng.conf
498 sed -i -e 's#destination(#destination(d_#g' /etc/syslog-ng/syslog-ng.conf
499 sed -i -e 's,\bstats\b,stats_freq,' /etc/syslog-ng/syslog-ng.conf
500 sed -i -e 's#match("IN\=\[A-Za-z0-9\]\* OUT=\[A-Za-z0-9\]\*");#match("IN=[A-Za-z0-9]* OUT=[A-Za-z0-9]*" value("MESSAGE"));#g' /etc/syslog-ng/syslog-ng.conf
501 sed -i -e "1 s#\(.*\)\$#@version: 3.0\n\1#g" /etc/syslog-ng/syslog-ng.conf
502 rm -f %{_var}/lib/%{name}/syslog-ng.persist
503 %service -q syslog-ng restart
504 exit 0
505
506 %post   libs -p /sbin/ldconfig
507 %postun libs -p /sbin/ldconfig
508
509 %files
510 %defattr(644,root,root,755)
511 %doc AUTHORS NEWS.md contrib/relogger.pl
512 %doc contrib/syslog-ng.conf.{doc,simple,RedHat}
513 %doc contrib/{apparmor,selinux,syslog2ng}
514 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
515 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}@default
516 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng
517 %attr(750,root,root) %dir %{_sysconfdir}/syslog-ng/patterndb.d
518 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog-ng/syslog-ng.conf
519 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/syslog-ng
520 %attr(754,root,root) /etc/rc.d/init.d/syslog-ng
521 %dir %{moduledir}
522 %attr(755,root,root) %{moduledir}/libadd-contextual-data.so
523 %if %{with amqp}
524 %attr(755,root,root) %{moduledir}/libafamqp.so
525 %endif
526 %attr(755,root,root) %{moduledir}/libaffile.so
527 %attr(755,root,root) %{moduledir}/libafprog.so
528 %attr(755,root,root) %{moduledir}/libafsnmp.so
529 %attr(755,root,root) %{moduledir}/libafsocket.so
530 %attr(755,root,root) %{moduledir}/libafstomp.so
531 %attr(755,root,root) %{moduledir}/libafuser.so
532 %attr(755,root,root) %{moduledir}/libappmodel.so
533 %attr(755,root,root) %{moduledir}/libazure-auth-header.so
534 %attr(755,root,root) %{moduledir}/libbasicfuncs.so
535 %attr(755,root,root) %{moduledir}/libcef.so
536 %attr(755,root,root) %{moduledir}/libconfgen.so
537 %attr(755,root,root) %{moduledir}/libcorrelation.so
538 %attr(755,root,root) %{moduledir}/libcryptofuncs.so
539 %attr(755,root,root) %{moduledir}/libcsvparser.so
540 %attr(755,root,root) %{moduledir}/libdisk-buffer.so
541 %attr(755,root,root) %{moduledir}/libexamples.so
542 %if %{with geoip2}
543 %attr(755,root,root) %{moduledir}/libgeoip2-plugin.so
544 %endif
545 %attr(755,root,root) %{moduledir}/libgraphite.so
546 %attr(755,root,root) %{moduledir}/libhook-commands.so
547 %attr(755,root,root) %{moduledir}/libkvformat.so
548 %attr(755,root,root) %{moduledir}/liblinux-kmsg-format.so
549 %attr(755,root,root) %{moduledir}/libmetrics-probe.so
550 %dir %{moduledir}/loggen
551 %attr(755,root,root) %{moduledir}/loggen/libloggen_socket_plugin.so
552 %attr(755,root,root) %{moduledir}/loggen/libloggen_ssl_plugin.so
553 %attr(755,root,root) %{moduledir}/libmap-value-pairs.so
554 %attr(755,root,root) %{moduledir}/libpacctformat.so
555 %attr(755,root,root) %{moduledir}/libpseudofile.so
556 %attr(755,root,root) %{moduledir}/librate-limit-filter.so
557 %attr(755,root,root) %{moduledir}/libregexp-parser.so
558 %attr(755,root,root) %{moduledir}/libsecure-logging.so
559 %attr(755,root,root) %{moduledir}/libstardate.so
560 %attr(755,root,root) %{moduledir}/libtags-parser.so
561 %attr(755,root,root) %{moduledir}/libtfgetent.so
562 %attr(755,root,root) %{moduledir}/libtimestamp.so
563 %attr(755,root,root) %{moduledir}/libxml.so
564 %attr(755,root,root) %{moduledir}/libsyslogformat.so
565 %attr(755,root,root) %{moduledir}/libsystem-source.so
566 %attr(755,root,root) %{_sbindir}/syslog-ng
567 %attr(755,root,root) %{_sbindir}/syslog-ng-ctl
568 %attr(755,root,root) %{_bindir}/dqtool
569 %attr(755,root,root) %{_bindir}/loggen
570 %attr(755,root,root) %{_bindir}/pdbtool
571 %attr(755,root,root) %{_bindir}/persist-tool
572 %attr(755,root,root) %{_bindir}/slogencrypt
573 %attr(755,root,root) %{_bindir}/slogkey
574 %attr(755,root,root) %{_bindir}/slogverify
575 %attr(755,root,root) %{_bindir}/update-patterndb
576 %if %{with python}
577 %attr(755,root,root) %{_bindir}/syslog-ng-update-virtualenv
578 %endif
579
580 %dir %{_datadir}/syslog-ng/include
581 %dir %{_datadir}/syslog-ng/include/scl
582 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_datadir}/syslog-ng/include/scl.conf
583 %{_datadir}/syslog-ng/include/scl/apache
584 %{_datadir}/syslog-ng/include/scl/arr
585 %{_datadir}/syslog-ng/include/scl/checkpoint
586 %{_datadir}/syslog-ng/include/scl/cisco
587 %{_datadir}/syslog-ng/include/scl/collectd
588 %{_datadir}/syslog-ng/include/scl/darwinosl
589 %{_datadir}/syslog-ng/include/scl/default-network-drivers
590 %{_datadir}/syslog-ng/include/scl/fortigate
591 %{_datadir}/syslog-ng/include/scl/graphite
592 %{_datadir}/syslog-ng/include/scl/iptables
593 %{_datadir}/syslog-ng/include/scl/jellyfin
594 %{_datadir}/syslog-ng/include/scl/junos
595 %{_datadir}/syslog-ng/include/scl/linux-audit
596
597 %dir %{_datadir}/syslog-ng/include/scl/loadbalancer
598 %attr(755,root,root) %{_datadir}/syslog-ng/include/scl/loadbalancer/gen-loadbalancer.sh
599 %{_datadir}/syslog-ng/include/scl/loadbalancer/plugin.conf
600
601 %{_datadir}/syslog-ng/include/scl/mariadb
602 %{_datadir}/syslog-ng/include/scl/mbox
603 %{_datadir}/syslog-ng/include/scl/nodejs
604 %{_datadir}/syslog-ng/include/scl/osquery
605 %{_datadir}/syslog-ng/include/scl/pacct
606 %{_datadir}/syslog-ng/include/scl/paloalto
607 %{_datadir}/syslog-ng/include/scl/pgsql
608 %{_datadir}/syslog-ng/include/scl/pihole
609 %{_datadir}/syslog-ng/include/scl/python
610 %{_datadir}/syslog-ng/include/scl/qbittorrent
611 %{_datadir}/syslog-ng/include/scl/rewrite
612 %{_datadir}/syslog-ng/include/scl/snmptrap
613 %{_datadir}/syslog-ng/include/scl/solaris
614 %{_datadir}/syslog-ng/include/scl/sudo
615 %{_datadir}/syslog-ng/include/scl/websense
616 %{_datadir}/syslog-ng/include/scl/windowseventlog
617 %dir %{_datadir}/syslog-ng/include/scl/syslogconf
618 %{_datadir}/syslog-ng/include/scl/syslogconf/README
619 %attr(755,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk
620 %{_datadir}/syslog-ng/include/scl/syslogconf/plugin.conf
621 %{_datadir}/syslog-ng/include/scl/system
622 %{_datadir}/syslog-ng/smart-multi-line.fsm
623 %{_datadir}/syslog-ng/xsd
624
625 %dir %{_var}/lib/%{name}
626 %dir %{_var}/lib/%{name}/xsd
627 %{_mandir}/man1/dqtool.1*
628 %{_mandir}/man1/loggen.1*
629 %{_mandir}/man1/pdbtool.1*
630 %{_mandir}/man1/slogencrypt.1*
631 %{_mandir}/man1/slogkey.1*
632 %{_mandir}/man1/slogverify.1*
633 %{_mandir}/man1/persist-tool.1*
634 %{_mandir}/man7/secure-logging.7*
635 %{_mandir}/man1/syslog-ng-ctl.1*
636 %{_mandir}/man5/syslog-ng.conf.5*
637 %{_mandir}/man8/syslog-ng.8*
638
639 %attr(640,root,logs) %ghost /var/log/cron
640 %attr(640,root,logs) %ghost /var/log/daemon
641 %attr(640,root,logs) %ghost /var/log/debug
642 %attr(640,root,logs) %ghost /var/log/kernel
643 %attr(640,root,logs) %ghost /var/log/lpr
644 %attr(640,root,logs) %ghost /var/log/maillog
645 %attr(640,root,logs) %ghost /var/log/messages
646 %attr(640,root,logs) %ghost /var/log/secure
647 %attr(640,root,logs) %ghost /var/log/shorewall
648 %attr(640,root,logs) %ghost /var/log/spooler
649 %attr(640,root,logs) %ghost /var/log/syslog
650 %attr(640,root,logs) %ghost /var/log/user
651 %attr(640,root,logs) %ghost /var/log/xferlog
652
653 %if %{with mongodb}
654 %files module-afmongodb
655 %defattr(644,root,root,755)
656 %attr(755,root,root) %{moduledir}/libafmongodb.so
657 %endif
658
659 %if %{with smtp}
660 %files module-afsmtp
661 %defattr(644,root,root,755)
662 %attr(755,root,root) %{moduledir}/libafsmtp.so
663 %endif
664
665 %if %{with sql}
666 %files module-afsql
667 %defattr(644,root,root,755)
668 %attr(755,root,root) %{moduledir}/libafsql.so
669 %endif
670
671 %if %{with http}
672 %files module-http
673 %defattr(644,root,root,755)
674 %attr(755,root,root) %{moduledir}/libhttp.so
675 %{_datadir}/syslog-ng/include/scl/telegram
676 %endif
677
678 %if %{with java}
679 %files module-java
680 %defattr(644,root,root,755)
681 %attr(755,root,root) %{moduledir}/libkafka.so
682 %attr(755,root,root) %{moduledir}/libmod-java.so
683 %{moduledir}/java-modules
684 %{_datadir}/syslog-ng/include/scl/elasticsearch
685 %{_datadir}/syslog-ng/include/scl/hdfs
686 %{_datadir}/syslog-ng/include/scl/kafka
687 %endif
688
689 %if %{with json}
690 %files module-json-plugin
691 %defattr(644,root,root,755)
692 %attr(755,root,root) %{moduledir}/libjson-plugin.so
693 %{_datadir}/syslog-ng/include/scl/cee
694 %{_datadir}/syslog-ng/include/scl/cim
695 %{_datadir}/syslog-ng/include/scl/discord
696 %{_datadir}/syslog-ng/include/scl/ewmm
697 %{_datadir}/syslog-ng/include/scl/google
698 %{_datadir}/syslog-ng/include/scl/graylog2
699 %{_datadir}/syslog-ng/include/scl/loggly
700 %{_datadir}/syslog-ng/include/scl/logmatic
701 %{_datadir}/syslog-ng/include/scl/logscale
702 %{_datadir}/syslog-ng/include/scl/netskope
703 %{_datadir}/syslog-ng/include/scl/openobserve
704 %{_datadir}/syslog-ng/include/scl/opensearch
705 %{_datadir}/syslog-ng/include/scl/slack
706 %{_datadir}/syslog-ng/include/scl/splunk
707 %{_datadir}/syslog-ng/include/scl/sumologic
708 %endif
709
710 %if %{with python}
711 %files module-python
712 %defattr(644,root,root,755)
713 %attr(755,root,root) %{moduledir}/libmod-python.so
714 %{moduledir}/python
715 %endif
716
717 %if %{with redis}
718 %files module-redis
719 %defattr(644,root,root,755)
720 %attr(755,root,root) %{moduledir}/libredis.so
721 %endif
722
723 %if %{with riemann}
724 %files module-riemann
725 %defattr(644,root,root,755)
726 %attr(755,root,root) %{moduledir}/libriemann.so
727 %endif
728
729 %files libs
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{slibdir}/libevtlog-%{mver}.so.*.*.*
732 %attr(755,root,root) %{slibdir}/libevtlog-%{mver}.so.0
733 %attr(755,root,root) %{slibdir}/libloggen_helper-%{mver}.so.*.*.*
734 %attr(755,root,root) %{slibdir}/libloggen_helper-%{mver}.so.0
735 %attr(755,root,root) %{slibdir}/libloggen_plugin-%{mver}.so.*.*.*
736 %attr(755,root,root) %{slibdir}/libloggen_plugin-%{mver}.so.0
737 %attr(755,root,root) %{slibdir}/libsecret-storage.so.*.*.*
738 %attr(755,root,root) %{slibdir}/libsecret-storage.so.0
739 %attr(755,root,root) %{slibdir}/libsyslog-ng-%{mver}.so.*.*.*
740 %attr(755,root,root) %ghost %{slibdir}/libsyslog-ng-%{mver}.so.0
741 %dir %{_datadir}/syslog-ng
742
743 %files devel
744 %defattr(644,root,root,755)
745 %attr(755,root,root) %{_libdir}/libevtlog.so
746 %attr(755,root,root) %{_libdir}/libloggen_helper.so
747 %attr(755,root,root) %{_libdir}/libloggen_plugin.so
748 %attr(755,root,root) %{_libdir}/libsecret-storage.so
749 %attr(755,root,root) %{_libdir}/libsyslog-ng.so
750 %{_libdir}/libsyslog-ng-native-connector.a
751 %dir %{_includedir}/syslog-ng
752 %{_includedir}/syslog-ng/*.h
753 %{_includedir}/syslog-ng/ack-tracker
754 %{_includedir}/syslog-ng/compat
755 %{_includedir}/syslog-ng/control
756 %{_includedir}/syslog-ng/debugger
757 %{_includedir}/syslog-ng/filter
758 %{_includedir}/syslog-ng/filterx
759 %{_includedir}/syslog-ng/healthcheck
760 %if %{without system_libivykis}
761 %{_includedir}/syslog-ng/ivykis
762 %endif
763 %{_includedir}/syslog-ng/logmsg
764 %{_includedir}/syslog-ng/logproto
765 %{_includedir}/syslog-ng/logthrdest
766 %{_includedir}/syslog-ng/logthrsource
767 %{_includedir}/syslog-ng/metrics
768 %{_includedir}/syslog-ng/modules
769 %{_includedir}/syslog-ng/multi-line
770 %{_includedir}/syslog-ng/parser
771 %{_includedir}/syslog-ng/rewrite
772 %{_includedir}/syslog-ng/scanner
773 %{_includedir}/syslog-ng/signal-slot-connector
774 %{_includedir}/syslog-ng/stats
775 %{_includedir}/syslog-ng/str-repr
776 %{_includedir}/syslog-ng/template
777 %{_includedir}/syslog-ng/timeutils
778 %{_includedir}/syslog-ng/transport
779 %{_includedir}/syslog-ng/value-pairs
780 %{_datadir}/syslog-ng/tools
781 %{_pkgconfigdir}/syslog-ng.pc
782 %{_pkgconfigdir}/syslog-ng-native-connector.pc