Wazuh provides an automated way of building HPUX packages, keep in mind that to build an HPUX package you must run this tool in an HPUX system.
To create an HPUX package follow these steps:
Download our wazuh-packages repository from GitHub and go to the
$ curl -L https://github.com/wazuh/wazuh-packages/tarball/4.0 | tar zx $ cd wazuh-wazuh-packages-* $ cd hp-ux
generate_wazuh_packages.sh script, with the different options you desire.
# ./generate_wazuh_packages.sh -h
Usage: ./generate_wazuh_packages.sh [OPTIONS] -e Install all the packages necessaries to build the TAR package -b <branch> Select Git branch. Example v4.0.4 -s <tar_directory> Directory to store the resulting tar package. By default, an output folder will be created. -p <tar_home> Installation path for the package. By default: /var -c, --checksum Compute the SHA512 checksum of the TAR package. -d <path_to_depot>, --depot Change the path to depothelper package (by default current path). -h Shows this help
Below, you will find an example of how to build HPUX packages.
First, install the needed dependencies:
# ./generate_wazuh_packages.sh -e
Below, you will find some examples of how to build an HPUX package.
# ./generate_wazuh_packages.sh -b v4.0.4
This will generate a 4.0.4 Wazuh agent HPUX package.
# ./generate_wazuh_packages.sh -b v4.0.4 -c
This will generate a 4.0.4 Wazuh agent HPUX package with checksum.
# ./generate_wazuh_packages.sh -b v4.0.4 -p /opt
This will generate a 4.0.4 Wazuh agent HPUX package with
opt as installation directory.