COMMENT =	collect monitoring data from logs for timeseries databases

GH_ACCOUNT =	google
GH_PROJECT =	mtail
GH_TAGNAME =	v3.0.8

MODGO_MODNAME =	github.com/google/mtail/v3
MODGO_VERSION =	${GH_TAGNAME}

CATEGORIES =	sysutils

HOMEPAGE =	https://google.github.io/mtail

MAINTAINER =	Abel Abraham Camarillo Ojeda <acamari@verlet.org>

# Apache-2.0
PERMIT_PACKAGE = Yes

WANTLIB += c pthread

MODULES =	lang/go

# workaround go.port.mk not coping with MODGO_MODULES etc unless the
# main distfile is distributed by proxy.golang.org
DISTFILES =	${DISTNAME_ESC}${EXTRACT_SUFX}
SITES =		https://github.com/google/mtail/archive/refs/tags/${MODGO_VERSION}.zip?x=/
post-extract:
	mkdir -p ${WRKDIR}/github.com/google/mtail
	mv ${WRKDIR}/mtail-${MODGO_VERSION:S/v//} ${WRKDIR}/github.com/google/mtail/v3@${MODGO_VERSION}

.include "modules.inc"
.include <bsd.port.mk>
