Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= telegraf |
4 |
PORTNAME= telegraf |
5 |
DISTVERSION= 1.6.3 |
5 |
DISTVERSION= 1.7.3 |
6 |
CATEGORIES= net-mgmt |
6 |
CATEGORIES= net-mgmt |
7 |
|
7 |
|
8 |
MAINTAINER= girgen@FreeBSD.org |
8 |
MAINTAINER= girgen@FreeBSD.org |
Lines 10-26
Link Here
|
10 |
|
10 |
|
11 |
LICENSE= MIT |
11 |
LICENSE= MIT |
12 |
|
12 |
|
13 |
BUILD_DEPENDS= go>=1.5.0:lang/go |
13 |
ONLY_FOR_ARCHS= amd64 i386 |
14 |
|
14 |
|
15 |
ONLY_FOR_ARCHS= amd64 |
15 |
BUILD_DEPENDS= go>=1.9:lang/go |
16 |
|
16 |
|
17 |
USE_RC_SUBR= telegraf |
17 |
USE_RC_SUBR= telegraf |
18 |
|
18 |
|
19 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
20 |
|
20 |
|
21 |
GH_ACCOUNT= influxdata:DEFAULT |
21 |
GH_ACCOUNT= influxdata |
|
|
22 |
GH_SUBDIR= src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT_DEFAULT} |
22 |
GH_TUPLE= collectd:go-collectd:2ce1445:collectd_org/src/collectd.org \ |
23 |
GH_TUPLE= collectd:go-collectd:2ce1445:collectd_org/src/collectd.org \ |
23 |
aerospike:aerospike-client-go:9701404:aerospike_client_go/src/github.com/aerospike/aerospike-client-go \ |
24 |
aerospike:aerospike-client-go:95e1ad7:aerospike_client_go/src/github.com/aerospike/aerospike-client-go \ |
24 |
amir:raidman:c74861f:raidman/src/github.com/amir/raidman \ |
25 |
amir:raidman:c74861f:raidman/src/github.com/amir/raidman \ |
25 |
apache:thrift:4aaa92ec:thrift/src/github.com/apache/thrift \ |
26 |
apache:thrift:4aaa92ec:thrift/src/github.com/apache/thrift \ |
26 |
aws:aws-sdk-go:c861d27d:aws_sdk_go/src/github.com/aws/aws-sdk-go \ |
27 |
aws:aws-sdk-go:c861d27d:aws_sdk_go/src/github.com/aws/aws-sdk-go \ |
Lines 49-59
Link Here
|
49 |
golang:protobuf:8ee7999:protobuf/src/github.com/golang/protobuf \ |
50 |
golang:protobuf:8ee7999:protobuf/src/github.com/golang/protobuf \ |
50 |
golang:snappy:7db9049:snappy/src/github.com/golang/snappy \ |
51 |
golang:snappy:7db9049:snappy/src/github.com/golang/snappy \ |
51 |
google:go-cmp:f94e52c:go_cmp/src/github.com/google/go-cmp \ |
52 |
google:go-cmp:f94e52c:go_cmp/src/github.com/google/go-cmp \ |
52 |
gorilla:mux:392c28f:mux/src/github.com/gorilla/mux \ |
53 |
gorilla:mux:53c1911:mux/src/github.com/gorilla/mux \ |
53 |
hailocab:go-hostpool:e80d13c:go_hostpool/src/github.com/hailocab/go-hostpool \ |
54 |
hailocab:go-hostpool:e80d13c:go_hostpool/src/github.com/hailocab/go-hostpool \ |
54 |
hashicorp:consul:63d2fc68:consul/src/github.com/hashicorp/consul \ |
55 |
hashicorp:consul:5174058:consul/src/github.com/hashicorp/consul \ |
|
|
56 |
influxdata:go-syslog:eecd51d:syslog/src/github.com/influxdata/go-syslog \ |
55 |
influxdata:tail:c434825:tail/src/github.com/influxdata/tail \ |
57 |
influxdata:tail:c434825:tail/src/github.com/influxdata/tail \ |
56 |
influxdata:toml:5d1d907:toml/src/github.com/influxdata/toml \ |
58 |
influxdata:toml:2a2e301:toml/src/github.com/influxdata/toml \ |
57 |
influxdata:wlog:7c63b0a:wlog/src/github.com/influxdata/wlog \ |
59 |
influxdata:wlog:7c63b0a:wlog/src/github.com/influxdata/wlog \ |
58 |
jackc:pgx:63f58fd:pgx/src/github.com/jackc/pgx \ |
60 |
jackc:pgx:63f58fd:pgx/src/github.com/jackc/pgx \ |
59 |
jmespath:go-jmespath:bd40a43:go_jmespath/src/github.com/jmespath/go-jmespath \ |
61 |
jmespath:go-jmespath:bd40a43:go_jmespath/src/github.com/jmespath/go-jmespath \ |
Lines 61-66
Link Here
|
61 |
kardianos:service:6d3a0ee:service/src/github.com/kardianos/service \ |
63 |
kardianos:service:6d3a0ee:service/src/github.com/kardianos/service \ |
62 |
kballard:go-shellquote:d8ec1a6:go_shellquote/src/github.com/kballard/go-shellquote \ |
64 |
kballard:go-shellquote:d8ec1a6:go_shellquote/src/github.com/kballard/go-shellquote \ |
63 |
matttproud:golang_protobuf_extensions:c12348c:golang_protobuf_extensions/src/github.com/matttproud/golang_protobuf_extensions \ |
65 |
matttproud:golang_protobuf_extensions:c12348c:golang_protobuf_extensions/src/github.com/matttproud/golang_protobuf_extensions \ |
|
|
66 |
Microsoft:ApplicationInsights-Go:3612f58:application_insights/src/github.com/Microsoft/ApplicationInsights-Go \ |
64 |
Microsoft:go-winio:ce2922f:go_winio/src/github.com/Microsoft/go-winio \ |
67 |
Microsoft:go-winio:ce2922f:go_winio/src/github.com/Microsoft/go-winio \ |
65 |
miekg:dns:99f84ae:dns/src/github.com/miekg/dns \ |
68 |
miekg:dns:99f84ae:dns/src/github.com/miekg/dns \ |
66 |
mitchellh:mapstructure:d0303fe:mapstructure/src/github.com/mitchellh/mapstructure \ |
69 |
mitchellh:mapstructure:d0303fe:mapstructure/src/github.com/mitchellh/mapstructure \ |
Lines 67-73
Link Here
|
67 |
multiplay:go-ts3:07477f4:go_ts3/src/github.com/multiplay/go-ts3 \ |
70 |
multiplay:go-ts3:07477f4:go_ts3/src/github.com/multiplay/go-ts3 \ |
68 |
naoina:go-stringutil:6b638e9:go_stringutil/src/github.com/naoina/go-stringutil \ |
71 |
naoina:go-stringutil:6b638e9:go_stringutil/src/github.com/naoina/go-stringutil \ |
69 |
nats-io:gnatsd:393bbb7:gnatsd/src/github.com/nats-io/gnatsd \ |
72 |
nats-io:gnatsd:393bbb7:gnatsd/src/github.com/nats-io/gnatsd \ |
70 |
nats-io:go-nats:ea95856:nats/src/github.com/nats-io/nats \ |
73 |
nats-io:go-nats:ea95856:nats/src/github.com/nats-io/go-nats \ |
71 |
nats-io:nuid:289cccf:nuid/src/github.com/nats-io/nuid \ |
74 |
nats-io:nuid:289cccf:nuid/src/github.com/nats-io/nuid \ |
72 |
nsqio:go-nsq:eee57a3:go_nsq/src/github.com/nsqio/go-nsq \ |
75 |
nsqio:go-nsq:eee57a3:go_nsq/src/github.com/nsqio/go-nsq \ |
73 |
opencontainers:runc:89ab7f2c:runc/src/github.com/opencontainers/runc \ |
76 |
opencontainers:runc:89ab7f2c:runc/src/github.com/opencontainers/runc \ |
Lines 90-96
Link Here
|
90 |
Shopify:sarama:3b1b388:sarama/src/github.com/Shopify/sarama \ |
93 |
Shopify:sarama:3b1b388:sarama/src/github.com/Shopify/sarama \ |
91 |
Sirupsen:logrus:61e43dc:logrus/src/github.com/Sirupsen/logrus \ |
94 |
Sirupsen:logrus:61e43dc:logrus/src/github.com/Sirupsen/logrus \ |
92 |
soniah:gosnmp:f15472a:gosnmp/src/github.com/soniah/gosnmp \ |
95 |
soniah:gosnmp:f15472a:gosnmp/src/github.com/soniah/gosnmp \ |
93 |
sparrc:gdm:81089da:gdm/src/github.com/sparrc/gdm \ |
|
|
94 |
StackExchange:wmi:f3e2bae:wmi/src/github.com/StackExchange/wmi \ |
96 |
StackExchange:wmi:f3e2bae:wmi/src/github.com/StackExchange/wmi \ |
95 |
streadway:amqp:63795da:amqp/src/github.com/streadway/amqp \ |
97 |
streadway:amqp:63795da:amqp/src/github.com/streadway/amqp \ |
96 |
stretchr:objx:facf9a8:objx/src/github.com/stretchr/objx \ |
98 |
stretchr:objx:facf9a8:objx/src/github.com/stretchr/objx \ |
Lines 102-113
Link Here
|
102 |
wvanbergen:kazoo-go:9689573:kazoo_go/src/github.com/wvanbergen/kazoo-go \ |
104 |
wvanbergen:kazoo-go:9689573:kazoo_go/src/github.com/wvanbergen/kazoo-go \ |
103 |
yuin:gopher-lua:66c871e:gopher_lua/src/github.com/yuin/gopher-lua \ |
105 |
yuin:gopher-lua:66c871e:gopher_lua/src/github.com/yuin/gopher-lua \ |
104 |
zensqlmonitor:go-mssqldb:ffe5510:go_mssqldb/src/github.com/zensqlmonitor/go-mssqldb \ |
106 |
zensqlmonitor:go-mssqldb:ffe5510:go_mssqldb/src/github.com/zensqlmonitor/go-mssqldb \ |
|
|
107 |
cloudfoundry:clock:e9dc86bb:clock/src/code.cloudfoundry.org/clock \ |
108 |
google:go-genproto:11c7f9e:genproto/src/google.golang.org/genproto \ |
109 |
grpc:grpc-go:de2209a:grpc/src/google.golang.org/grpc \ |
105 |
golang:crypto:dc137be:crypto/src/golang.org/x/crypto \ |
110 |
golang:crypto:dc137be:crypto/src/golang.org/x/crypto \ |
106 |
golang:lint:470b6b0:lint/src/golang.org/x/lint \ |
111 |
golang:net:a337091:net/src/golang.org/x/net \ |
107 |
golang:net:f249948:net/src/golang.org/x/net \ |
|
|
108 |
golang:sys:7397344:sys/src/golang.org/x/sys \ |
112 |
golang:sys:7397344:sys/src/golang.org/x/sys \ |
109 |
golang:text:506f9d5:text/src/golang.org/x/text \ |
113 |
golang:text:506f9d5:text/src/golang.org/x/text \ |
110 |
golang:tools:a5b4c53f:tools/src/golang.org/x/tools \ |
|
|
111 |
fatih:pool:6e328e6:pool_v2/src/gopkg.in/fatih/pool.v2 \ |
114 |
fatih:pool:6e328e6:pool_v2/src/gopkg.in/fatih/pool.v2 \ |
112 |
gorethink:gorethink:7ab832f:gorethink_v3/src/gopkg.in/gorethink/gorethink.v3 \ |
115 |
gorethink:gorethink:7ab832f:gorethink_v3/src/gopkg.in/gorethink/gorethink.v3 \ |
113 |
go-asn1-ber:asn1-ber:4e86f43:asn1_ber/src/gopkg.in/asn1-ber.v1 \ |
116 |
go-asn1-ber:asn1-ber:4e86f43:asn1_ber/src/gopkg.in/asn1-ber.v1 \ |
Lines 118-142
Link Here
|
118 |
go-yaml:yaml:4c78c97:yaml/src/gopkg.in/yaml.v2 |
121 |
go-yaml:yaml:4c78c97:yaml/src/gopkg.in/yaml.v2 |
119 |
|
122 |
|
120 |
SUB_FILES= telegraf |
123 |
SUB_FILES= telegraf |
121 |
SUB_LIST+= TELEGRAF_PIDDIR=${TELEGRAF_PIDDIR} |
124 |
SUB_LIST= TELEGRAF_USER=${TELEGRAF_USER} \ |
122 |
PLIST_SUB= TELEGRAF_PIDDIR=${TELEGRAF_PIDDIR} |
125 |
TELEGRAF_GROUP=${TELEGRAF_GROUP} \ |
|
|
126 |
TELEGRAF_LOGDIR=${TELEGRAF_LOGDIR} |
127 |
PLIST_SUB= TELEGRAF_USER=${TELEGRAF_USER} \ |
128 |
TELEGRAF_GROUP=${TELEGRAF_GROUP} \ |
129 |
TELEGRAF_LOGDIR=${TELEGRAF_LOGDIR} |
123 |
|
130 |
|
124 |
post-patch: |
131 |
TELEGRAF_USER= telegraf |
125 |
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} |
132 |
TELEGRAF_GROUP= telegraf |
126 |
@cd ${WRKSRC} && ${MV} appveyor.yml CHANGELOG.md CONTRIBUTING.md Godeps \ |
|
|
127 |
LICENSE Makefile README.md accumulator.go agent aggregator.go cmd docs etc filter \ |
128 |
input.go internal logger metric metric.go output.go plugins processor.go scripts selfstat testutil \ |
129 |
${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} |
130 |
${LN} -s nats ${WRKSRC}/src/github.com/nats-io/go-nats |
131 |
|
133 |
|
|
|
134 |
USERS= ${TELEGRAF_USER} |
135 |
GROUPS= ${TELEGRAF_GROUP} |
136 |
|
137 |
TELEGRAF_LOGDIR=/var/log/${PORTNAME} |
138 |
|
132 |
do-build: |
139 |
do-build: |
133 |
@cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && \ |
140 |
@cd ${WRKSRC}/${GH_SUBDIR} && \ |
134 |
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./... |
141 |
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./cmd/telegraf |
135 |
|
142 |
|
136 |
do-install: |
143 |
do-install: |
|
|
144 |
${MKDIR} ${STAGEDIR}${TELEGRAF_LOGDIR} |
137 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
145 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
138 |
${INSTALL_DATA} \ |
146 |
${INSTALL_DATA} \ |
139 |
${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT}/etc/${PORTNAME}.conf \ |
147 |
${WRKSRC}/${GH_SUBDIR}/etc/${PORTNAME}.conf \ |
140 |
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
148 |
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
141 |
|
149 |
|
142 |
.include <bsd.port.mk> |
150 |
.include <bsd.port.mk> |