File syslog-ng.spec of Package syslog-ng
#
# spec file for package syslog-ng
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: syslog-ng
Version: 4.8.1
Release: 1
Summary: The new-generation syslog-daemon
License: GPL-2.0
Group: System/Daemons
Url: https://syslog-ng.org/
Source0: https://github.com/balabit/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.sysconfig
Source2: %{name}.conf.default
Source3: %{name}.service
Source4: %{name}-service-prepare
%global py_ver %(rpm -qf %{_bindir}/python3 --qf "%%{version}" | awk -F. '{print $1"."$2}')
%bcond_without redis
%bcond_without curl
%bcond_without smtp
%bcond_without python
%bcond_without mqtt
%bcond_without bpf
# missing dependencies on SLES 15
%if 0%{?sle_version} == 150000 && !0%{?is_opensuse}
%bcond_with dbi
%bcond_with java
%bcond_with geoip
%else
%bcond_without dbi
%bcond_without java
%bcond_without geoip
%endif
%bcond_with riemann
%if 0%{?suse_version} > 1600
%bcond_with testing
%else
%bcond_with testing
%endif
# no kafka in SLES 12 or backports
%if 0%{?is_opensuse} && !0%{?is_backports}
%bcond_without ckafka
%else
%bcond_with ckafka
%endif
# mongodb & amqp bundled with syslog-ng sources
# are not openssl 1.1 compatible, RabbitMQ already removed
%bcond_with mongodb
%bcond_with amqp
%if %{defined _rundir}
%define syslog_ng_rundir %{_rundir}/syslog-ng
%else
%define syslog_ng_rundir %{_localstatedir}/run/syslog-ng
%endif
%define syslog_ng_sockets_cfg %{syslog_ng_rundir}/additional-log-sockets.conf
Provides: syslog
Provides: sysvinit(syslog)
Conflicts: otherproviders(syslog)
Requires(pre): %fillup_prereq
Requires(pre): syslog-service >= 2.0
BuildRequires: systemd-devel
%if %{with smtp}
BuildRequires: libesmtp-devel
%endif
%if %{with testing}
BuildRequires: criterion
BuildRequires: libcriterion-devel
%endif
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: glib2-devel
# OpenTelemetry and Loki dependencies only in TW
%if 0%{?suse_version} > 1500
%bcond_without grpc
%else
%bcond_with grpc
%endif
# CloudAuth needs 15+
%if 0%{?suse_version} >= 1500
%bcond_without cloudauth
%else
%bcond_with cloudauth
%endif
%if %{with grpc}
BuildRequires: grpc-devel
BuildRequires: protobuf-devel
%endif
%if %{with curl}
BuildRequires: libcurl-devel
%endif
%if %{with geoip}
BuildRequires: libmaxminddb-devel
%endif
%if %{with redis}
BuildRequires: hiredis-devel
%endif
%if %{with riemann}
BuildRequires: riemann-c-client-devel
%endif
BuildRequires: libjson-devel
BuildRequires: libopenssl-devel
BuildRequires: pcre2-devel
BuildRequires: pkgconfig
%if %{with python}
BuildRequires: python3
BuildRequires: python3-pip
BuildRequires: python3-cachetools
BuildRequires: python3-certifi
BuildRequires: python3-charset-normalizer
BuildRequires: python3-google-auth
BuildRequires: python3-idna
BuildRequires: python3-kubernetes
BuildRequires: python3-oauthlib
BuildRequires: python3-pyasn1
BuildRequires: python3-pyasn1-modules
BuildRequires: python3-python-dateutil
BuildRequires: python3-PyYAML
BuildRequires: python3-requests
BuildRequires: python3-requests-oauthlib
BuildRequires: python3-rsa
BuildRequires: python3-six
BuildRequires: python3-urllib3
BuildRequires: python3-websocket-client
BuildRequires: python3-boto3
BuildRequires: python3-botocore
%endif
BuildRequires: tcpd-devel
%if %{with dbi}
BuildRequires: libdbi-devel
%endif
%if %{with java}
# Use tha latest available instead of the fixed 1.8.0 jdk version
BuildRequires: java-devel >= 1.8.0
%endif
%if %{with python}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
BuildRequires: libcap-devel
BuildRequires: libnet-devel
%if %{with ckafka}
BuildRequires: librdkafka-devel
%endif
%if %{with mqtt}
BuildRequires: libpaho-mqtt-devel
%endif
BuildRequires: net-snmp-devel
%if %{with bpf}
BuildRequires: bpftool
BuildRequires: libbpf-devel
BuildRequires: clang13
%endif
#!BuildIgnore: rsyslog
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
syslog-ng is an enhanced log daemon, supporting a wide range of input and
output methods: syslog, unstructured text, message queues, databases (SQL
and NoSQL alike) and more.
Key features:
* receive and send RFC3164 and RFC5424 style syslog messages
* work with any kind of unstructured data
* receive and send JSON formatted messages
* classify and structure logs with builtin parsers (csv-parser(),
db-parser(), ...)
* normalize, crunch and process logs as they flow through the system
* hand on messages for further processing using message queues (like
AMQP), files or databases (like PostgreSQL or MongoDB).
%if %{with dbi}
%package sql
Summary: SQL support using DBI
Group: System/Daemons
Requires: %{name} = %{version}
%description sql
This package provides the libafsql module providing support for
logging into a SQL database using DBI.
%endif
%if %{with smtp}
%package smtp
Summary: SMTP output support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description smtp
This package provides the afsmtp module providing support for
logging into SMTP.
%endif
%if %{with ckafka}
%package kafka
Summary: Kafka output support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description kafka
This package provides the kafka module providing support for
logging into Apache Kafka.
%endif
%if %{with geoip}
%package geoip
Summary: GeoIP support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description geoip
This package provides GeoIP modules providing support for
logging geo-location information.
%endif
%if %{with redis}
%package redis
Summary: Redis destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description redis
This package provides the libredis module providing support for
logging to a redis destination.
%endif
%if %{with riemann}
%package riemann
Summary: Riemann destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description riemann
This package provides the libriemann module providing support for
logging to a riemann destination.
%endif
%if %{with python}
%package python
Summary: Python support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description python
This package provides python support for syslog-ng.
%package python-modules
Summary: Python modules for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
Requires: %{name}-python
Requires: python3-PyYAML
Requires: python3-cachetools
Requires: python3-certifi
Requires: python3-charset-normalizer
Requires: python3-google-auth
Requires: python3-idna
Requires: python3-kubernetes
Requires: python3-pip
Requires: python3-pyasn1
Requires: python3-pyasn1-modules
Requires: python3-python-dateutil
Requires: python3-requests
Requires: python3-rsa
Requires: python3-six
Requires: python3-websocket-client
Requires: python3-boto3
Requires: python3-botocore
%description python-modules
This package provides python modules for syslog-ng, for
Kubernetes log enrichment, Hypr support, etc.
%endif
%if %{with java}
%package java
Summary: Java destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description java
This package provides Java destination support for syslog-ng. No modules,
only Java binding is included.
%endif
%package devel
Summary: Development files for syslog-ng
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This package provides files necessary for syslog-ng development.
%if %{with curl}
%package curl
Summary: HTTP destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description curl
This package provides HTTP destination support for syslog-ng by means
of libcurl
%endif
%package snmp
Summary: SNMP support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description snmp
This package provides SNMP support for syslog-ng
%package grpc
Summary: Common files for grpc-based syslog-ng drivers
Group: System/Daemons
Requires: %{name} = %{version}
%description grpc
This package provides provides common files for grpc-based syslog-ng drivers
%package opentelemetry
Summary: OpenTelemetry support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
Requires: %{name}-grpc
%description opentelemetry
This package provides OpenTelemetry support for syslog-ng
%package loki
Summary: Loki destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
Requires: %{name}-grpc
%description loki
This package provides Loki destination support for syslog-ng
%package bigquery
Summary: Google BigQuery destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
Requires: %{name}-grpc
%description bigquery
This package provides Google BigQuery destination support for syslog-ng
%package cloudauth
Summary: Cloud Authentication support for syslog-ng: pubsub
Group: System/Daemons
Requires: %{name} = %{version}
%description cloudauth
This package provides Cloud Authentication support for syslog-ng,
currently used for Google PubSub
%if %{with mqtt}
%package mqtt
Summary: MQTT destination support for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description mqtt
This package provides MQTT destination support for syslog-ng
%endif
%if %{with bpf}
%package bpf
Summary: Faster UDP log collection for syslog-ng
Group: System/Daemons
Requires: %{name} = %{version}
%description bpf
This package provides faster UDP log collection for syslog-ng using bpf
%endif
%prep
%setup -q -n syslog-ng-%{version}
# fill out placeholders in the config,
# systemd service and prepare script.
for file in \
syslog-ng.conf.default \
syslog-ng.service \
syslog-ng-service-prepare \
; do
sed \
-e 's;@sbindir@;%{_sbindir};g' \
-e 's;RUN_DIR;%{syslog_ng_rundir};g' \
-e 's;ADDITIONAL_SOCKETS;%{syslog_ng_sockets_cfg};g' \
"%{_sourcedir}/${file}" > "${file}"
done
%ifarch s390 s390x
sed -i -e 's/tty10/console/g' syslog-ng.conf.default
%endif
# fix python
%{__sed} -i 's|^#!/usr/bin/env python|#!/usr/bin/python3|' lib/merge-grammar.py
touch -r lib/cfg-grammar.y lib/merge-grammar.py
%build
##
## build ####################################################
##
export CFLAGS="%{optflags}"
export AM_YFLAGS=-d
export BPFTOOL=/usr/sbin/bpftool
%configure \
--prefix=%{_prefix} \
--enable-ipv6 \
--enable-manpages \
--enable-tcp-wrapper \
--enable-spoof-source \
--sysconfdir=/etc/syslog-ng \
--localstatedir=%{_localstatedir}/lib/syslog-ng \
--with-pidfile-dir=%{_localstatedir}/run \
--with-module-dir="%{_libdir}/syslog-ng" \
--with-default-modules="affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat" \
--datadir="%{_datadir}" \
--without-compile-date \
--enable-ssl \
--enable-pacct \
%if %{with grpc}
--enable-cpp \
--enable-grpc \
%endif
--enable-afsnmp \
%if %{with mqtt}
--enable-mqtt \
%endif
--disable-native \
%if %{with ckafka}
--enable-kafka \
%endif
%if %{with smtp}
--with-libesmtp=/usr/lib \
%endif
--enable-systemd \
--with-systemd-journal=system \
%if %{with dbi}
--enable-sql \
%endif
--enable-json \
--enable-capabilities \
%if %{with amqp}
--enable-amqp \
%else
--disable-amqp \
%endif
%if %{with cloudauth}
--enable-cloud-auth \
%else
--disable-cloud-auth \
%endif
%if %{with geoip}
--enable-geoip \
%endif
%if %{with mongodb}
--enable-mongodb \
%else
--disable-mongodb \
--with-mongoc=no \
%endif
%if %{with redis}
--enable-redis \
%endif
%if %{with java}
--enable-java \
%else
--disable-java \
%endif
--disable-java-modules \
%if %{with python}
--enable-python \
--with-python=%{py_ver} \
--with-python-packages=none \
%else
--disable-python \
%endif
%if %{with bpf}
--enable-ebpf \
%endif
--enable-dynamic-linking
#
# - build syslog-ng
#
make V=1 %_smp_mflags
%if %{with testing}
%check
make check
%endif
%install
##
## install ##################################################
##
export RPM_BUILD_ROOT
for dir in /sbin \
%{_sysconfdir}/syslog-ng \
%{_localstatedir}/lib/syslog-ng \
%{_localstatedir}/run/syslog-ng \
%if 0%{?suse_version} >= 1500
%{_fillupdir} ;
%else
%{_localstatedir}/adm/fillup-templates ;
%endif
do
test -d ${RPM_BUILD_ROOT}${dir} || \
install -d -m755 ${RPM_BUILD_ROOT}${dir}
done
#
make DESTDIR=${RPM_BUILD_ROOT} install
#
install -d -m755 %{buildroot}%{_unitdir}/
install -c -m644 syslog-ng.service %{buildroot}%{_unitdir}/
install -c -m755 syslog-ng-service-prepare %{buildroot}%{_sbindir}/
# install configs
install -m644 syslog-ng.conf.default \
%{buildroot}/%{_sysconfdir}/syslog-ng/syslog-ng.conf
install -m644 %{_sourcedir}/syslog-ng.sysconfig \
%if 0%{?suse_version} >= 1500
%{buildroot}/%{_fillupdir}/sysconfig.syslog-ng
%else
%{buildroot}/%{_localstatedir}/adm/fillup-templates/sysconfig.syslog-ng
%endif
# create empty /etc/syslog-ng/conf.d/
install -d -m755 %{buildroot}%{_sysconfdir}/syslog-ng/conf.d/
%if 0%{?suse_version} < 1550
# create a compatibility link in /sbin
ln -sf %{_sbindir}/syslog-ng %{buildroot}/sbin/
%endif
# don't package update-patterndb now
rm %{buildroot}/usr/bin/update-patterndb
rm %{buildroot}%{_datadir}/syslog-ng/include/scl/elasticsearch/elastic-java.conf
rm %{buildroot}%{_datadir}/syslog-ng/include/scl/hdfs/plugin.conf
rm %{buildroot}%{_datadir}/syslog-ng/include/scl/kafka/kafka-java.conf
rm %{buildroot}%{_datadir}/syslog-ng/include/scl/kafka/kafka.conf
rmdir %{buildroot}%{_datadir}/syslog-ng/include/scl/kafka
# create ghosts
install -d -m755 %{buildroot}%{syslog_ng_rundir}
touch %{buildroot}%{syslog_ng_sockets_cfg}
chmod 644 %{buildroot}%{syslog_ng_sockets_cfg}
%pre
%{service_add_pre syslog-ng.service}
%post
##
## post install #############################################
##
/sbin/ldconfig
#
# remove obsolete variables
#
%{remove_and_set -n syslog SYSLOG_DAEMON SYSLOG_REQUIRES_NETWORK}
#
# add SYSLOG_NG_* variables if needed
#
%{fillup_only -ans syslog ng}
#
# create dirs, touch log default files
#
mkdir -p var/log
touch var/log/messages; chmod 640 var/log/messages
touch var/log/mail; chmod 640 var/log/mail
touch var/log/mail.info; chmod 640 var/log/mail.info
touch var/log/mail.warn; chmod 640 var/log/mail.warn
touch var/log/mail.err; chmod 640 var/log/mail.err
#
# touch the additional log files we are using
#
touch var/log/acpid; chmod 640 var/log/acpid
touch var/log/firewall; chmod 640 var/log/firewall
touch var/log/NetworkManager; chmod 640 var/log/NetworkManager
#
# generate empty additional-log-sockets.conf file
# see also syslog-ng.conf.default in pkg src dir.
#
additional_sockets="%{syslog_ng_sockets_cfg}"
install -d -m750 ${additional_sockets%/*}
cat >$additional_sockets <<EOF
source chroots { };
EOF
chmod 640 "${additional_sockets#/}"
#
# Enable the syslog-ng systemd service
#
# This macro enables based on a systemctl preset config file only
%{service_add_post syslog-ng.service}
# But we want to enable a syslog-daemon regardless of the preset;
# force the creation of a syslog.service alias link (bnc#790805).
# We do not check the obsolete SYSLOG_DAEMON variable as we want
# to switch when installing it and there is a provider conflict.
/usr/bin/systemctl -f enable syslog-ng.service >/dev/null 2>&1 || :
%preun
##
## pre uninstall ############################################
##
%{service_del_preun syslog.socket}
%{service_del_preun syslog-ng.service}
%postun
##
## post uninstall ###########################################
##
#
# update linker caches
#
/sbin/ldconfig
#
# cleanup init scripts
#
%{service_del_postun syslog-ng.service}
%files
##
## file list ################################################
##
%defattr(-,root,root)
%doc COPYING AUTHORS NEWS.md
%doc syslog-ng.conf.default
%if 0%{?suse_version} < 1550
/sbin/syslog-ng
%endif
%attr(755,root,root) %{_sbindir}/syslog-ng
%attr(755,root,root) %{_sbindir}/syslog-ng-ctl
%attr(755,root,root) %{_sbindir}/syslog-ng-debun
%attr(755,root,root) %{_sbindir}/syslog-ng-service-prepare
%attr(755,root,root) %{_bindir}/loggen
%attr(755,root,root) %{_bindir}/pdbtool
%attr(755,root,root) %{_bindir}/dqtool
%attr(755,root,root) %{_bindir}/persist-tool
%attr(755,root,root) %{_bindir}/slogencrypt
%attr(755,root,root) %{_bindir}/slogkey
%attr(755,root,root) %{_bindir}/slogverify
%attr(755,root,root) %{_bindir}/syslog-ng-update-virtualenv
%{_mandir}/man5/syslog-ng.conf.5*
%{_mandir}/man8/syslog-ng.8*
%{_mandir}/man1/pdbtool.1*
%{_mandir}/man1/loggen.1*
%{_mandir}/man1/syslog-ng-ctl.1*
%{_mandir}/man1/dqtool.1*
%{_mandir}/man1/syslog-ng-debun.1*
%{_mandir}/man1/persist-tool.1*
%{_mandir}/man1/slogencrypt.1*
%{_mandir}/man1/slogkey.1*
%{_mandir}/man1/slogverify.1*
%{_mandir}/man7/secure-logging.7*
%dir %{_libdir}/syslog-ng
%dir %{_libdir}/syslog-ng/loggen
%dir %{_datadir}/syslog-ng
%dir %{_datadir}/syslog-ng/include
%dir %{_datadir}/syslog-ng/include/scl
%dir %{_datadir}/syslog-ng/include/scl/graphite
%dir %{_datadir}/syslog-ng/include/scl/nodejs
%dir %{_datadir}/syslog-ng/include/scl/pacct
%dir %{_datadir}/syslog-ng/include/scl/rewrite
%dir %{_datadir}/syslog-ng/include/scl/syslogconf
%dir %{_datadir}/syslog-ng/include/scl/system
%dir %{_datadir}/syslog-ng/include/scl/cim
%dir %{_datadir}/syslog-ng/include/scl/solaris
%dir %{_datadir}/syslog-ng/include/scl/mbox/
%dir %{_datadir}/syslog-ng/include/scl/apache/
%dir %{_datadir}/syslog-ng/include/scl/loggly/
%dir %{_datadir}/syslog-ng/include/scl/logmatic/
%dir %{_datadir}/syslog-ng/include/scl/cisco/
%dir %{_datadir}/syslog-ng/include/scl/snmptrap/
%dir %{_datadir}/syslog-ng/include/scl/osquery/
%dir %{_datadir}/syslog-ng/include/scl/windowseventlog/
%dir %{_datadir}/syslog-ng/include/scl/loadbalancer/
%dir %{_datadir}/syslog-ng/include/scl/default-network-drivers/
%dir %{_datadir}/syslog-ng/include/scl/ewmm/
%dir %{_datadir}/syslog-ng/include/scl/iptables/
%dir %{_datadir}/syslog-ng/include/scl/sudo/
%dir %{_datadir}/syslog-ng/include/scl/graylog2/
%dir %{_datadir}/syslog-ng/include/scl/linux-audit/
%dir %{_datadir}/syslog-ng/include/scl/slack/
%dir %{_datadir}/syslog-ng/include/scl/websense/
%dir %{_datadir}/syslog-ng/include/scl/collectd/
%dir %{_datadir}/syslog-ng/include/scl/netskope/
%dir %{_datadir}/syslog-ng/include/scl/junos/
%dir %{_datadir}/syslog-ng/include/scl/checkpoint/
%dir %{_datadir}/syslog-ng/include/scl/sumologic/
%dir %{_datadir}/syslog-ng/include/scl/paloalto/
%dir %{_datadir}/syslog-ng/include/scl/fortigate/
%dir %{_datadir}/syslog-ng/include/scl/cee/
%dir %{_datadir}/syslog-ng/include/scl/mariadb/
%dir %{_datadir}/syslog-ng/include/scl/python/
%dir %{_datadir}/syslog-ng/include/scl/splunk/
%dir %{_datadir}/syslog-ng/include/scl/logscale/
%dir %{_datadir}/syslog-ng/include/scl/opensearch/
%dir %{_datadir}/syslog-ng/include/scl/google/
%dir %{_datadir}/syslog-ng/include/scl/openobserve/
%dir %{_datadir}/syslog-ng/include/scl/pgsql/
%dir %{_datadir}/syslog-ng/include/scl/pihole/
%dir %{_datadir}/syslog-ng/include/scl/qbittorrent/
%dir %{_datadir}/syslog-ng/include/scl/darwinosl/
%dir %{_datadir}/syslog-ng/include/scl/jellyfin/
%dir %{_datadir}/syslog-ng/include/scl/arr/
%dir %{_datadir}/syslog-ng/xsd
%dir %{_sysconfdir}/syslog-ng
%dir %{_sysconfdir}/syslog-ng/conf.d
%config(noreplace) %{_sysconfdir}/syslog-ng/syslog-ng.conf
%{_unitdir}/syslog-ng.service
%dir %{_localstatedir}/lib/syslog-ng
%attr(0755,root,root) %dir %ghost %{syslog_ng_rundir}
%attr(0644,root,root) %ghost %{syslog_ng_sockets_cfg}
%{_fillupdir}/sysconfig.syslog-ng
%{_libdir}/libsyslog-ng-*.so.*
%{_libdir}/libevtlog-*.so.*
%{_libdir}/libsecret-storage.so.*
%{_libdir}/libloggen_helper-*.so.*
%{_libdir}/libloggen_plugin-*.so.*
%attr(755,root,root) %{_libdir}/syslog-ng/libadd-contextual-data.so
%if %{with amqp}
%attr(755,root,root) %{_libdir}/syslog-ng/libafamqp.so
%endif
%attr(755,root,root) %{_libdir}/syslog-ng/libaffile.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafprog.so
%if %{with mongodb}
%attr(755,root,root) %{_libdir}/syslog-ng/libafmongodb.so
%endif
%attr(755,root,root) %{_libdir}/syslog-ng/libafsocket.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafstomp.so
%attr(755,root,root) %{_libdir}/syslog-ng/libafuser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libbasicfuncs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libconfgen.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcsvparser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcryptofuncs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcorrelation.so
%attr(755,root,root) %{_libdir}/syslog-ng/libexamples.so
%attr(755,root,root) %{_libdir}/syslog-ng/libgraphite.so
%attr(755,root,root) %{_libdir}/syslog-ng/libjson-plugin.so
%attr(755,root,root) %{_libdir}/syslog-ng/libkvformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/liblinux-kmsg-format.so
%attr(755,root,root) %{_libdir}/syslog-ng/libpseudofile.so
%attr(755,root,root) %{_libdir}/syslog-ng/libcef.so
%attr(755,root,root) %{_libdir}/syslog-ng/libtimestamp.so
%attr(755,root,root) %{_libdir}/syslog-ng/libdisk-buffer.so
%attr(755,root,root) %{_libdir}/syslog-ng/libtfgetent.so
%attr(755,root,root) %{_libdir}/syslog-ng/libtags-parser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libmap-value-pairs.so
%attr(755,root,root) %{_libdir}/syslog-ng/libxml.so
%attr(755,root,root) %{_libdir}/syslog-ng/libappmodel.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsdjournal.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsyslogformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/libstardate.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsystem-source.so
%attr(755,root,root) %{_libdir}/syslog-ng/libhook-commands.so
%attr(755,root,root) %{_libdir}/syslog-ng/libazure-auth-header.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsecure-logging.so
%attr(755,root,root) %{_libdir}/syslog-ng/libregexp-parser.so
%attr(755,root,root) %{_libdir}/syslog-ng/libpacctformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/librate-limit-filter.so
%attr(755,root,root) %{_libdir}/syslog-ng/libmetrics-probe.so
%attr(755,root,root) %{_libdir}/syslog-ng/loggen/libloggen_socket_plugin.so
%attr(755,root,root) %{_libdir}/syslog-ng/loggen/libloggen_ssl_plugin.so
%attr(644,root,root) %{_datadir}/syslog-ng/smart-multi-line.fsm
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graphite/README
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graphite/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/nodejs/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/pacct/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/rewrite/cc-mask.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/system/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/README
%attr(755,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/convert-syslogconf.awk
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/syslogconf/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cim/template.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/solaris/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/mbox/mbox.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/apache/apache.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loggly/loggly.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/logmatic/logmatic.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cisco/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/snmptrap/snmptrapd-source.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/osquery/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/windowseventlog/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/windowseventlog/windowseventlog.xml
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loadbalancer/gen-loadbalancer.sh
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/loadbalancer/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cim/adapter.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/default-network-drivers/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/ewmm/ewmm.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/iptables/iptables.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/sudo/sudo.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/graylog2/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/linux-audit/linux-audit.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/slack/slack.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/websense/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/collectd/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/netskope/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/junos/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/checkpoint/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/sumologic/sumologic.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/paloalto/panos.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/fortigate/fortigate.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/cee/adapter.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/mariadb/audit.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/python/python-modules.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/splunk/splunk.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/logscale/logscale.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/opensearch/opensearch.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/google/google-pubsub.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/openobserve/openobserve.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/pgsql/pgsql.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/pihole/pihole.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/qbittorrent/qbittorrent.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/darwinosl/darwinosl-metadata-db.csv
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/darwinosl/plugin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/jellyfin/jellyfin.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/arr/arr.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl.conf
%attr(644,root,root) %{_datadir}/syslog-ng/xsd/*
%files snmp
%attr(755,root,root) %{_libdir}/syslog-ng/libafsnmp.so
%if %{with ckafka}
%files kafka
%attr(644,root,root) %{_libdir}/syslog-ng/libkafka.so
%endif
%if %{with curl}
%files curl
%attr(755,root,root) %{_libdir}/syslog-ng/libhttp.so
%dir %{_datadir}/syslog-ng/include/scl/telegram/
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/telegram/telegram.conf
%dir %{_datadir}/syslog-ng/include/scl/elasticsearch/
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/elasticsearch/elastic-http.conf
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/elasticsearch/elastic-datastream.conf
%dir %{_datadir}/syslog-ng/include/scl/discord/
%attr(644,root,root) %{_datadir}/syslog-ng/include/scl/discord/discord.conf
%endif
%if %{with dbi}
%files sql
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libafsql.so
%endif
%if %{with grpc}
%files grpc
%attr(755,root,root) %{_libdir}/libgrpc-protos.*
%files opentelemetry
%attr(755,root,root) %{_libdir}/syslog-ng/libotel.so
%files loki
%attr(755,root,root) %{_libdir}/syslog-ng/libloki.so
%files bigquery
%attr(755,root,root) %{_libdir}/syslog-ng/libbigquery.so
%endif
%if %{with cloudauth}
%files cloudauth
%attr(755,root,root) %{_libdir}/syslog-ng/libcloud_auth.so
%endif
%files devel
%defattr(-,root,root)
%attr(644,root,root) %{_libdir}/libsyslog-ng.la
%attr(644,root,root) %{_libdir}/libevtlog.la
%attr(644,root,root) %{_libdir}/libsecret-storage.la
%attr(644,root,root) %{_libdir}/libloggen_helper.la
%attr(644,root,root) %{_libdir}/libloggen_plugin.la
%attr(644,root,root) %{_libdir}/syslog-ng/*.la
%attr(755,root,root) %{_libdir}/syslog-ng/loggen/libloggen_socket_plugin.la
%attr(755,root,root) %{_libdir}/syslog-ng/loggen/libloggen_ssl_plugin.la
%{_libdir}/libsyslog-ng.so
%{_libdir}/libevtlog.so
%{_libdir}/libsecret-storage.so
%{_libdir}/libloggen_helper.so
%{_libdir}/libloggen_plugin.so
%attr(644,root,root) %{_libdir}/pkgconfig/syslog-ng.pc
%dir %{_includedir}/syslog-ng
%attr(-,root,root) %{_includedir}/syslog-ng/*
%dir %{_datadir}/syslog-ng/tools
%attr(755,root,root) %{_datadir}/syslog-ng/tools/merge-grammar.py
%attr(644,root,root) %{_datadir}/syslog-ng/tools/cfg-grammar.y
%attr(644,root,root) %{_datadir}/syslog-ng/tools/lex-rules.am
%attr(755,root,root) %{_datadir}/syslog-ng/tools/system-expand.sh
%if %{with python}
%files python
%attr(755,root,root) %{_libdir}/syslog-ng/libmod-python.so
%defattr(-,root,root)
%{_libdir}/syslog-ng/python/syslogng-1.0-py%{py_ver}.egg-info
%dir %{_libdir}/syslog-ng/python
%dir %{_libdir}/syslog-ng/python/syslogng
%{_libdir}/syslog-ng/python/syslogng/*
%dir %{_sysconfdir}/syslog-ng/python/
%{_sysconfdir}/syslog-ng/python/README.md
%{_libdir}/syslog-ng/python/requirements.txt
%exclude %{_libdir}/syslog-ng/python/syslogng/modules/
%files python-modules
%dir %{_libdir}/syslog-ng/python/syslogng/modules/
%{_libdir}/syslog-ng/python/syslogng/modules/*
%endif
%if %{with java}
%files java
%attr(755,root,root) %{_libdir}/syslog-ng/libmod-java.so
%dir %{_libdir}/syslog-ng/java-modules
%attr(755,root,root) %{_libdir}/syslog-ng/java-modules/syslog-ng-core.jar
%endif
%if %{with smtp}
%files smtp
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libafsmtp.so
%endif
%if %{with geoip}
%files geoip
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%if 0%{?leap_version} >= 420200
%attr(755,root,root) %{_libdir}/syslog-ng/libgeoip2-plugin.so
%endif
%if 0%{?suse_version} > 1320
%attr(755,root,root) %{_libdir}/syslog-ng/libgeoip2-plugin.so
%endif
%endif
%if %{with redis}
%files redis
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libredis.so
%endif
%if %{with riemann}
%files riemann
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libriemann.so
%endif
%if %{with mqtt}
%files mqtt
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libmqtt.so
%endif
%if %{with bpf}
%files bpf
%defattr(-,root,root)
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libebpf.so
%endif
%changelog