1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net-mgmt/telegraf/Makefile
Ashish SHUKLA a0676cbde9
all: Bump after lang/go122 update
MFH:		2024Q2
2024-05-13 17:56:04 +00:00

43 lines
975 B
Makefile

PORTNAME= telegraf
DISTVERSIONPREFIX=v
DISTVERSION= 1.30.2
PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= girgen@FreeBSD.org
COMMENT= Time-series data collection
WWW= https://influxdata.com/time-series-platform/telegraf/
LICENSE= MIT
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7
USES= go:1.22,modules
USE_RC_SUBR= telegraf
GO_MODULE= github.com/influxdata/telegraf
GO_BUILDFLAGS= -ldflags "-X main.goos=freebsd -X main.goarch=${ARCH} -X main.version=${DISTVERSION}"
GO_TARGET= ./cmd/telegraf
SUB_FILES= telegraf
SUB_LIST= TELEGRAF_USER=${TELEGRAF_USER} \
TELEGRAF_GROUP=${TELEGRAF_GROUP} \
TELEGRAF_LOGDIR=${TELEGRAF_LOGDIR}
PLIST_SUB= TELEGRAF_USER=${TELEGRAF_USER} \
TELEGRAF_GROUP=${TELEGRAF_GROUP} \
TELEGRAF_LOGDIR=${TELEGRAF_LOGDIR}
TELEGRAF_USER= telegraf
TELEGRAF_GROUP= telegraf
USERS= ${TELEGRAF_USER}
GROUPS= ${TELEGRAF_GROUP}
TELEGRAF_LOGDIR=/var/log/${PORTNAME}
post-install:
${MKDIR} ${STAGEDIR}${TELEGRAF_LOGDIR}
.include <bsd.port.mk>