Bug 271376 - security/wazuh-agent: Typo underscore instead of dash in pkg-message
Summary: security/wazuh-agent: Typo underscore instead of dash in pkg-message
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 07:58 UTC by lambert
Modified: 2023-05-30 04:38 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lambert 2023-05-12 07:58:16 UTC
Step 5 in https://cgit.freebsd.org/ports/tree/security/wazuh-agent/files/pkg-message.in instructs the user to run:
`service wazuh_agent start`

Which then throws the error:
```
wazuh_agent does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
```

And that's because the file created under `/usr/local/etc/rc.d` is actually `wazuh-agent`, so the correct command is:
`service wazuh-agent start`

Just change that one underscore in `service wazuh_agent start` to a dash and I think that's all there is to fix.
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-05-15 20:47:17 UTC
(In reply to lambert from comment #0)
Thanks for your PR. I'll modified it on next version of wazuh-agent
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-05-30 04:26:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=55048ca1c75c7dde6361b87249ff8c1d48aa2485

commit 55048ca1c75c7dde6361b87249ff8c1d48aa2485
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2023-05-30 04:14:28 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-05-30 04:24:56 +0000

    security/wazuh-*: Update to 4.4.3

    - Mark IGNORE on FreeBSD 12-aarch64
    - Use makepatch to generate patch files
    - Fix typo at wazuh-agent and wazuh-manager pkg-message files [1]
    - Fix some linking issues when devel/libsysinfo is installed (using ports).
      wazuh-manager compile/install a library with the same name like libsysinfo and
      it is used by syscollector feature.
    - wazuh-dashboard use opensearch-dashboards 2.7.0
    - Some other modifications

    ChangeLog at:   https://github.com/wazuh/wazuh/releases
    PR:             271376
    Reported by:    lambert _ at _ sanesecurityguy.com [1]

 security/wazuh-agent/Makefile                      |    3 +-
 security/wazuh-agent/distinfo                      |   78 +-
 security/wazuh-agent/files/patch-api_Makefile      |    6 +-
 .../wazuh-agent/files/patch-framework_Makefile     |    4 +-
 security/wazuh-agent/files/patch-src-Makefile      |   14 +-
 ...txt => patch-src_data__provider_CMakeLists.txt} |    6 +-
 ...s_string.c => patch-src_rootcheck_os__string.c} |    4 +-
 ...atch-src_shared__modules_dbsync_CMakeLists.txt} |    6 +-
 ...patch-src_shared__modules_rsync_CMakeLists.txt} |    6 +-
 ...azuh__modules_syscollector_CMakeLists.txt (new) |   11 +
 .../files/patch-tools_mitre_mitredb.py}            |    6 +-
 security/wazuh-agent/files/pkg-message.in          |    6 +-
 security/wazuh-agent/pkg-plist                     |   13 +
 security/wazuh-dashboard/Makefile                  |    5 +-
 security/wazuh-dashboard/distinfo                  |   10 +-
 security/wazuh-dashboard/pkg-plist                 |   14 +
 security/wazuh-indexer/Makefile                    |    2 +-
 security/wazuh-indexer/distinfo                    |    6 +-
 security/wazuh-manager/Makefile                    |   23 +-
 security/wazuh-manager/distinfo                    |  112 +-
 security/wazuh-manager/files/patch-api_Makefile    |    6 +-
 .../wazuh-manager/files/patch-framework_Makefile   |    4 +-
 .../{patch-src-Makefile => patch-src_Makefile}     |   14 +-
 .../patch-src_data__provider_CMakeLists.txt (new)  |   11 +
 ... => patch-src_external_cpython_Makefile.pre.in} |   30 +-
 ...s_string.c => patch-src_rootcheck_os__string.c} |    4 +-
 ...src_shared__modules_dbsync_CMakeLists.txt (new) |   11 +
 ...-src_shared__modules_rsync_CMakeLists.txt (new) |   11 +
 ...azuh__modules_syscollector_CMakeLists.txt (new) |   11 +
 .../files/patch-tools_mitre_mitredb.py}            |    6 +-
 security/wazuh-manager/files/pkg-message.in        |    6 +-
 security/wazuh-manager/pkg-plist                   | 3928 ++++++++++++++++++--
 security/wazuh-server/Makefile                     |    2 +-
 security/wazuh-server/distinfo                     |   18 +-
 34 files changed, 3840 insertions(+), 557 deletions(-)
Comment 3 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-05-30 04:38:49 UTC
Thanks for your report