blob: 38a1a1923ce43540c07f8e1b47b5a5c5bba449a4 (
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
35
36
37
38
39
40
41
42
|
PORTNAME= telegraf
DISTVERSIONPREFIX=v
DISTVERSION= 1.27.4
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 i386
USES= go: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>
|