Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2871 add debug symbols to DEBs packages #2872

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions debs/SPECS/wazuh-agent/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ Depends: ${shlibs:Depends}, libc6 (>= 2.7), lsb-release, debconf, adduser
Conflicts: ossec-hids-agent, wazuh-manager, ossec-hids, wazuh-api
Breaks: ossec-hids-agent, wazuh-manager, ossec-hids
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: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring

Package: wazuh-agent-dbg
Section: debug
Priority: optional
Architecture: any
Depends: wazuh-agent
Description: Debug symbols for wazuh-agent, this package contains debug symbols for debugging wazuh-agent.
2 changes: 1 addition & 1 deletion debs/SPECS/wazuh-agent/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ override_dh_auto_clean:


override_dh_strip:
dh_strip --no-automatic-dbgsym
dh_strip --dbg-package=wazuh-agent-dbg

.PHONY: override_dh_install override_dh_strip override_dh_auto_clean override_dh_auto_build override_dh_auto_configure
7 changes: 7 additions & 0 deletions debs/SPECS/wazuh-manager/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ Suggests: expect
Conflicts: ossec-hids-agent, wazuh-agent, ossec-hids, wazuh-api
Replaces: wazuh-api
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: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring

Package: wazuh-manager-dbg
Section: debug
Priority: optional
Architecture: any
Depends: wazuh-manager
Description: Debug symbols for wazuh-manager, this package contains debug symbols for debugging wazuh-manager.
2 changes: 1 addition & 1 deletion debs/SPECS/wazuh-manager/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ override_dh_auto_clean:
$(MAKE) -C src clean

override_dh_strip:
dh_strip --no-automatic-dbgsym --exclude=dh_strip --no-automatic-dbgsym --exclude=${PKG_DIR}${INSTALLATION_DIR}/framework/python
dh_strip --dbg-package=wazuh-manager-dbg --exclude=dh_strip --exclude=${PKG_DIR}${INSTALLATION_DIR}/framework/python

.PHONY: override_dh_install override_dh_strip override_dh_auto_clean override_dh_auto_build override_dh_auto_configure override_dh_fixperms
5 changes: 5 additions & 0 deletions debs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,19 @@ else
fi

deb_file="wazuh-${build_target}_${wazuh_version}-${package_release}"
symbols_deb_file="wazuh-${build_target}-dbg_${wazuh_version}-${package_release}"
if [[ "${architecture_target}" == "ppc64le" ]]; then
deb_file="${deb_file}_ppc64el.deb"
symbols_deb_file="${symbols_deb_file}_ppc64el.deb"
else
deb_file="${deb_file}_${architecture_target}.deb"
symbols_deb_file="${symbols_deb_file}_${architecture_target}.deb"
fi
pkg_path="${build_dir}/${build_target}"

if [[ "${checksum}" == "yes" ]]; then
cd ${pkg_path} && sha512sum ${deb_file} > /var/local/checksum/${deb_file}.sha512
cd ${pkg_path} && sha512sum ${symbols_deb_file} > /var/local/checksum/${symbols_deb_file}.sha512
fi
mv ${pkg_path}/${deb_file} /var/local/wazuh
mv ${pkg_path}/${symbols_deb_file} /var/local/wazuh
Loading