From 2bc9ef83711f9edb8f454e0f2a9ea66d3dede6e6 Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Oct 13 2019 08:47:25 +0000 Subject: Bump version 5.1.0 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34407f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/prelude-correlator-5.1.0.tar.gz diff --git a/Makefile b/Makefile deleted file mode 100644 index d4ec333..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: prelude-correlator -# $Id$ -NAME := prelude-correlator -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/prelude-correlator.service b/prelude-correlator.service new file mode 100644 index 0000000..9562bdb --- /dev/null +++ b/prelude-correlator.service @@ -0,0 +1,8 @@ +[Unit] +Description=Correlator of events received by Prelude + +[Service] +ExecStart=/usr/sbin/prelude-correlator + +[Install] +WantedBy=multi-user.target diff --git a/prelude-correlator.spec b/prelude-correlator.spec new file mode 100644 index 0000000..b42e7da --- /dev/null +++ b/prelude-correlator.spec @@ -0,0 +1,169 @@ +%global debug_package %{nil} + +Name: prelude-correlator +Version: 5.1.0 +Release: 1%{?dist} +Summary: Real time correlator of events received by Prelude Manager +License: GPLv2+ +URL: https://www.prelude-siem.org/ +Source0: https://www.prelude-siem.org/pkg/src/4.1.0/%{name}-%{version}.tar.gz +Source1: %{name}.service + +BuildRequires: systemd +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-devel + +%{?systemd_requires} +Requires: python%{python3_pkgversion}-%{name} >= %{version} + +%description +Prelude-Correlator allows conducting multi-stream correlations +thanks to a powerful programming language for writing correlation +rules. With any type of alert able to be correlated, event +analysis becomes simpler, quicker and more incisive. This +correlation alert then appears within the Prewikka interface +and indicates the potential target information via the set of +correlation rules. + +%package -n python%{python3_pkgversion}-%{name} +Summary: Real time correlator of events received by Prelude Manager +Requires: %{name} = %{version}-%{release} +Requires: python%{python3_pkgversion}-prelude >= 5.1.0 +Requires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-six +%{?python_provide:%python_provide python%{python3_pkgversion}-prelude} + +%description -n python%{python3_pkgversion}-%{name} +Prelude-Correlator allows conducting multi-stream correlations +thanks to a powerful programming language for writing correlation +rules. With any type of alert able to be correlated, event +analysis becomes simpler, quicker and more incisive. This +correlation alert then appears within the Prewikka interface +and indicates the potential target information via the set of +correlation rules. + +%prep +%autosetup -p1 + +%build +%py3_build + +%install +install -d -m 0755 %{buildroot}%{_sbindir} +# We have to use this because py3_install do other things and siteconfig.py +# will be not installed +%{__python3} setup.py install --root=%{buildroot} +mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}-%{python3_version} + +ln -s ./%{name}-%{python3_version} %{buildroot}%{_sbindir}/%{name}-3 +ln -s ./%{name}-3 %{buildroot}%{_sbindir}/%{name} + +# Systemd configuration file +install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service + +%post +%systemd_post %{name}.service + +%preun +%systemd_preun %{name}.service + +%postun +%systemd_postun_with_restart %{name}.service + +%files +%license COPYING +%doc AUTHORS NEWS HACKING.README +%dir %{_sysconfdir}/%{name}/ +%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%dir %{_sysconfdir}/%{name}/rules +%dir %{_sysconfdir}/%{name}/rules/python +%config(noreplace) %{_sysconfdir}/%{name}/rules/python/*.py* +%dir %{_sysconfdir}/%{name}/conf.d +%config %{_sysconfdir}/%{name}/conf.d/README +%{_localstatedir}/lib/%{name}/ +%{_unitdir}/%{name}.service + +%files -n python%{python3_pkgversion}-%{name} +%{_sbindir}/%{name} +%{_sbindir}/%{name}-3 +%{_sbindir}/%{name}-%{python3_version} +%{python3_sitelib}/preludecorrelator/ +%{python3_sitelib}/prelude_correlator-%{version}-py%{python3_version}.egg-info + +%changelog +* Fri Oct 11 2019 Thomas Andrejak - 5.1.0-1 +- Bump version 5.1.0 + +* Wed Jul 24 2019 Thomas Andrejak - 5.0.1-1 +- Bump version 5.0.1 + +* Thu Mar 07 2019 Troy Dawson - 4.1.1-4 +- Rebuilt to change main python from 3.4 to 3.6 + +* Sat May 19 2018 Thomas Andrejak - 4.1.1-3 +- Fix dependencies + +* Sun Apr 29 2018 Thomas Andrejak - 4.1.1-2 +- Fix dependencies + +* Wed Apr 25 2018 Thomas Andrejak - 4.1.1-1 +- Bump version 4.1.1 + +* Tue Oct 24 2017 Thomas Andrejak - 4.0.0-2 +- Remove netaddr dependency for Python 3 + +* Wed Oct 4 2017 Thomas Andrejak - 4.0.0-1 +- Bump version 4.0.0 + +* Sat Feb 04 2017 Thomas Andrejak - 3.1.0-1 +- Bump version + +* Thu Feb 14 2013 Fedora Release Engineering - 1:1.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 1:1.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1:1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1:1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jul 21 2010 David Malcolm - 1:1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Sun May 02 2010 Steve Grubb - 1.0.0-1 +- New upstream release + +* Tue Mar 09 2010 Steve Grubb - 1.0.0rc4-1 +- New upstream release + +* Mon Feb 01 2010 Steve Grubb - 1.0.0rc2-1 +- New upstream release + +* Tue Nov 03 2009 Steve Grubb - 0.9.0-0.10.beta8 +- New beta release + +* Sun Jul 26 2009 Fedora Release Engineering - 0.9.0-0.9.beta6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jul 10 2009 Steve Grubb 0.9.0-0.8.beta6 +- New beta release + +* Mon Mar 02 2009 Steve Grubb 0.9.0-0.7.beta3 +- Fix bz#484361 Error message regarding missing arguments lua ruleset + +* Thu Feb 26 2009 Fedora Release Engineering - 0.9.0-0.6.beta3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Dec 05 2008 Steve Grubb 0.9.0-0.5.beta3 +- Fix bz#469824 Correct brute force correlation rules +- Add signal header to prelude-correlator.c so it builds correctly bz 474698 +- Include unowned /usr/include/prelude-correlator directory + +*Fri Jul 11 2008 Steve Grubb 0.9.0-0.3.beta3 +- New beta release + +*Thu Jul 03 2008 Steve Grubb 0.9.0-0.1.beta2 +- Initial packaging diff --git a/sources b/sources index e69de29..34f7753 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (prelude-correlator-5.1.0.tar.gz) = db3a4cb1c4a8254270f63552ee2a959bc28cec8fdb48340f1c301fa65df73115292060067bed4b5945da4717a216313aa6eb2525bc02de4a6a45716b9827f5fd