rsyslog/rsyslog.spec

470 lines
14 KiB
RPMSpec
Raw Normal View History

%global _exec_prefix /
%global _libdir %{_exec_prefix}/%{_lib}
2007-07-18 09:09:41 +00:00
Summary: Enhanced system logging and kernel message trapping daemons
Name: rsyslog
Version: 4.4.2
2010-02-10 10:44:46 +00:00
Release: 5%{?dist}
2008-03-07 11:12:39 +00:00
License: GPLv3+
2007-07-18 09:09:41 +00:00
Group: System Environment/Daemons
URL: http://www.rsyslog.com/
2008-01-02 14:05:11 +00:00
Source0: http://download.rsyslog.com/rsyslog/%{name}-%{version}.tar.gz
2007-07-18 09:09:41 +00:00
Source1: rsyslog.init
2008-03-07 11:12:39 +00:00
Source2: rsyslog.conf
Source3: rsyslog.sysconfig
2008-05-26 16:48:07 +00:00
Source4: rsyslog.log
Patch0: rsyslog-4.4.2-unlimited-select.patch
2007-07-18 09:09:41 +00:00
BuildRequires: zlib-devel
BuildRequires: autoconf automake libtool
Requires: logrotate >= 3.5.2
2007-07-18 09:09:41 +00:00
Requires: bash >= 2.0
Requires(post): /sbin/chkconfig coreutils
Requires(preun): /sbin/chkconfig /sbin/service
2007-07-18 09:09:41 +00:00
Requires(postun): /sbin/service
Provides: syslog
2008-03-07 11:12:39 +00:00
Conflicts: sysklogd < 1.4.1-43
2007-07-18 09:09:41 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2008-03-07 11:12:39 +00:00
2007-08-22 15:36:20 +00:00
%package mysql
Summary: MySQL support for rsyslog
Group: System Environment/Daemons
Requires: %name = %version-%release
BuildRequires: mysql-devel >= 4.0
%package pgsql
Summary: PostgresSQL support for rsyslog
Group: System Environment/Daemons
Requires: %name = %version-%release
BuildRequires: postgresql-devel
2008-03-07 11:12:39 +00:00
%package gssapi
Summary: GSSAPI authentication and encryption support for rsyslog
Group: System Environment/Daemons
Requires: %name = %version-%release
BuildRequires: krb5-devel
%package relp
Summary: RELP protocol support for rsyslog
Group: System Environment/Daemons
Requires: %name = %version-%release
BuildRequires: librelp-devel
2008-05-26 16:48:07 +00:00
%package gnutls
Summary: TLS protocol support for rsyslog
Group: System Environment/Daemons
Requires: %name = %version-%release
BuildRequires: gnutls-devel
2007-07-18 09:09:41 +00:00
%description
Rsyslog is an enhanced multi-threaded syslogd supporting, among others, MySQL,
syslog/tcp, RFC 3195, permitted sender lists, filtering on any message part,
and fine grain output format control. It is quite compatible to stock sysklogd
and can be used as a drop-in replacement. Its advanced features make it
suitable for enterprise-class, encryption protected syslog relay chains while
at the same time being very easy to setup for the novice user.
2007-08-22 15:36:20 +00:00
%description mysql
The rsyslog-mysql package contains a dynamic shared object that will add
MySQL database support to rsyslog.
%description pgsql
The rsyslog-pgsql package contains a dynamic shared object that will add
PostgreSQL database support to rsyslog.
2008-03-07 11:12:39 +00:00
%description gssapi
The rsyslog-gssapi package contains the rsyslog plugins which support GSSAPI
authentication and secure connections. GSSAPI is commonly used for Kerberos
authentication.
%description relp
The rsyslog-relp package contains the rsyslog plugins that provide
the ability to receive syslog messages via the reliable RELP
protocol.
2008-05-26 16:48:07 +00:00
%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.
2007-07-18 09:09:41 +00:00
%prep
%setup -q
%patch0 -p1 -b .unlimited-select
libtoolize && aclocal && autoconf && automake
2007-07-18 09:09:41 +00:00
%build
export CFLAGS="$RPM_OPT_FLAGS -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\""
2009-12-17 15:43:08 +00:00
%configure --disable-static \
2009-09-03 12:23:12 +00:00
--disable-testbench \
2008-03-19 09:53:31 +00:00
--enable-mysql \
--enable-pgsql \
--enable-gssapi-krb5 \
--enable-imfile \
--enable-relp \
--enable-gnutls \
--enable-unlimited-select
2010-02-10 10:44:46 +00:00
make
2007-07-18 09:09:41 +00:00
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_initrddir}
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
2008-03-07 11:12:39 +00:00
2007-07-18 09:09:41 +00:00
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/rsyslog
2008-03-07 11:12:39 +00:00
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rsyslog.conf
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rsyslog
2008-05-26 16:48:07 +00:00
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/syslog
2007-07-18 09:09:41 +00:00
2007-08-22 15:36:20 +00:00
#get rid of *.la
rm $RPM_BUILD_ROOT/%{_libdir}/rsyslog/*.la
2007-07-18 09:09:41 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post
2008-03-07 11:12:39 +00:00
/sbin/chkconfig --add rsyslog
2007-07-18 09:09:41 +00:00
for n in /var/log/{messages,secure,maillog,spooler}
do
2007-07-23 14:49:14 +00:00
[ -f $n ] && continue
umask 066 && touch $n
2007-07-18 09:09:41 +00:00
done
%preun
if [ $1 = 0 ]; then
service rsyslog stop >/dev/null 2>&1 ||:
/sbin/chkconfig --del rsyslog
fi
%postun
if [ "$1" -ge "1" ]; then
service rsyslog condrestart > /dev/null 2>&1 ||:
fi
2008-03-07 11:12:39 +00:00
%triggerun -- rsyslog < 3.0.0
/bin/kill `cat /var/run/rklogd.pid 2> /dev/null` > /dev/null 2>&1 ||:
2007-07-18 09:09:41 +00:00
%files
%defattr(-,root,root,-)
2008-03-07 11:12:39 +00:00
%doc AUTHORS COPYING NEWS README doc/*html
%dir %{_libdir}/rsyslog
%{_libdir}/rsyslog/imklog.so
%{_libdir}/rsyslog/immark.so
%{_libdir}/rsyslog/imtcp.so
%{_libdir}/rsyslog/imudp.so
%{_libdir}/rsyslog/imuxsock.so
2008-03-19 09:53:31 +00:00
%{_libdir}/rsyslog/imfile.so
2008-03-07 11:12:39 +00:00
%{_libdir}/rsyslog/omtesting.so
2008-03-19 09:53:31 +00:00
%{_libdir}/rsyslog/lmnet.so
%{_libdir}/rsyslog/lmregexp.so
%{_libdir}/rsyslog/lmtcpclt.so
%{_libdir}/rsyslog/lmtcpsrv.so
2008-05-26 16:48:07 +00:00
%{_libdir}/rsyslog/lmnetstrms.so
%{_libdir}/rsyslog/lmnsd_ptcp.so
2009-09-03 12:23:12 +00:00
%{_libdir}/rsyslog/lmstrmsrv.so
%config(noreplace) %{_sysconfdir}/rsyslog.conf
%config(noreplace) %{_sysconfdir}/sysconfig/rsyslog
2008-03-07 11:12:39 +00:00
%config(noreplace) %{_sysconfdir}/logrotate.d/syslog
2007-07-18 09:09:41 +00:00
%{_initrddir}/rsyslog
2009-12-17 15:43:08 +00:00
%{_sbindir}/rsyslogd
2007-07-18 09:09:41 +00:00
%{_mandir}/*/*
2007-08-22 15:36:20 +00:00
%files mysql
%defattr(-,root,root)
2007-11-19 12:38:58 +00:00
%doc plugins/ommysql/createDB.sql
2007-08-22 15:36:20 +00:00
%{_libdir}/rsyslog/ommysql.so
%files pgsql
%defattr(-,root,root)
%doc plugins/ompgsql/createDB.sql
%{_libdir}/rsyslog/ompgsql.so
2008-03-07 11:12:39 +00:00
%files gssapi
%defattr(-,root,root)
2008-03-19 09:53:31 +00:00
%{_libdir}/rsyslog/lmgssutil.so
2008-03-07 11:12:39 +00:00
%{_libdir}/rsyslog/imgssapi.so
%{_libdir}/rsyslog/omgssapi.so
%files relp
%defattr(-,root,root)
%{_libdir}/rsyslog/imrelp.so
%{_libdir}/rsyslog/omrelp.so
2008-05-26 16:48:07 +00:00
%files gnutls
%defattr(-,root,root)
%{_libdir}/rsyslog/lmnsd_gtls.so
2007-07-18 09:09:41 +00:00
%changelog
2010-02-10 10:44:46 +00:00
* Wed Feb 10 2010 Tomas Heinrich <theinric@redhat.com> 4.4.2-5
- remove '_smp_mflags' make argument as it seems to be
producing corrupted builds
* Mon Feb 08 2010 Tomas Heinrich <theinric@redhat.com> 4.4.2-4
- redefine _libdir as it doesn't use _exec_prefix
2009-12-17 15:43:08 +00:00
* Thu Dec 17 2009 Tomas Heinrich <theinric@redhat.com> 4.4.2-3
- change exec-prefix to /
* Wed Dec 09 2009 Robert Scheck <robert@fedoraproject.org> 4.4.2-2
- run libtoolize to avoid errors due mismatching libtool version
* Thu Dec 03 2009 Tomas Heinrich <theinric@redhat.com> 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 <theinric@redhat.com> 4.4.1-2
- adjust init script according to guidelines (#522071)
2009-09-03 12:23:12 +00:00
* Thu Sep 03 2009 Tomas Heinrich <theinric@redhat.com> 4.4.1-1
- upgrade to new upstream stable version
2009-08-21 15:43:49 +00:00
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 4.2.0-3
- rebuilt with new openssl
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-07-14 13:52:38 +00:00
* Tue Jul 14 2009 Tomas Heinrich <theinric@redhat.com> 4.2.0-1
- upgrade
2009-04-13 15:21:15 +00:00
* Mon Apr 13 2009 Tomas Heinrich <theinric@redhat.com> 3.21.11-1
- upgrade
2009-04-03 15:01:28 +00:00
* Tue Mar 31 2009 Lubomir Rintel <lkundrak@v3.sk> 3.21.10-4
- Backport HUPisRestart option
* Wed Mar 18 2009 Tomas Heinrich <theinric@redhat.com> 3.21.10-3
- fix variables' type conversion in expression-based filters (#485937)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-10 14:15:38 +00:00
* Tue Feb 10 2009 Tomas Heinrich <theinric@redhat.com> 3.21.10-1
- upgrade
2009-01-24 15:56:38 +00:00
* Sat Jan 24 2009 Caolán McNamara <caolanm@redhat.com> 3.21.9-3
- rebuild for dependencies
* Tue Jan 07 2009 Tomas Heinrich <theinric@redhat.com> 3.21.9-2
- fix several legacy options handling
- fix internal message output (#478612)
* Mon Dec 15 2008 Peter Vrabec <pvrabec@redhat.com> 3.21.9-1
- update is fixing $AllowedSender security issue
* Mon Sep 15 2008 Peter Vrabec <pvrabec@redhat.com> 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 <theinric@redhat.com> 3.21.3-3
- fix a wrong module name in the rsyslog.conf manual page (#455086)
- expand the rsyslog.conf manual page (#456030)
2008-08-28 09:18:24 +00:00
* Thu Aug 28 2008 Tomas Heinrich <theinric@redhat.com> 3.21.3-2
- fix clock rollback issue (#460230)
2008-08-20 12:49:47 +00:00
* Wed Aug 20 2008 Peter Vrabec <pvrabec@redhat.com> 3.21.3-1
- upgrade to bugfix release
2008-07-23 13:37:36 +00:00
* Wed Jul 23 2008 Peter Vrabec <pvrabec@redhat.com> 3.21.0-1
- upgrade
2008-07-14 12:41:31 +00:00
* Mon Jul 14 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.9-2
- adjust default config file
* Fri Jul 11 2008 Lubomir Rintel <lkundrak@v3.sk> 3.19.9-1
- upgrade
2008-06-25 14:10:33 +00:00
* Wed Jun 25 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.7-3
- rebuild because of new gnutls
2008-06-13 09:07:32 +00:00
* Fri Jun 13 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.7-2
- do not translate Oopses (#450329)
2008-06-13 08:19:07 +00:00
* Fri Jun 13 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.7-1
- upgrade
2008-05-28 08:18:25 +00:00
* Wed May 28 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.4-1
- upgrade
* Mon May 26 2008 Peter Vrabec <pvrabec@redhat.com> 3.19.3-1
2008-05-26 16:48:07 +00:00
- upgrade to new upstream release
* Wed May 14 2008 Tomas Heinrich <theinric@redhat.com> 3.16.1-1
- upgrade
* Tue Apr 08 2008 Peter Vrabec <pvrabec@redhat.com> 3.14.1-5
- prevent undesired error description in legacy
warning messages
* Tue Apr 08 2008 Peter Vrabec <pvrabec@redhat.com> 3.14.1-4
- adjust symbol lookup method to 2.6 kernel
* Tue Apr 08 2008 Peter Vrabec <pvrabec@redhat.com> 3.14.1-3
- fix segfault of expression based filters
2008-04-07 09:31:09 +00:00
* Mon Apr 07 2008 Peter Vrabec <pvrabec@redhat.com> 3.14.1-2
- init script fixes (#441170,#440968)
2008-04-04 15:01:22 +00:00
* Fri Apr 04 2008 Peter Vrabec <pvrabec@redhat.com> 3.14.1-1
- upgrade
2008-03-25 11:12:01 +00:00
* Mon Mar 25 2008 Peter Vrabec <pvrabec@redhat.com> 3.12.4-1
- upgrade
2008-03-19 09:53:31 +00:00
* Wed Mar 19 2008 Peter Vrabec <pvrabec@redhat.com> 3.12.3-1
- upgrade
- fix some significant memory leaks
2008-03-11 10:42:39 +00:00
* Tue Mar 11 2008 Peter Vrabec <pvrabec@redhat.com> 3.12.1-2
- init script fixes (#436854)
2008-03-11 11:29:05 +00:00
- fix config file parsing (#436722)
2008-03-11 10:42:39 +00:00
2008-03-07 11:12:39 +00:00
* Thu Mar 06 2008 Peter Vrabec <pvrabec@redhat.com> 3.12.1-1
- upgrade
2008-03-07 11:12:39 +00:00
* Wed Mar 05 2008 Peter Vrabec <pvrabec@redhat.com> 3.12.0-1
- upgrade
* Mon Feb 25 2008 Peter Vrabec <pvrabec@redhat.com> 3.11.5-1
- upgrade
* Fri Feb 01 2008 Peter Vrabec <pvrabec@redhat.com> 3.11.0-1
- upgrade to the latests development release
- provide PostgresSQL support
2008-03-07 11:12:39 +00:00
- provide GSSAPI support
2008-03-07 11:12:39 +00:00
* Mon Jan 21 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-7
- change from requires sysklogd to conflicts sysklogd
2008-02-11 10:59:32 +00:00
2008-03-07 11:12:39 +00:00
* Fri Jan 18 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-6
- change logrotate file
- use rsyslog own pid file
2008-01-22 12:41:58 +00:00
2008-03-07 11:12:39 +00:00
* Thu Jan 17 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-5
- fixing bad descriptor (#428775)
* Wed Jan 16 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-4
- rename logrotate file
* Wed Jan 16 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-3
- fix post script and init file
* Wed Jan 16 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-2
- change pid filename and use logrotata script from sysklogd
* Tue Jan 15 2008 Peter Vrabec <pvrabec@redhat.com> 2.0.0-1
- upgrade to stable release
- spec file clean up
2008-01-02 14:05:11 +00:00
* Wed Jan 02 2008 Peter Vrabec <pvrabec@redhat.com> 1.21.2-1
- new upstream release
2007-12-06 20:26:57 +00:00
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.19.11-2
- Rebuild for deps
* Thu Nov 29 2007 Peter Vrabec <pvrabec@redhat.com> 1.19.11-1
- new upstream release
- add conflicts (#400671)
2007-11-19 11:22:01 +00:00
* Mon Nov 19 2007 Peter Vrabec <pvrabec@redhat.com> 1.19.10-1
- new upstream release
* Wed Oct 03 2007 Peter Vrabec <pvrabec@redhat.com> 1.19.6-3
- remove NUL character from recieved messages
2007-09-25 10:25:10 +00:00
* Tue Sep 25 2007 Tomas Heinrich <theinric@redhat.com> 1.19.6-2
- fix message suppression (303341)
* Tue Sep 25 2007 Tomas Heinrich <theinric@redhat.com> 1.19.6-1
2007-09-25 00:03:24 +00:00
- upstream bugfix release
* Tue Aug 28 2007 Peter Vrabec <pvrabec@redhat.com> 1.19.2-1
- upstream bugfix release
- support for negative app selector, patch from
theinric@redhat.com
2007-08-22 15:36:20 +00:00
* Fri Aug 17 2007 Peter Vrabec <pvrabec@redhat.com> 1.19.0-1
- new upstream release with MySQL support(as plugin)
2007-08-10 14:28:19 +00:00
* Wed Aug 08 2007 Peter Vrabec <pvrabec@redhat.com> 1.18.1-1
- upstream bugfix release
2007-08-06 09:21:53 +00:00
* Mon Aug 06 2007 Peter Vrabec <pvrabec@redhat.com> 1.18.0-1
- new upstream release
2007-08-02 09:51:28 +00:00
* Thu Aug 02 2007 Peter Vrabec <pvrabec@redhat.com> 1.17.6-1
- upstream bugfix release
* Mon Jul 30 2007 Peter Vrabec <pvrabec@redhat.com> 1.17.5-1
- upstream bugfix release
- fix typo in provides
2007-07-25 17:35:43 +00:00
* Wed Jul 25 2007 Jeremy Katz <katzj@redhat.com> - 1.17.2-4
- rebuild for toolchain bug
* Tue Jul 24 2007 Peter Vrabec <pvrabec@redhat.com> 1.17.2-3
- take care of sysklogd configuration files in %%post
2007-07-24 11:39:10 +00:00
* Tue Jul 24 2007 Peter Vrabec <pvrabec@redhat.com> 1.17.2-2
- use EVR in provides/obsoletes sysklogd
2007-07-23 14:49:14 +00:00
* Mon Jul 23 2007 Peter Vrabec <pvrabec@redhat.com> 1.17.2-1
- upstream bug fix release
* Fri Jul 20 2007 Peter Vrabec <pvrabec@redhat.com> 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 <pvrabec@redhat.com> 1.17.0-1
2007-07-18 09:09:41 +00:00
- feature rich upstream release
* Thu Jul 12 2007 Peter Vrabec <pvrabec@redhat.com> 1.15.1-2
- use obsoletes and hadle old config files
* Wed Jul 11 2007 Peter Vrabec <pvrabec@redhat.com> 1.15.1-1
- new upstream bugfix release
* Tue Jul 10 2007 Peter Vrabec <pvrabec@redhat.com> 1.15.0-1
- new upstream release introduce capability to generate output
file names based on templates
* Tue Jul 03 2007 Peter Vrabec <pvrabec@redhat.com> 1.14.2-1
- new upstream bugfix release
* Mon Jul 02 2007 Peter Vrabec <pvrabec@redhat.com> 1.14.1-1
- new upstream release with IPv6 support
* Tue Jun 26 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.5-3
- add BuildRequires for zlib compression feature
* Mon Jun 25 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.5-2
- some spec file adjustments.
- fix syslog init script error codes (#245330)
* Fri Jun 22 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.5-1
- new upstream release
* Fri Jun 22 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.4-2
- some spec file adjustments.
* Mon Jun 18 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.4-1
- upgrade to new upstream release
* Wed Jun 13 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.2-2
- DB support off
* Tue Jun 12 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.2-1
- new upstream release based on redhat patch
* Fri Jun 08 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.1-2
- rsyslog package provides its own kernel log. daemon (rklogd)
* Mon Jun 04 2007 Peter Vrabec <pvrabec@redhat.com> 1.13.1-1
- Initial rpm build