summaryrefslogtreecommitdiff
path: root/security/wazuh-indexer/Makefile
blob: 5b0f136115bc819467c9e1bc488ae79bbb9977c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PORTNAME=	wazuh
PORTVERSION=	4.9.2
CATEGORIES=	security
MASTER_SITES=	LOCAL/acm/${PORTNAME}/
PKGNAMESUFFIX=	-indexer
DISTFILES=	${PORTNAME}-${PORTVERSION}${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/opensearch213

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}/${PORTNAME}-${PORTVERSION}-indexer.yml ${WRKSRC}/wazuh-indexer.yml

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}
	${INSTALL_DATA} ${WRKSRC}/wazuh-indexer.yml \
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}/wazuh-indexer.yml
	
.include <bsd.port.mk>