Hi sayontani,
Note: As requirements to create the custom package you need to have installed docker and git.
First, you need to download wazuh-packages repository and place it in the corresponding directory where the package generation script is located
If you want to install wazuh manager with 3.13.1 version in /xyz/ossec location use this following command:
./generate_debian_package.sh -b v3.13.1 -t manager -p /xyz/ossec
Using -b to indicate the wazuh branch version and -p to set the installation path. You can see all available parameters using -h.
After waiting for the process to finish, you will find the package in your output directory. If we install that custom package, we see how the installation directory has been set correctly.
cat /etc/ossec-init.conf
DIRECTORY="/xyz/ossec"
NAME="Wazuh"
VERSION="v3.13.1"
REVISION="31309"
DATE="Mon 31 Aug 2020 12:11:27 PM CEST"
TYPE="server"
I hope this information is helpful to you.
Regards.