From 8c9cf931f27fd827b57e6c3e5e438542a9cd72bf Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Sun, 25 Sep 2022 00:40:47 -0500 Subject: security/wazuh-indexer: New port: A highly scalable, full-text search and analytics engine Wazuh is a free and open source platform used for threat prevention, detection, and response. It is capable of protecting workloads across on-premises, virtualized, containerized, and cloud-based environments. Wazuh solution consists of an endpoint security agent, deployed to the monitored systems, and a management server, which collects and analyzes data gathered by the agents. Besides, Wazuh has been fully integrated with the Elastic Stack, providing a search engine and data visualization tool that allows users to navigate through their security alerts. --- security/Makefile | 1 + security/wazuh-indexer/Makefile | 33 ++++++++++++++ security/wazuh-indexer/distinfo | 3 ++ security/wazuh-indexer/files/pkg-message.in | 69 +++++++++++++++++++++++++++++ security/wazuh-indexer/pkg-descr | 9 ++++ 5 files changed, 115 insertions(+) create mode 100644 security/wazuh-indexer/Makefile create mode 100644 security/wazuh-indexer/distinfo create mode 100644 security/wazuh-indexer/files/pkg-message.in create mode 100644 security/wazuh-indexer/pkg-descr diff --git a/security/Makefile b/security/Makefile index 35caf7d9f56e..077cac0c38a7 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1277,6 +1277,7 @@ SUBDIR += vxquery SUBDIR += wapiti SUBDIR += wazuh-agent + SUBDIR += wazuh-indexer SUBDIR += wazuh-manager SUBDIR += webfwlog SUBDIR += weggli diff --git a/security/wazuh-indexer/Makefile b/security/wazuh-indexer/Makefile new file mode 100644 index 000000000000..7ebb9bcf199f --- /dev/null +++ b/security/wazuh-indexer/Makefile @@ -0,0 +1,33 @@ +PORTNAME= wazuh +PORTVERSION= 4.3.8 +CATEGORIES= security +MASTER_SITES= LOCAL/acm/${PORTNAME}/ +PKGNAMESUFFIX= -indexer +DISTFILES= ${PORTNAME}${PKGNAMESUFFIX}.yml +DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= A highly scalable, full-text search and analytics engine +WWW= https://wazuh.com/ + +LICENSE= GPLv2 + +RUN_DEPENDS= ${LOCALBASE}/lib/opensearch/bin/opensearch:textproc/opensearch + +NO_BUILD= yes + +PLIST_FILES= etc/wazuh-indexer/wazuh-indexer.yml + +SUB_FILES= pkg-message + +ETCDIR= ${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX} + +do-extract: + @${MKDIR} ${WRKSRC} + ${CP} ${_DISTDIR}/wazuh-indexer.yml ${WRKSRC} + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/wazuh-indexer + ${INSTALL_DATA} ${WRKSRC}/wazuh-indexer.yml ${STAGEDIR}${PREFIX}/etc/wazuh-indexer/ + +.include diff --git a/security/wazuh-indexer/distinfo b/security/wazuh-indexer/distinfo new file mode 100644 index 000000000000..cb09fde899d7 --- /dev/null +++ b/security/wazuh-indexer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1663822747 +SHA256 (wazuh-4.3.8/wazuh-indexer.yml) = f6bc1d4de01742268ca42ef285896c31b7a31fb82f0c9f13de32d383fa3669e0 +SIZE (wazuh-4.3.8/wazuh-indexer.yml) = 2123 diff --git a/security/wazuh-indexer/files/pkg-message.in b/security/wazuh-indexer/files/pkg-message.in new file mode 100644 index 000000000000..156f632b9b72 --- /dev/null +++ b/security/wazuh-indexer/files/pkg-message.in @@ -0,0 +1,69 @@ +[ +{ type: install + message: <