security/wazuh-agent: Reimplement getPackages() using SQLite
- getPackages() is a function used to get a set of information about the packages installed on the system where the manager and agent are installed. To obtain this information, pkg-query(8) was used; however, prior to this commit, it was assumed that pkg(8) was installed on the system, which could be wrong, especially on systems such as jails, where pkg(8) is normally used from the host. With this change, we leverage SQLite to read the pkg(8) database and obtain information about the packages, which is also much more efficient than executing a command. This also fixes the segmentation fault in wazuh-modulesd when this condition occurs.
- Bump PORTREVISION