-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2162 from wazuh/2161-rpm-builtin-symbols
Add debug symbols to debug packages binary
- Loading branch information
Showing
2 changed files
with
15 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> - 4.3.11 | ||
- More info: https://documentation.wazuh.com/current/release-notes/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> - 4.3.11 | ||
- More info: https://documentation.wazuh.com/current/release-notes/ | ||
|