From 36b4350d09a3c7000a25135dea91b4302f89a98f Mon Sep 17 00:00:00 2001 From: shixuantong Date: Fri, 30 May 2025 17:09:46 +0800 Subject: [PATCH] optimize sysSentry dependencies --- sysSentry.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sysSentry.spec b/sysSentry.spec index 51507fc..777ad2f 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.3 -Release: 10 +Release: 11 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -28,7 +28,6 @@ BuildRequires: elfutils-devel clang libbpf-devel bpftool BuildRequires: python3-numpy python3-pytest Requires: pyxalarm = %{version} -Requires: libbpf %define PYTHON_VERSION %{python3_version} %define PKGVER syssentry-%{version}-py%{PYTHON_VERSION}.egg-info @@ -89,6 +88,7 @@ This package provides Supports xalarm report for plugins %package -n pysentry_collect Summary: Supports collect in python immplementation Requires: sysSentry = %{version}-%{release} +Requires: libbpf %description -n pysentry_collect This package provides Supports collect for plugins @@ -140,14 +140,16 @@ rm -rf /var/run/sysSentry | : # sysSentry %attr(0500,root,root) %{_bindir}/sentryctl %attr(0550,root,root) %{_bindir}/syssentry -%attr(0550,root,root) %{_bindir}/ebpf_collector %attr(0750,root,root) %config(noreplace) %{_var}/log/sysSentry %attr(0750,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/tasks %attr(0750,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/plugins %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/inspect.conf %attr(0600,root,root) %{_unitdir}/sysSentry.service +# pysentry_collect %exclude %{python3_sitelib}/sentryCollector/collect_plugin.py +%exclude %{_bindir}/ebpf_collector + %exclude %{python3_sitelib}/xalarm/register_xalarm.py %exclude %{python3_sitelib}/xalarm/sentry_notify.py @@ -209,6 +211,7 @@ rm -rf /var/run/sysSentry | : %files -n pysentry_collect %attr(0550,root,root) %{python3_sitelib}/sentryCollector/collect_plugin.py +%attr(0550,root,root) %{_bindir}/ebpf_collector %files -n hbm_online_repair %attr(0550,root,root) %{_bindir}/hbm_online_repair @@ -217,6 +220,12 @@ rm -rf /var/run/sysSentry | : %attr(0550,root,root) %{python3_sitelib}/syssentry/bmc_alarm.py %changelog +* Fri May 30 2025 shixuantong - 1.0.3-11 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:optimize sysSentry dependencies + * Sat Mar 29 2025 shixuantong - 1.0.3-10 - Type:bugfix - CVE:NA -- Gitee