AIX agent
Wazuh provides an automated way of building AIX packages, keep in mind that to build an AIX package you must run this tool in an AIX system.
To create an AIX package follow these steps:
Requirements
curl
Download our wazuh-packages repository from GitHub and go to the aix directory.
$ curl -L https://github.com/wazuh/wazuh-packages/tarball/v4.9.2 | tar zx
$ cd wazuh-wazuh-packages-*
$ cd aix
Execute the generate_wazuh_packages.sh
script, with the different options you desire.
# ./generate_wazuh_packages.sh -h
Usage: ./generate_wazuh_packages.sh [OPTIONS]
-b, --branch <branch> Select Git branch or tag e.g. v4.9.2
-e, --environment Install all the packages necessaries to build the RPM package
-s, --store <rpm_directory> Directory to store the resulting RPM package. By default: /tmp/build
-p, --install-path <rpm_home> Installation path for the package. By default: /var
-c, --checksum <path> Compute the SHA512 checksum of the RPM package.
--chroot Create a chroot jail to build the package in /usr/pkg
-h, --help Shows this help
First, install the needed dependencies:
# ./generate_wazuh_packages.sh -e
Below, you will find some examples of how to build an AIX package.
# ./generate_wazuh_packages.sh -b v4.9.2
This will generate a 4.9.2 Wazuh agent AIX package.
# ./generate_wazuh_packages.sh -b v4.9.2 -c
This will generate a 4.9.2 Wazuh agent AIX package with checksum.
# ./generate_wazuh_packages.sh -b v4.9.2 -p /opt/ossec
This will generate a 4.9.2 Wazuh agent AIX package with /opt/ossec
as installation directory.