2016-05-20 15:09:44 +00:00
|
|
|
#
|
|
|
|
# spec file for package prelude-manager
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX Products 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: prelude-manager
|
|
|
|
Version: 3.0.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Bus communication for all Prelude modules
|
2016-09-15 08:23:29 +00:00
|
|
|
License: GPL-3.0+
|
2016-05-20 15:09:44 +00:00
|
|
|
Group: Applications/Internet
|
|
|
|
Url: https://www.prelude-siem.org
|
2016-08-27 15:12:40 +00:00
|
|
|
Source0: https://www.prelude-siem.org/pkg/src/3.0.0/%{name}-%{version}.tar.gz
|
2016-05-20 15:09:44 +00:00
|
|
|
Source1: prelude-manager.service
|
|
|
|
Source2: prelude-manager.run
|
|
|
|
Patch0: prelude-manager-run-dir.patch
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: pkg-config
|
2016-08-27 15:12:40 +00:00
|
|
|
BuildRequires: libprelude-devel
|
2016-05-20 15:09:44 +00:00
|
|
|
BuildRequires: libpreludedb-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: tcpd-devel
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description
|
2016-08-29 18:38:37 +00:00
|
|
|
Prelude Manager is a high availability server that
|
2016-05-20 15:09:44 +00:00
|
|
|
accepts secured connections from distributed sensors
|
|
|
|
and saves received events to a media specified by the user
|
|
|
|
(database, log file, mail etc.). The server schedules and
|
|
|
|
establishes the priorities of treatment according to the
|
|
|
|
critical character and the source of the alerts.
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Libraries, include files for Prelude Manager
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-08-27 15:12:40 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2016-05-20 15:09:44 +00:00
|
|
|
Requires: libpreludedb-devel
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%description devel
|
2016-05-20 15:09:44 +00:00
|
|
|
Header files and libraries for prelude-manager development.
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%package db-plugin
|
2016-08-27 15:12:40 +00:00
|
|
|
Summary: Database report plugin for Prelude Manager
|
2016-08-29 18:38:37 +00:00
|
|
|
Group: Applications/Internet
|
2016-05-20 15:09:44 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%description db-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
This plugin allows prelude-manager to write to database.
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%package xml-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
Summary: XML report plugin for Prelude Manager
|
2016-08-29 18:38:37 +00:00
|
|
|
Group: Applications/Internet
|
2016-05-20 15:09:44 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%description xml-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
This plugin adds XML logging capabilities to prelude-manager.
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%package smtp-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
Summary: SMTP alert plugin for Prelude Manager
|
2016-08-29 18:38:37 +00:00
|
|
|
Group: Applications/Internet
|
2016-05-20 15:09:44 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%description smtp-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
This plugin adds alerting by email capabilities to prelude-manager
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p0
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-libwrap
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}/%{_localstatedir}/spool/prelude/%{name}/
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/reports/*.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/filters/*.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/decodes/*.la
|
|
|
|
rm -f %{buildroot}/%{_defaultdocdir}/../%{name}/smtp/template.example
|
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
|
|
|
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}
|
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}/%{_tmpfilesdir}/%{name}.conf
|
|
|
|
rm -rf %{buildroot}/%{_localstatedir}/run/%{name}
|
|
|
|
install -D -m 444 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf
|
|
|
|
%service_add_post %{name}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%service_del_postun %{name}.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%attr(0750,-,-) %dir %{_sysconfdir}/%{name}/
|
2016-08-27 15:12:40 +00:00
|
|
|
%config(noreplace) %attr(0640,-,-) %{_sysconfdir}/%{name}/%{name}.conf
|
2016-05-20 15:09:44 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%dir %{_libdir}/%{name}/filters/
|
|
|
|
%{_libdir}/%{name}/filters/*.so
|
|
|
|
%dir %{_libdir}/%{name}/reports/
|
|
|
|
%{_libdir}/%{name}/reports/debug.so
|
|
|
|
%{_libdir}/%{name}/reports/textmod.so
|
|
|
|
%dir %{_libdir}/%{name}/decodes/
|
|
|
|
%{_libdir}/%{name}/decodes/*.so
|
2016-09-13 22:22:29 +00:00
|
|
|
%attr(0711,-,-) %dir %{_localstatedir}/spool/prelude
|
2016-05-20 15:09:44 +00:00
|
|
|
%attr(0750,-,-) %dir %{_localstatedir}/spool/prelude/%{name}/
|
|
|
|
%attr(0750,-,-) %dir %{_datadir}/%{name}/
|
2016-08-27 15:12:40 +00:00
|
|
|
%attr(0644,-,-) %{_mandir}/man1/%{name}.1.gz
|
|
|
|
%{_sbindir}/rc%{name}
|
2016-05-20 15:09:44 +00:00
|
|
|
%dir %{_tmpfilesdir}
|
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%files db-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
%defattr(-,root,root,-)
|
2016-08-29 18:38:37 +00:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%dir %{_libdir}/%{name}/reports
|
2016-05-20 15:09:44 +00:00
|
|
|
%{_libdir}/%{name}/reports/db.so
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%files xml-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
%defattr(-,root,root,-)
|
2016-08-29 18:38:37 +00:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%dir %{_libdir}/%{name}/reports
|
2016-05-20 15:09:44 +00:00
|
|
|
%{_libdir}/%{name}/reports/xmlmod.so
|
|
|
|
%attr(0750,root,root) %dir %{_datadir}/%{name}/xmlmod/
|
|
|
|
%{_datadir}/%{name}/xmlmod/*
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%files smtp-plugin
|
2016-05-20 15:09:44 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %attr(0644,root,root) plugins/reports/smtp/template.example
|
2016-08-29 18:38:37 +00:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%dir %{_libdir}/%{name}/reports
|
2016-05-20 15:09:44 +00:00
|
|
|
%{_libdir}/%{name}/reports/smtp.so
|
|
|
|
|
2016-08-29 18:38:37 +00:00
|
|
|
%files devel
|
2016-05-20 15:09:44 +00:00
|
|
|
%defattr(-,root,root,-)
|
2016-08-29 18:38:37 +00:00
|
|
|
%{_includedir}/%{name}/
|
2016-05-20 15:09:44 +00:00
|
|
|
|
|
|
|
%changelog
|