%bcond_with systemd %global _exec_prefix %{nil} %global _libdir %{_exec_prefix}/%{_lib} %define rsyslog_statedir %{_sharedstatedir}/rsyslog %define rsyslog_pkidir %{_sysconfdir}/pki/rsyslog Summary: Enhanced system logging and kernel message trapping daemon Name: rsyslog Version: 8.2406.0 Release: 1%{?_dist_release}%{?with_systemd:.systemd} Group: system Vendor: Project Vine Distribution: Vine Linux License: GPLv3+ URL: https://www.rsyslog.com/ Source0: https://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz Source1: rsyslog.init Source2: rsyslog.conf Source3: rsyslog.sysconfig Source4: rsyslog.log Source5: rsyslog.service Source6: rsyslog.log.systemd BuildRequires: libestr-devel BuildRequires: libfastjson-devel BuildRequires: libuuid-devel BuildRequires: python3-rpm-macros BuildRequires: python3-docutils BuildRequires: pkgconfig(zlib) Requires: logrotate >= 3.5.2 Requires: bash >= 2.0 %if %{with systemd} BuildRequires: systemd-devel >= 204-8 %{?systemd_requires} %else Requires(post): /sbin/chkconfig coreutils Requires(preun): /sbin/chkconfig /sbin/service Requires(postun): /sbin/service %endif Provides: syslog Conflicts: sysklogd, syslog-ng BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL, syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part, and fine grain output format control. It is compatible with stock sysklogd and can be used as a drop-in replacement. Rsyslog is simple to set up, with advanced features suitable for enterprise-class, encryption-protected syslog relay chains. %package mysql Summary: MySQL support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: libmariadb-devel %description mysql The rsyslog-mysql package contains a dynamic shared object that will add MySQL database support to rsyslog. %package pgsql Summary: PostgresSQL support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: libpq-devel %description pgsql The rsyslog-pgsql package contains a dynamic shared object that will add PostgreSQL database support to rsyslog. %package elasticsearch Summary: ElasticSearch output module for rsyslog Group: system Requires: %name = %version-%release BuildRequires: curl-devel %description elasticsearch This module provides the capability for rsyslog to feed logs directly into Elasticsearch. %package gssapi Summary: GSSAPI authentication and encryption support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: krb5-devel %description gssapi The rsyslog-gssapi package contains the rsyslog plugins which support GSSAPI authentication and secure connections. GSSAPI is commonly used for Kerberos authentication. %package relp Summary: RELP protocol support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: librelp-devel >= 1.2.5 %description relp The rsyslog-relp package contains the rsyslog plugins that provide the ability to receive syslog messages via the reliable RELP protocol. %package gnutls Summary: TLS protocol support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: gnutls-devel %description gnutls The rsyslog-gnutls package contains the rsyslog plugins that provide the ability to receive syslog messages via upcoming syslog-transport-tls IETF standard protocol. %package snmp Summary: SNMP protocol support for rsyslog Group: system Requires: %name = %version-%release BuildRequires: net-snmp-devel %description snmp The rsyslog-snmp package contains the rsyslog plugin that provides the ability to send syslog messages as SNMPv1 and SNMPv2c traps. %debug_package %prep %setup -q #perl -pi -e 's|^extern char \*strdup.*$||' grammar/lexer.c autoreconf -vif %build export CFLAGS="$RPM_OPT_FLAGS -fpie -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\"" export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" export PYTHON=%{__python3} %configure \ --disable-static \ --disable-testbench \ --enable-mysql \ --enable-pgsql \ --enable-elasticsearch \ --enable-gssapi-krb5 \ --enable-imfile \ --enable-imptcp \ --enable-imttcp \ --enable-kmsg \ --enable-omprog \ --enable-relp \ --enable-gnutls \ --enable-mail \ --enable-snmp \ --enable-unlimited-select \ %if %{with systemd} --enable-imjournal \ --enable-omjournal \ %endif %{nil} make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d install -d -m 755 %{buildroot}%{_sysconfdir}/rsyslog.d install -d -m 700 %{buildroot}%{rsyslog_statedir} install -d -m 700 %{buildroot}%{rsyslog_pkidir} install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rsyslog.conf install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/rsyslog %if %{with systemd} install -Dpm644 %{SOURCE5} %{buildroot}%{_unitdir}/rsyslog.service install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/syslog %else install -d -m 755 %{buildroot}%{_initrddir} install -p -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/rsyslog install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/syslog %endif #get rid of *.la rm %{buildroot}/%{_libdir}/rsyslog/*.la %clean rm -rf %{buildroot} %post for n in /var/log/{messages,secure,maillog,spooler} do [ -f $n ] && continue umask 066 && touch $n done %if %{with systemd} %systemd_post rsyslog.service %else /sbin/chkconfig --add rsyslog %endif %preun %if %{with systemd} %systemd_preun rsyslog.service %else if [ $1 = 0 -o -x /usr/bin/systemctl ]; then service rsyslog stop >/dev/null 2>&1 ||: /sbin/chkconfig --del rsyslog fi %endif %postun %if %{with systemd} %systemd_postun_with_restart rsyslog.service %else if [ "$1" -ge "1" ]; then service rsyslog condrestart > /dev/null 2>&1 ||: fi %endif %files %defattr(-,root,root,-) %license COPYING %doc AUTHORS NEWS README ChangeLog %dir %{_libdir}/rsyslog %{_libdir}/rsyslog/fmhash.so %{_libdir}/rsyslog/fmhttp.so %{_libdir}/rsyslog/imfile.so %{_libdir}/rsyslog/imklog.so %{_libdir}/rsyslog/imkmsg.so %{_libdir}/rsyslog/immark.so %{_libdir}/rsyslog/imptcp.so %{_libdir}/rsyslog/imtcp.so %{_libdir}/rsyslog/imudp.so %{_libdir}/rsyslog/imuxsock.so %{_libdir}/rsyslog/lmcry_gcry.so %{_libdir}/rsyslog/lmnet.so %{_libdir}/rsyslog/lmnetstrms.so %{_libdir}/rsyslog/lmnsd_ptcp.so %{_libdir}/rsyslog/lmregexp.so %{_libdir}/rsyslog/lmtcpclt.so %{_libdir}/rsyslog/lmtcpsrv.so %{_libdir}/rsyslog/lmzlibw.so %{_libdir}/rsyslog/mmexternal.so %{_libdir}/rsyslog/omprog.so %{_libdir}/rsyslog/omtesting.so %{_libdir}/rsyslog/ommail.so %config(noreplace) %{_sysconfdir}/rsyslog.conf %config(noreplace) %{_sysconfdir}/sysconfig/rsyslog %config(noreplace) %{_sysconfdir}/logrotate.d/syslog %dir %{_sysconfdir}/rsyslog.d %dir %{rsyslog_statedir} %dir %{rsyslog_pkidir} %{_sbindir}/rsyslogd %{_mandir}/*/* %if %{with systemd} %{_libdir}/rsyslog/imjournal.so %{_libdir}/rsyslog/omjournal.so %{_unitdir}/rsyslog.service %else %{_initrddir}/rsyslog %endif %files mysql %defattr(-,root,root) %doc plugins/ommysql/createDB.sql %{_libdir}/rsyslog/ommysql.so %files pgsql %defattr(-,root,root) %doc plugins/ompgsql/createDB.sql %{_libdir}/rsyslog/ompgsql.so %files elasticsearch %defattr(-,root,root) %{_libdir}/rsyslog/omelasticsearch.so %files gssapi %defattr(-,root,root) %{_libdir}/rsyslog/lmgssutil.so %{_libdir}/rsyslog/imgssapi.so %{_libdir}/rsyslog/omgssapi.so %files relp %defattr(-,root,root) %{_libdir}/rsyslog/imrelp.so %{_libdir}/rsyslog/omrelp.so %files gnutls %defattr(-,root,root) %{_libdir}/rsyslog/lmnsd_gtls.so %files snmp %defattr(-,root,root) %{_libdir}/rsyslog/omsnmp.so %changelog * Wed Aug 14 2024 Tomohiro "Tomo-p" KATO 8.2406.0-1 - new upstream release. * Thu May 19 2022 Tomohiro "Tomo-p" KATO 8.2204.1-1 - new upstream release. * Sat Dec 25 2021 Tomohiro "Tomo-p" KATO 8.2110.0-2 - fixed a typo in logrotate script on systemd. * Fri Dec 24 2021 Tomohiro "Tomo-p" KATO 8.2110.0-1 - new upstream release. - fixed logrotate script on systemd. * Thu Mar 25 2021 Tomohiro "Tomo-p" KATO 8.2102.0-1 - new upstream release. * Wed Sep 16 2020 Tomohiro "Tomo-p" KATO 8.2008.0-2 - fixed systemd-unit. * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO 8.2008.0-1 - new upstream release. - dropped Patch0: merged into upstream. * Sun Apr 12 2020 Tomohiro "Tomo-p" KATO 8.2002.0-1 - new upstream release. - enabled elasticsearch support. - added systemd support (disabled as default). * Fri Oct 04 2019 Tomohiro "Tomo-p" KATO 8.1910.0-1 - new upstream release. * Sun May 26 2019 Tomohiro "Tomo-p" KATO 8.38.0-2 - enabled omprog module. * Wed Nov 07 2018 Tomohiro "Tomo-p" KATO 8.38.0-1 - new upstream release. * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO 8.32.0-1 - new upstream release. - dropped Patch1: fixed in upstream. * Wed Dec 30 2015 Tomohiro "Tomo-p" KATO 8.15.0-1 - new upstream release. - built with gnutls-3.4.x. * Tue Jun 30 2015 Tomohiro "Tomo-p" KATO 7.6.7-2 - fixed an obsolete expression in rsyslog.conf. * Thu Jan 8 2015 Tomohiro "Tomo-p" KATO 7.6.7-1 - new upstream release. * Mon Jun 16 2014 Tomohiro "Tomo-p" KATO 7.6.3-1 - new upstream release. * Wed Mar 07 2012 Yoji TOYODA 5.6.5-2 - rebuild with net-snmp-5.7.1 * Sun Apr 03 2011 Daisuke SUZUKI 5.6.5-1 - new upstream release * Wed Dec 22 2010 IWAI, Masaharu 5.6.2-1 - build for Vine Linux: based Fedora 5.6.2-1.fc15 * Mon Dec 20 2010 Tomas Heinrich 5.6.2-1 - upgrade to new upstream stable version 5.6.2 - drop rsyslog-5.5.7-remove_include.patch; applied upstream - provide omsnmp module - use correct name for lock file (#659398) - enable specification of the pid file (#579411) - init script adjustments * Wed Oct 06 2010 Tomas Heinrich 5.5.7-1 - upgrade to upstream version 5.5.7 - update configuration and init files for the new major version - add several directories for storing auxiliary data - add ChangeLog to documentation - drop unlimited-select.patch; integrated upstream - add rsyslog-5.5.7-remove_include.patch to fix compilation * Tue Sep 07 2010 Tomas Heinrich 4.6.3-2 - build rsyslog with PIE and RELRO * Thu Jul 15 2010 Tomas Heinrich 4.6.3-1 - upgrade to new upstream stable version 4.6.3 * Wed Apr 07 2010 Tomas Heinrich 4.6.2-1 - upgrade to new upstream stable version 4.6.2 - correct the default value of the OMFileFlushOnTXEnd directive * Thu Feb 11 2010 Tomas Heinrich 4.4.2-6 - modify rsyslog-4.4.2-unlimited-select.patch so that running autoreconf is not needed - remove autoconf, automake, libtool from BuildRequires - change exec-prefix to nil * Wed Feb 10 2010 Tomas Heinrich 4.4.2-5 - remove '_smp_mflags' make argument as it seems to be producing corrupted builds * Mon Feb 08 2010 Tomas Heinrich 4.4.2-4 - redefine _libdir as it doesn't use _exec_prefix * Thu Dec 17 2009 Tomas Heinrich 4.4.2-3 - change exec-prefix to / * Wed Dec 09 2009 Robert Scheck 4.4.2-2 - run libtoolize to avoid errors due mismatching libtool version * Thu Dec 03 2009 Tomas Heinrich 4.4.2-1 - upgrade to new upstream stable version 4.4.2 - add support for arbitrary number of open file descriptors * Mon Sep 14 2009 Tomas Heinrich 4.4.1-2 - adjust init script according to guidelines (#522071) * Thu Sep 03 2009 Tomas Heinrich 4.4.1-1 - upgrade to new upstream stable version * Fri Aug 21 2009 Tomas Mraz - 4.2.0-3 - rebuilt with new openssl * Sun Jul 26 2009 Fedora Release Engineering - 4.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jul 14 2009 Tomas Heinrich 4.2.0-1 - upgrade * Mon Apr 13 2009 Tomas Heinrich 3.21.11-1 - upgrade * Tue Mar 31 2009 Lubomir Rintel 3.21.10-4 - Backport HUPisRestart option * Wed Mar 18 2009 Tomas Heinrich 3.21.10-3 - fix variables' type conversion in expression-based filters (#485937) * Wed Feb 25 2009 Fedora Release Engineering - 3.21.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 10 2009 Tomas Heinrich 3.21.10-1 - upgrade * Sat Jan 24 2009 Caolán McNamara 3.21.9-3 - rebuild for dependencies * Wed Jan 07 2009 Tomas Heinrich 3.21.9-2 - fix several legacy options handling - fix internal message output (#478612) * Mon Dec 15 2008 Peter Vrabec 3.21.9-1 - update is fixing $AllowedSender security issue * Mon Sep 15 2008 Peter Vrabec 3.21.3-4 - use RPM_OPT_FLAGS - use same pid file and logrotate file as syslog-ng (#441664) - mark config files as noreplace (#428155) * Mon Sep 01 2008 Tomas Heinrich 3.21.3-3 - fix a wrong module name in the rsyslog.conf manual page (#455086) - expand the rsyslog.conf manual page (#456030) * Thu Aug 28 2008 Tomas Heinrich 3.21.3-2 - fix clock rollback issue (#460230) * Wed Aug 20 2008 Peter Vrabec 3.21.3-1 - upgrade to bugfix release * Wed Jul 23 2008 Peter Vrabec 3.21.0-1 - upgrade * Mon Jul 14 2008 Peter Vrabec 3.19.9-2 - adjust default config file * Fri Jul 11 2008 Lubomir Rintel 3.19.9-1 - upgrade * Wed Jun 25 2008 Peter Vrabec 3.19.7-3 - rebuild because of new gnutls * Fri Jun 13 2008 Peter Vrabec 3.19.7-2 - do not translate Oopses (#450329) * Fri Jun 13 2008 Peter Vrabec 3.19.7-1 - upgrade * Wed May 28 2008 Peter Vrabec 3.19.4-1 - upgrade * Mon May 26 2008 Peter Vrabec 3.19.3-1 - upgrade to new upstream release * Wed May 14 2008 Tomas Heinrich 3.16.1-1 - upgrade * Tue Apr 08 2008 Peter Vrabec 3.14.1-5 - prevent undesired error description in legacy warning messages * Tue Apr 08 2008 Peter Vrabec 3.14.1-4 - adjust symbol lookup method to 2.6 kernel * Tue Apr 08 2008 Peter Vrabec 3.14.1-3 - fix segfault of expression based filters * Mon Apr 07 2008 Peter Vrabec 3.14.1-2 - init script fixes (#441170,#440968) * Fri Apr 04 2008 Peter Vrabec 3.14.1-1 - upgrade * Tue Mar 25 2008 Peter Vrabec 3.12.4-1 - upgrade * Wed Mar 19 2008 Peter Vrabec 3.12.3-1 - upgrade - fix some significant memory leaks * Tue Mar 11 2008 Peter Vrabec 3.12.1-2 - init script fixes (#436854) - fix config file parsing (#436722) * Thu Mar 06 2008 Peter Vrabec 3.12.1-1 - upgrade * Wed Mar 05 2008 Peter Vrabec 3.12.0-1 - upgrade * Mon Feb 25 2008 Peter Vrabec 3.11.5-1 - upgrade * Fri Feb 01 2008 Peter Vrabec 3.11.0-1 - upgrade to the latests development release - provide PostgresSQL support - provide GSSAPI support * Mon Jan 21 2008 Peter Vrabec 2.0.0-7 - change from requires sysklogd to conflicts sysklogd * Fri Jan 18 2008 Peter Vrabec 2.0.0-6 - change logrotate file - use rsyslog own pid file * Thu Jan 17 2008 Peter Vrabec 2.0.0-5 - fixing bad descriptor (#428775) * Wed Jan 16 2008 Peter Vrabec 2.0.0-4 - rename logrotate file * Wed Jan 16 2008 Peter Vrabec 2.0.0-3 - fix post script and init file * Wed Jan 16 2008 Peter Vrabec 2.0.0-2 - change pid filename and use logrotata script from sysklogd * Tue Jan 15 2008 Peter Vrabec 2.0.0-1 - upgrade to stable release - spec file clean up * Wed Jan 02 2008 Peter Vrabec 1.21.2-1 - new upstream release * Thu Dec 06 2007 Release Engineering - 1.19.11-2 - Rebuild for deps * Thu Nov 29 2007 Peter Vrabec 1.19.11-1 - new upstream release - add conflicts (#400671) * Mon Nov 19 2007 Peter Vrabec 1.19.10-1 - new upstream release * Wed Oct 03 2007 Peter Vrabec 1.19.6-3 - remove NUL character from recieved messages * Tue Sep 25 2007 Tomas Heinrich 1.19.6-2 - fix message suppression (303341) * Tue Sep 25 2007 Tomas Heinrich 1.19.6-1 - upstream bugfix release * Tue Aug 28 2007 Peter Vrabec 1.19.2-1 - upstream bugfix release - support for negative app selector, patch from theinric@redhat.com * Fri Aug 17 2007 Peter Vrabec 1.19.0-1 - new upstream release with MySQL support(as plugin) * Wed Aug 08 2007 Peter Vrabec 1.18.1-1 - upstream bugfix release * Mon Aug 06 2007 Peter Vrabec 1.18.0-1 - new upstream release * Thu Aug 02 2007 Peter Vrabec 1.17.6-1 - upstream bugfix release * Mon Jul 30 2007 Peter Vrabec 1.17.5-1 - upstream bugfix release - fix typo in provides * Wed Jul 25 2007 Jeremy Katz - 1.17.2-4 - rebuild for toolchain bug * Tue Jul 24 2007 Peter Vrabec 1.17.2-3 - take care of sysklogd configuration files in %%post * Tue Jul 24 2007 Peter Vrabec 1.17.2-2 - use EVR in provides/obsoletes sysklogd * Mon Jul 23 2007 Peter Vrabec 1.17.2-1 - upstream bug fix release * Fri Jul 20 2007 Peter Vrabec 1.17.1-1 - upstream bug fix release - include html docs (#248712) - make "-r" option compatible with sysklogd config (248982) * Tue Jul 17 2007 Peter Vrabec 1.17.0-1 - feature rich upstream release * Thu Jul 12 2007 Peter Vrabec 1.15.1-2 - use obsoletes and hadle old config files * Wed Jul 11 2007 Peter Vrabec 1.15.1-1 - new upstream bugfix release * Tue Jul 10 2007 Peter Vrabec 1.15.0-1 - new upstream release introduce capability to generate output file names based on templates * Tue Jul 03 2007 Peter Vrabec 1.14.2-1 - new upstream bugfix release * Mon Jul 02 2007 Peter Vrabec 1.14.1-1 - new upstream release with IPv6 support * Tue Jun 26 2007 Peter Vrabec 1.13.5-3 - add BuildRequires for zlib compression feature * Mon Jun 25 2007 Peter Vrabec 1.13.5-2 - some spec file adjustments. - fix syslog init script error codes (#245330) * Fri Jun 22 2007 Peter Vrabec 1.13.5-1 - new upstream release * Fri Jun 22 2007 Peter Vrabec 1.13.4-2 - some spec file adjustments. * Mon Jun 18 2007 Peter Vrabec 1.13.4-1 - upgrade to new upstream release * Wed Jun 13 2007 Peter Vrabec 1.13.2-2 - DB support off * Tue Jun 12 2007 Peter Vrabec 1.13.2-1 - new upstream release based on redhat patch * Fri Jun 08 2007 Peter Vrabec 1.13.1-2 - rsyslog package provides its own kernel log. daemon (rklogd) * Mon Jun 04 2007 Peter Vrabec 1.13.1-1 - Initial rpm build