Fix source URL
Fix dependencies Use %{name} most of the time OBS-URL: https://build.opensuse.org/package/show/server:monitoring/prelude-manager?expand=0&rev=2
This commit is contained in:
parent
159222c51c
commit
97388cb352
@ -25,18 +25,19 @@ Summary: Bus communication for all Prelude modules
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Url: https://www.prelude-siem.org
|
Url: https://www.prelude-siem.org
|
||||||
Source0: https://www.prelude-siem.org/pkg/prelude/src/%{name}-%{version}.tar.gz
|
Source0: https://www.prelude-siem.org/pkg/src/3.0.0/%{name}-%{version}.tar.gz
|
||||||
Source1: prelude-manager.service
|
Source1: prelude-manager.service
|
||||||
Source2: prelude-manager.run
|
Source2: prelude-manager.run
|
||||||
Patch0: prelude-manager-run-dir.patch
|
Patch0: prelude-manager-run-dir.patch
|
||||||
BuildRequires: libgnutls-devel
|
BuildRequires: libgnutls-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: libprelude-devel
|
||||||
BuildRequires: libpreludedb-devel
|
BuildRequires: libpreludedb-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: libprelude-devel
|
|
||||||
BuildRequires: libwrap0
|
BuildRequires: libwrap0
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
|
Requires: libprelude23
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -47,40 +48,41 @@ and saves received events to a media specified by the user
|
|||||||
establishes the priorities of treatment according to the
|
establishes the priorities of treatment according to the
|
||||||
critical character and the source of the alerts.
|
critical character and the source of the alerts.
|
||||||
|
|
||||||
%package -n prelude-manager-devel
|
%package -n %{name}-devel
|
||||||
Summary: Libraries, include files for Prelude-Manager
|
Summary: Libraries, include files for Prelude-Manager
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: prelude-manager = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libpreludedb-devel
|
Requires: libpreludedb-devel
|
||||||
|
|
||||||
%description -n prelude-manager-devel
|
%description -n %{name}-devel
|
||||||
Header files and libraries for prelude-manager development.
|
Header files and libraries for prelude-manager development.
|
||||||
|
|
||||||
%package -n prelude-manager-db-plugin
|
%package -n %{name}-db-plugin
|
||||||
Summary: Database report plugin for Prelude Manager
|
Summary: Database report plugin for Prelude Manager
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: libpreludedb7
|
||||||
|
|
||||||
%description -n prelude-manager-db-plugin
|
%description -n %{name}-db-plugin
|
||||||
This plugin allows prelude-manager to write to database.
|
This plugin allows prelude-manager to write to database.
|
||||||
|
|
||||||
%package -n prelude-manager-xml-plugin
|
%package -n %{name}-xml-plugin
|
||||||
Summary: XML report plugin for Prelude Manager
|
Summary: XML report plugin for Prelude Manager
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n prelude-manager-xml-plugin
|
%description -n %{name}-xml-plugin
|
||||||
This plugin adds XML logging capabilities to prelude-manager.
|
This plugin adds XML logging capabilities to prelude-manager.
|
||||||
|
|
||||||
%package -n prelude-manager-smtp-plugin
|
%package -n %{name}-smtp-plugin
|
||||||
Summary: SMTP alert plugin for Prelude Manager
|
Summary: SMTP alert plugin for Prelude Manager
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n prelude-manager-smtp-plugin
|
%description -n %{name}-smtp-plugin
|
||||||
This plugin adds alerting by email capabilities to prelude-manager
|
This plugin adds alerting by email capabilities to prelude-manager
|
||||||
|
|
||||||
%package selinux
|
%package -n %{name}-selinux
|
||||||
Summary: SELinux policy for prelude-manager
|
Summary: SELinux policy for prelude-manager
|
||||||
Provides: selinux-policy-base
|
Provides: selinux-policy-base
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -93,12 +95,12 @@ Requires(pre): policycoreutils >= %{POLICYCOREUTILSVER}
|
|||||||
Requires(pre): coreutils
|
Requires(pre): coreutils
|
||||||
Requires(pre): selinux-policy-targeted >= %{SELINUXTARGETEDVER}
|
Requires(pre): selinux-policy-targeted >= %{SELINUXTARGETEDVER}
|
||||||
Requires: selinux-policy-targeted >= %{SELINUXTARGETEDVER}
|
Requires: selinux-policy-targeted >= %{SELINUXTARGETEDVER}
|
||||||
Requires: prelude-manager = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires(post): policycoreutils >= %{POLICYCOREUTILSVER}
|
Requires(post): policycoreutils >= %{POLICYCOREUTILSVER}
|
||||||
Requires(postun): policycoreutils >= %{POLICYCOREUTILSVER}
|
Requires(postun): policycoreutils >= %{POLICYCOREUTILSVER}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description selinux
|
%description -n %{name}-selinux
|
||||||
Prelude-Manager is a high availability server that
|
Prelude-Manager is a high availability server that
|
||||||
accepts secured connections from distributed sensors
|
accepts secured connections from distributed sensors
|
||||||
and saves received events to a media specified by the user
|
and saves received events to a media specified by the user
|
||||||
@ -144,12 +146,12 @@ install -D -m 444 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|||||||
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf
|
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
|
||||||
%post selinux
|
%post -n %{name}-selinux
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/%{name}.pp.bz2
|
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/%{name}.pp.bz2
|
||||||
/sbin/restorecon -R /dev/shm/ || :
|
/sbin/restorecon -R /dev/shm/ || :
|
||||||
else
|
else
|
||||||
/usr/sbin/semodule -n -s targeted -r prelude-manager 2>/dev/null || :
|
/usr/sbin/semodule -n -s targeted -r %{name} 2>/dev/null || :
|
||||||
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/%{name}.pp.bz2
|
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/%{name}.pp.bz2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -160,15 +162,15 @@ fi
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%service_del_postun %{name}.service
|
%service_del_postun %{name}.service
|
||||||
|
|
||||||
%postun selinux
|
%postun -n %{name}-selinux
|
||||||
semodule -n -s targeted -r prelude-manager 2>/dev/null || :
|
semodule -n -s targeted -r %{name} 2>/dev/null || :
|
||||||
/sbin/restorecon -R /dev/shm/ || :
|
/sbin/restorecon -R /dev/shm/ || :
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%attr(0750,-,-) %dir %{_sysconfdir}/%{name}/
|
%attr(0750,-,-) %dir %{_sysconfdir}/%{name}/
|
||||||
%config(noreplace) %attr(0640,-,-) %{_sysconfdir}/%{name}/prelude-manager.conf
|
%config(noreplace) %attr(0640,-,-) %{_sysconfdir}/%{name}/%{name}.conf
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%dir %{_libdir}/%{name}/
|
%dir %{_libdir}/%{name}/
|
||||||
%dir %{_libdir}/%{name}/filters/
|
%dir %{_libdir}/%{name}/filters/
|
||||||
@ -180,33 +182,33 @@ semodule -n -s targeted -r prelude-manager 2>/dev/null || :
|
|||||||
%{_libdir}/%{name}/decodes/*.so
|
%{_libdir}/%{name}/decodes/*.so
|
||||||
%attr(0750,-,-) %dir %{_localstatedir}/spool/prelude/%{name}/
|
%attr(0750,-,-) %dir %{_localstatedir}/spool/prelude/%{name}/
|
||||||
%attr(0750,-,-) %dir %{_datadir}/%{name}/
|
%attr(0750,-,-) %dir %{_datadir}/%{name}/
|
||||||
%attr(0644,-,-) %{_mandir}/man1/prelude-manager.1.gz
|
%attr(0644,-,-) %{_mandir}/man1/%{name}.1.gz
|
||||||
%{_sbindir}/rcprelude-manager
|
%{_sbindir}/rc%{name}
|
||||||
%dir %{_tmpfilesdir}
|
%dir %{_tmpfilesdir}
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
|
||||||
%files -n prelude-manager-db-plugin
|
%files -n %{name}-db-plugin
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/%{name}/reports/db.so
|
%{_libdir}/%{name}/reports/db.so
|
||||||
|
|
||||||
%files -n prelude-manager-xml-plugin
|
%files -n %{name}-xml-plugin
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/%{name}/reports/xmlmod.so
|
%{_libdir}/%{name}/reports/xmlmod.so
|
||||||
%attr(0750,root,root) %dir %{_datadir}/%{name}/xmlmod/
|
%attr(0750,root,root) %dir %{_datadir}/%{name}/xmlmod/
|
||||||
%{_datadir}/%{name}/xmlmod/*
|
%{_datadir}/%{name}/xmlmod/*
|
||||||
|
|
||||||
%files -n prelude-manager-smtp-plugin
|
%files -n %{name}-smtp-plugin
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %attr(0644,root,root) plugins/reports/smtp/template.example
|
%doc %attr(0644,root,root) plugins/reports/smtp/template.example
|
||||||
%{_libdir}/%{name}/reports/smtp.so
|
%{_libdir}/%{name}/reports/smtp.so
|
||||||
|
|
||||||
%files -n prelude-manager-devel
|
%files -n %{name}-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_includedir}/%{name}/
|
%dir %{_includedir}/%{name}/
|
||||||
%{_includedir}/%{name}/*
|
%{_includedir}/%{name}/*
|
||||||
|
|
||||||
%files selinux
|
%files -n %{name}-selinux
|
||||||
%{_datadir}/selinux/targeted/%{name}.pp.bz2
|
%{_datadir}/selinux/targeted/%{name}.pp.bz2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user