Summary(pt_BR.UTF-8): Daemon de log nova geração
Name: syslog-ng
Version: 3.6.2
-Release: 2
+Release: 3
License: GPL v2+ with OpenSSL exception
Group: Daemons
Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
Patch0: %{name}-datadir.patch
Patch1: cap_syslog-vserver-workaround.patch
Patch2: %{name}-nolibs.patch
-Patch3: %{name}-systemd.patch
-Patch4: man-paths.patch
+Patch3: man-paths.patch
URL: http://www.balabit.com/products/syslog_ng/
%{?with_geoip:BuildRequires: GeoIP-devel >= 1.5.1}
BuildRequires: autoconf >= 2.53
%endif
Requires(post): fileutils
Requires(post,preun): /sbin/chkconfig
-%if %{with systemd}
-Requires(post,preun,postun): systemd-units >= 38
-%endif
Requires: %{name}-libs = %{version}-%{release}
Requires: eventlog >= 0.2.12
Requires: glib2 >= %{glib2_ver}
Requires: psmisc >= 20.1
%{?with_system_rabbitmq:Requires: rabbitmq-c >= 0.0.1}
Requires: rc-scripts >= 0.4.3.0
-%if %{with systemd}
-Requires: systemd-units >= 38
-%endif
# for afsocket
Requires: libnet >= 1:1.1.2.1-7
# for afsocket and dbparser
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p1
cp -p %{SOURCE4} doc
cp -p %{SOURCE5} contrib/syslog-ng.conf.simple
--with-module-dir=%{_libdir}/syslog-ng \
--with-pidfile-dir=/var/run \
--with-timezone-dir=%{_datadir}/zoneinfo \
-%if %{with systemd}
- --enable-systemd \
-%else
--disable-systemd \
-%endif
- --with-systemdsystemunitdir=%{systemdunitdir} \
--enable-amqp \
--enable-geoip%{!?with_geoip:=no} \
--enable-ipv6 \
/sbin/chkconfig --add syslog-ng
%service syslog-ng restart "syslog-ng daemon"
-%if %{with systemd}
-%systemd_post syslog-ng.service
-%endif
-
%preun
if [ "$1" = "0" ]; then
%service syslog-ng stop
/sbin/chkconfig --del syslog-ng
fi
-%if %{with systemd}
-%systemd_preun syslog-ng.service
-%endif
-
-%postun
-%if %{with systemd}
-%systemd_reload
-%endif
-
-%triggerpostun -- syslog-ng < 3.3.4-3
-%if %{with systemd}
-%systemd_trigger syslog-ng.service
-%endif
%triggerun -- syslog-ng < 3.0
sed -i -e 's#sync(\(.*\))#flush_lines(\1)#g' /etc/syslog-ng/syslog-ng.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syslog-ng/syslog-ng.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/syslog-ng
%attr(754,root,root) /etc/rc.d/init.d/syslog-ng
-%if %{with systemd}
-%{systemdunitdir}/syslog-ng.service
-%endif
%dir %{_libdir}/syslog-ng
%attr(755,root,root) %{_libdir}/syslog-ng/libafamqp.so
%attr(755,root,root) %{_libdir}/syslog-ng/libaffile.so
%attr(755,root,root) %{_libdir}/syslog-ng/liblinux-kmsg-format.so
%attr(755,root,root) %{_libdir}/syslog-ng/libpacctformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/libpseudofile.so
-%if %{with systemd}
-%attr(755,root,root) %{_libdir}/syslog-ng/libsdjournal.so
-%endif
%attr(755,root,root) %{_libdir}/syslog-ng/libsyslog-ng-crypto.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsyslogformat.so
%attr(755,root,root) %{_libdir}/syslog-ng/libsystem-source.so