integ/extended/syslog-ng/centos/meta_patches/0003-add-fm-event-syslogger.patch
Dean Troyer 3cd12006bb StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:35 -07:00

44 lines
1.5 KiB
Diff

From e361372a2eb4f61f19c59f641b26dc9f109bf800 Mon Sep 17 00:00:00 2001
From: Kam Nasim <kam.nasim@windriver.com>
Date: Fri, 13 Oct 2017 12:18:48 -0400
Subject: [PATCH] add FM Event Syslogger to be called from as a "program"
destination from syslog-ng
---
SPECS/syslog-ng.spec | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/SPECS/syslog-ng.spec b/SPECS/syslog-ng.spec
index a6d3f68..a75e393 100644
--- a/SPECS/syslog-ng.spec
+++ b/SPECS/syslog-ng.spec
@@ -13,6 +13,7 @@ Source0: http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/%{
Source1: syslog-ng.conf
Source2: syslog-ng.logrotate
Source3: remotelogging.conf
+Source4: fm_event_syslogger
Patch0: syslog-ng-3.5.0-syslog-ng.service.patch
Patch1: syslog-ng-3.4.0beta1-tests-functional-control.py.patch
@@ -208,6 +209,9 @@ make DESTDIR=%{buildroot} install
%{__install} -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/syslog-ng.conf
%{__install} -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/remotelogging.conf
+%{__install} -d %{buildroot}%{_sbindir}
+%{__install} -p -m 0700 %{SOURCE4} %{buildroot}%{_sbindir}/fm_event_syslogger
+
%{__install} -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/syslog
@@ -296,6 +300,7 @@ fi
%dir %{_sharedstatedir}/%{name}
%{_sbindir}/%{name}
%{_sbindir}/syslog-ng-ctl
+%{_sbindir}/fm_event_syslogger
%{_bindir}/loggen
%{_bindir}/pdbtool
%{_bindir}/update-patterndb
--
1.8.3.1