From 28e7b8fd12d62e037c85c3c96d9c42fec2c5ed3e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:26:52 +0100 Subject: [PATCH] update to 5.2.0 [release 5.2.0-1mamba;Sat Dec 19 2020] --- libprelude-5.2.0-ruby-2.7.2.patch | 16 +++++ libprelude.spec | 97 +++++++++++++++++++++++-------- 2 files changed, 90 insertions(+), 23 deletions(-) create mode 100644 libprelude-5.2.0-ruby-2.7.2.patch diff --git a/libprelude-5.2.0-ruby-2.7.2.patch b/libprelude-5.2.0-ruby-2.7.2.patch new file mode 100644 index 0000000..9a625e8 --- /dev/null +++ b/libprelude-5.2.0-ruby-2.7.2.patch @@ -0,0 +1,16 @@ +Description: Add support to Ruby 2.7 +Author: Thomas Andrejak +Last-Update: 2020-03-23 +Forwarded: yes, privately + +--- libprelude-5.2.0/bindings/ruby/Prelude.cxx 2019-10-15 05:33:03.117000000 +0900 ++++ libprelude-5.2.0/bindings/ruby/Prelude.cxx 2020-01-19 20:13:37.324557838 +0900 +@@ -1260,7 +1260,7 @@ SWIGRUNTIME void SWIG_RubyInitializeTrac + swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value); + } + +- rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL); ++ rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, (rb_gvar_setter_t *)NULL); + } + + /* Add a Tracking from a C/C++ struct to a Ruby object */ diff --git a/libprelude.spec b/libprelude.spec index 18dcc65..5c5434e 100644 --- a/libprelude.spec +++ b/libprelude.spec @@ -1,5 +1,5 @@ Name: libprelude -Version: 1.0.1 +Version: 5.2.0 Release: 1mamba Summary: A hybrid Intrusion Detection framework implementing an open communication layer Group: System/Libraries @@ -7,28 +7,34 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.prelude-technologies.com -Source: https://www.prelude-ids.org/attachments/download/241/libprelude-%{version}.tar.gz +Source: https://www.prelude-siem.org/pkg/src/%{version}/libprelude-%{version}.tar.gz Patch0: %{name}-1.0.0-libtool-2.4.patch Patch1: libprelude-1.0.0-gcc-4.6.patch Patch2: libprelude-1.0.0-libgnutls-3.0.5.patch Patch3: libprelude-1.0.1-gcc-4.7.patch +Patch4: libprelude-5.2.0-ruby-2.7.2.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libffi-devel BuildRequires: libgcc -BuildRequires: libgcrypt-devel BuildRequires: libgmp-devel BuildRequires: libgnutls-devel -BuildRequires: libgpg-error-devel +BuildRequires: libidn2-devel BuildRequires: libltdl-devel BuildRequires: libnettle-devel -BuildRequires: libpython-devel +BuildRequires: libp11-kit-devel +BuildRequires: libpcre-devel +BuildRequires: libperl +BuildRequires: libpython27-devel +BuildRequires: libpython3-devel +BuildRequires: libruby-devel BuildRequires: libstdc++6-devel BuildRequires: libtasn1-devel -BuildRequires: libz-devel -BuildRequires: p11-kit-devel +BuildRequires: libunistring-devel BuildRequires: perl-devel -BuildRequires: ruby-devel +BuildRequires: python3 ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -39,10 +45,20 @@ Prelude is an Hybrid IDS framework, that is, it is a product that enable all ava Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} %description devel Prelude is an Hybrid IDS framework, that is, it is a product that enable all available security application, be it opensource or proprietary, to report to a centralized system. In order to achieve this task, Prelude relies on the IDMEF (Intrusion Detection Message Exchange Format) IETF standard, that enables different kinds of sensors to generate events using an unified language. -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. + +%package tools +Summary: Tools provided with %{name} +Group: System/Tools +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +Prelude is an Hybrid IDS framework, that is, it is a product that enable all available security application, be it opensource or proprietary, to report to a centralized system. In order to achieve this task, Prelude relies on the IDMEF (Intrusion Detection Message Exchange Format) IETF standard, that enables different kinds of sensors to generate events using an unified language. +This package contains the tools provide with %{name}. %package -n perl-Prelude Summary: Perl interface to the Prelude Intrution Detection Framework @@ -53,24 +69,40 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Prelude is an Hybrid IDS framework, that is, it is a product that enable all available security application, be it opensource or proprietary, to report to a centralized system. In order to achieve this task, Prelude relies on the IDMEF (Intrusion Detection Message Exchange Format) IETF standard, that enables different kinds of sensors to generate events using an unified language. This package contains the perl library interface. -%package -n python-Prelude +%package -n python-prelude Summary: Python interface to the Prelude Intrution Detection Framework Group: System/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -BuildRequires: libtasn1-devel +Provides: python-Prelude +Obsoletes: python-Prelude < 5.2.0 -%description -n python-Prelude +%description -n python-prelude Prelude is an Hybrid IDS framework, that is, it is a product that enable all available security application, be it opensource or proprietary, to report to a centralized system. In order to achieve this task, Prelude relies on the IDMEF (Intrusion Detection Message Exchange Format) IETF standard, that enables different kinds of sensors to generate events using an unified language. This package contains the python library interface. +%package -n python-prelude-py3 +Summary: Python interface to the Prelude Intrution Detection Framework +Group: System/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-prelude-py3 +Prelude is an Hybrid IDS framework, that is, it is a product that enable all available security application, be it opensource or proprietary, to report to a centralized system. In order to achieve this task, Prelude relies on the IDMEF (Intrusion Detection Message Exchange Format) IETF standard, that enables different kinds of sensors to generate events using an unified language. +This package contains the python library interface. + +%debug_package + %prep %setup -q -%patch0 -p1 +#-D -T +#:<< _EOF +#%patch0 -p1 %patch1 -p1 -%patch2 -p1 -%patch3 -p1 +#%patch2 -p1 +#%patch3 -p1 +%patch4 -p1 %build +#:<< _EOF export CFLAGS="-Wno-deprecated-declarations" %configure --without-lua %make @@ -96,19 +128,13 @@ find %{buildroot}/usr/lib/perl5 -name perllocal.pod -exec rm -f {} \; %files %defattr(-,root,root) -%dir %{_sysconfdir}/prelude -%{_sysconfdir}/prelude/default/*.conf -%{_bindir}/prelude-adduser -%{_bindir}/prelude-admin %{_libdir}/libprelude.so.* %{_libdir}/libpreludecpp.so.* %{_libdir}/ruby/site_ruby -%{_mandir}/man1/prelude-admin.1.gz -%doc AUTHORS COPYING ChangeLog NEWS README +%doc AUTHORS COPYING %files devel %defattr(-,root,root) -%{_bindir}/libprelude-config %dir %{_includedir}/libprelude %{_includedir}/libprelude/*.h %{_includedir}/libprelude/*.hxx @@ -121,15 +147,40 @@ find %{buildroot}/usr/lib/perl5 -name perllocal.pod -exec rm -f {} \; #%{_libdir}/PreludeEasy.la #%{_libdir}/PreludeEasy.so %{_libdir}/pkgconfig/libprelude.pc +%doc ChangeLog NEWS README + +%files tools +%defattr(-,root,root) +%dir %{_sysconfdir}/prelude +%{_sysconfdir}/prelude/default/*.conf +%{_bindir}/libprelude-config +%{_bindir}/prelude-adduser +%{_bindir}/prelude-admin +%{_datadir}/libprelude/swig/libpreludecpp.i +%{_datadir}/libprelude/swig/perl/libpreludecpp-perl.i +%{_datadir}/libprelude/swig/python/libpreludecpp-python.i +%{_datadir}/libprelude/swig/ruby/libpreludecpp-ruby.i +%{_mandir}/man1/prelude-admin.1* +%{_mandir}/man1/libprelude-config.1* %files -n perl-Prelude -f .packlist %defattr(-,root,root) -%files -n python-Prelude +%files -n python-prelude %defattr(-,root,root) %{python_sitearch}/* +%files -n python-prelude-py3 +%defattr(-,root,root) +%{python3_sitearch}/__pycache__/prelude.cpython-*.pyc +%{python3_sitearch}/_prelude.cpython-*.so +%{python3_sitearch}/prelude-*.egg-info +%{python3_sitearch}/prelude.py + %changelog +* Sat Dec 19 2020 Silvan Calarco 5.2.0-1mamba +- update to 5.2.0 + * Fri Nov 16 2012 Silvan Calarco 1.0.1-1mamba - update to 1.0.1