Skip to content

Commit

Permalink
Merge pull request #2162 from wazuh/2161-rpm-builtin-symbols
Browse files Browse the repository at this point in the history
Add debug symbols to debug packages binary
  • Loading branch information
teddytpc1 authored Apr 19, 2023
2 parents 8078c00 + 9e40833 commit 7feb901
Showing 2 changed files with 15 additions and 18 deletions.
16 changes: 7 additions & 9 deletions rpms/SPECS/wazuh-agent.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
%if %{_debugenabled} == yes
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post %{nil}
%define __strip /bin/true
%endif

Summary: Wazuh helps you to gain security visibility into your infrastructure by monitoring hosts at an operating system and application level. It provides the following capabilities: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring
Name: wazuh-agent
Version: 4.3.11
@@ -171,9 +178,6 @@ install -m 0640 src/init/*.sh ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/
cp src/VERSION ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/agent_installation_scripts/src/
cp src/REVISION ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/agent_installation_scripts/src/

if [ %{_debugenabled} = "yes" ]; then
%{_rpmconfigdir}/find-debuginfo.sh
fi
exit 0

%pre
@@ -610,12 +614,6 @@ rm -fr %{buildroot}
%dir %attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud
%attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud/*

%if %{_debugenabled} == "yes"
/usr/lib/debug/%{_localstatedir}/*
/usr/src/debug/%{name}-%{version}/*
%endif


%changelog
* Thu Dec 08 2022 support <info@wazuh.com> - 4.3.11
- More info: https://documentation.wazuh.com/current/release-notes/
17 changes: 8 additions & 9 deletions rpms/SPECS/wazuh-manager.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
%if %{_debugenabled} == yes
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post %{nil}
%define __strip /bin/true
%endif

Summary: Wazuh helps you to gain security visibility into your infrastructure by monitoring hosts at an operating system and application level. It provides the following capabilities: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring
Name: wazuh-manager
Version: 4.3.11
@@ -21,6 +28,7 @@ BuildRequires: coreutils glibc-devel automake autoconf libtool policycoreutils-p

ExclusiveOS: linux


%description
Wazuh helps you to gain security visibility into your infrastructure by monitoring
hosts at an operating system and application level. It provides the following capabilities:
@@ -166,9 +174,6 @@ install -m 0640 src/init/*.sh ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/
cp src/VERSION ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/manager_installation_scripts/src/
cp src/REVISION ${RPM_BUILD_ROOT}%{_localstatedir}/packages_files/manager_installation_scripts/src/

if [ %{_debugenabled} = "yes" ]; then
%{_rpmconfigdir}/find-debuginfo.sh
fi
exit 0

%pre
@@ -826,12 +831,6 @@ rm -fr %{buildroot}
%dir %attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud
%attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud/*

%if %{_debugenabled} == "yes"
/usr/lib/debug/%{_localstatedir}/*
/usr/src/debug/%{name}-%{version}/*
%endif


%changelog
* Thu Dec 08 2022 support <info@wazuh.com> - 4.3.11
- More info: https://documentation.wazuh.com/current/release-notes/

0 comments on commit 7feb901

Please sign in to comment.