2016-04-12 00:53:21 +02:00
|
|
|
# Created by: Stefan Lambrev <cheffo@freebsd-bg.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= telegraf
|
2016-08-24 09:58:19 +02:00
|
|
|
DISTVERSION= 1.0.0-rc1
|
2016-04-12 00:53:21 +02:00
|
|
|
CATEGORIES= net-mgmt
|
|
|
|
|
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
|
|
|
COMMENT= Time-series data collection
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
|
2016-04-14 13:12:31 +02:00
|
|
|
BUILD_DEPENDS= go>=1.5.0:lang/go
|
2016-04-12 00:53:21 +02:00
|
|
|
|
2016-04-12 16:12:57 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
2016-04-12 00:53:21 +02:00
|
|
|
|
|
|
|
USE_RC_SUBR= telegraf
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
|
|
|
|
GH_ACCOUNT= influxdata:DEFAULT
|
2016-08-23 23:55:34 +02:00
|
|
|
GH_TUPLE= Shopify:sarama:8aadb47:sarama \
|
|
|
|
Sirupsen:logrus:219c8cb:logrus \
|
|
|
|
aerospike:aerospike-client-go:45863b7:aerospike_client_go \
|
|
|
|
amir:raidman:53c1b96:raidman \
|
|
|
|
aws:aws-sdk-go:13a1206:aws_sdk_go \
|
|
|
|
beorn7:perks:3ac7bf7:perks \
|
|
|
|
cenkalti:backoff:4dc7767:backoff \
|
|
|
|
couchbase:go-couchbase:cb66431:go_couchbase \
|
|
|
|
couchbase:gomemcached:a5ea635:gomemcached \
|
2016-04-12 00:53:21 +02:00
|
|
|
couchbase:goutils:5823a0c:goutils \
|
2016-08-23 23:55:34 +02:00
|
|
|
dancannon:gorethink:e7cac92:gorethink \
|
2016-04-12 00:53:21 +02:00
|
|
|
davecgh:go-spew:5215b55:go_spew \
|
2016-08-23 23:55:34 +02:00
|
|
|
docker:engine-api:8924d69:engine_api \
|
|
|
|
docker:go-connections:f549a93:go_connections \
|
|
|
|
docker:go-units:5d2041e:go_units \
|
2016-04-12 00:53:21 +02:00
|
|
|
eapache:go-resiliency:b86b1ec:go_resiliency \
|
2016-08-23 23:55:34 +02:00
|
|
|
eapache:queue:ded5959:queue \
|
|
|
|
eclipse:paho.mqtt.golang:0f7a459:paho_mqtt_golang \
|
|
|
|
go-sql-driver:mysql:1fca743:mysql \
|
|
|
|
gobwas:glob:49571a1:glob \
|
|
|
|
golang:protobuf:552c7b9:protobuf \
|
|
|
|
golang:snappy:427fb6f:snappy \
|
2016-04-12 00:53:21 +02:00
|
|
|
gonuts:go-shellquote:e842a11:go_shellquote \
|
2016-08-23 23:55:34 +02:00
|
|
|
gorilla:context:1ea2538:context \
|
|
|
|
gorilla:mux:c9e326e:mux \
|
2016-04-12 00:53:21 +02:00
|
|
|
hailocab:go-hostpool:e80d13c:go_hostpool \
|
2016-08-23 23:55:34 +02:00
|
|
|
hashicorp:consul:5aa9045:consul \
|
|
|
|
hpcloud:tail:b294095:tail \
|
|
|
|
influxdata:config:b79f682:config \
|
|
|
|
influxdata:influxdb:e094138:influxdb \
|
|
|
|
influxdata:toml:af4df43:toml \
|
|
|
|
kardianos:osext:29ae4ff:osext \
|
|
|
|
kardianos:service:5e33559:service \
|
2016-04-12 00:53:21 +02:00
|
|
|
klauspost:crc32:19b0b33:crc32 \
|
2016-08-23 23:55:34 +02:00
|
|
|
lib:pq:e182dc4:pq \
|
|
|
|
matttproud:golang_protobuf_extensions:d0c3fe8:golang_protobuf_extensions \
|
|
|
|
miekg:dns:cce6c13:dns \
|
2016-04-12 00:53:21 +02:00
|
|
|
mreiferson:go-snappystream:028eae7:go_snappystream \
|
|
|
|
naoina:go-stringutil:6b638e9:go_stringutil \
|
2016-08-23 23:55:34 +02:00
|
|
|
nats-io:nats:b13fc9d:nats \
|
|
|
|
nats-io:nuid:4f84f5f:nuid \
|
|
|
|
nsqio:go-nsq:0b80d6f:go_nsq \
|
|
|
|
opencontainers:runc:89ab7f2:runc \
|
|
|
|
prometheus:client_golang:18acf99:client_golang \
|
2016-04-12 00:53:21 +02:00
|
|
|
prometheus:client_model:fa8ad6f:client_model \
|
2016-08-23 23:55:34 +02:00
|
|
|
prometheus:common:e8eabff:common \
|
|
|
|
prometheus:procfs:406e5b7:procfs \
|
|
|
|
samuel:go-zookeeper:218e9c8:go_zookeeper \
|
2016-08-05 16:15:46 +02:00
|
|
|
shirou:gopsutil:4d0c402:gopsutil \
|
2016-08-23 23:55:34 +02:00
|
|
|
soniah:gosnmp:eb32571:gosnmp \
|
|
|
|
sparrc:gdm:2b7833e:gdm \
|
|
|
|
streadway:amqp:b4f3cea:amqp \
|
|
|
|
stretchr:testify:1f4a164:testify \
|
2016-08-05 16:15:46 +02:00
|
|
|
vjeantet:grok:83bfdfd:grok \
|
2016-08-23 23:55:34 +02:00
|
|
|
wvanbergen:kafka:46f9a1c:kafka \
|
2016-04-12 00:53:21 +02:00
|
|
|
wvanbergen:kazoo-go:0f76871:kazoo_go \
|
2016-08-23 23:55:34 +02:00
|
|
|
yuin:gopher-lua:bf3808a:gopher_lua \
|
2016-04-12 00:53:21 +02:00
|
|
|
zensqlmonitor:go-mssqldb:ffe5510:go_mssqldb \
|
2016-08-23 23:55:34 +02:00
|
|
|
golang:crypto:5dc8cb4:crypto \
|
|
|
|
golang:net:6acef71:net \
|
|
|
|
golang:text:a71fd10:text \
|
|
|
|
golang:tools:2bbdb45:tools \
|
|
|
|
dancannon:gorethink:7d1af5b:gorethink_v1 \
|
|
|
|
fatih:pool:cba550e:pool_v2 \
|
|
|
|
go-mgo:mgo:d90005c:mgo \
|
|
|
|
go-yaml:yaml:a83829b:yaml
|
2016-04-12 00:53:21 +02:00
|
|
|
|
|
|
|
SUB_FILES= telegraf
|
|
|
|
SUB_LIST+= TELEGRAF_PIDDIR=${TELEGRAF_PIDDIR}
|
|
|
|
PLIST_SUB= TELEGRAF_PIDDIR=${TELEGRAF_PIDDIR}
|
|
|
|
|
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} \
|
|
|
|
${WRKSRC}/src/github.com/Shopify \
|
|
|
|
${WRKSRC}/src/github.com/Sirupsen \
|
2016-08-05 16:15:46 +02:00
|
|
|
${WRKSRC}/src/github.com/aerospike \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/amir \
|
|
|
|
${WRKSRC}/src/github.com/aws \
|
|
|
|
${WRKSRC}/src/github.com/beorn7 \
|
|
|
|
${WRKSRC}/src/github.com/cenkalti \
|
|
|
|
${WRKSRC}/src/github.com/couchbase \
|
|
|
|
${WRKSRC}/src/github.com/dancannon \
|
|
|
|
${WRKSRC}/src/github.com/davecgh \
|
2016-04-16 08:39:00 +02:00
|
|
|
${WRKSRC}/src/github.com/docker \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/eapache \
|
|
|
|
${WRKSRC}/src/github.com/eclipse \
|
|
|
|
${WRKSRC}/src/github.com/go-sql-driver \
|
2016-05-26 17:54:55 +02:00
|
|
|
${WRKSRC}/src/github.com/gobwas \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/golang \
|
|
|
|
${WRKSRC}/src/github.com/gonuts \
|
|
|
|
${WRKSRC}/src/github.com/gorilla \
|
|
|
|
${WRKSRC}/src/github.com/hailocab \
|
2016-06-08 00:19:29 +02:00
|
|
|
${WRKSRC}/src/github.com/hashicorp \
|
2016-05-26 17:54:55 +02:00
|
|
|
${WRKSRC}/src/github.com/hpcloud \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/influxdata \
|
2016-08-23 23:55:34 +02:00
|
|
|
${WRKSRC}/src/github.com/kardianos \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/klauspost \
|
|
|
|
${WRKSRC}/src/github.com/lib \
|
|
|
|
${WRKSRC}/src/github.com/matttproud \
|
|
|
|
${WRKSRC}/src/github.com/miekg \
|
|
|
|
${WRKSRC}/src/github.com/mreiferson \
|
|
|
|
${WRKSRC}/src/github.com/naoina \
|
|
|
|
${WRKSRC}/src/github.com/nats-io \
|
|
|
|
${WRKSRC}/src/github.com/nsqio \
|
2016-04-16 08:39:00 +02:00
|
|
|
${WRKSRC}/src/github.com/opencontainers \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/prometheus \
|
|
|
|
${WRKSRC}/src/github.com/samuel \
|
|
|
|
${WRKSRC}/src/github.com/shirou \
|
|
|
|
${WRKSRC}/src/github.com/soniah \
|
|
|
|
${WRKSRC}/src/github.com/sparrc \
|
|
|
|
${WRKSRC}/src/github.com/streadway \
|
|
|
|
${WRKSRC}/src/github.com/stretchr \
|
2016-08-05 16:15:46 +02:00
|
|
|
${WRKSRC}/src/github.com/vjeantet \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/wvanbergen \
|
2016-08-05 16:15:46 +02:00
|
|
|
${WRKSRC}/src/github.com/yuin \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/zensqlmonitor \
|
|
|
|
${WRKSRC}/src/golang.org/x \
|
|
|
|
${WRKSRC}/src/gopkg.in/dancannon \
|
|
|
|
${WRKSRC}/src/gopkg.in/fatih
|
2016-06-08 00:19:29 +02:00
|
|
|
cd ${WRKSRC} && ${MV} CHANGELOG.md CONTRIBUTING.md Godeps Godeps_windows \
|
2016-08-05 16:15:46 +02:00
|
|
|
LICENSE Makefile README.md accumulator.go agent circle.yml cmd docs etc filter \
|
|
|
|
input.go internal metric.go metric_test.go output.go plugins scripts testutil \
|
2016-04-12 00:53:21 +02:00
|
|
|
${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
|
2016-08-05 16:15:46 +02:00
|
|
|
@${LN} -s ${WRKSRC}/src/github.com/aerospike/aerospike-client-go ${WRKSRC}/src/github.com/sparrc/aerospike-client-go
|
2016-04-12 00:53:21 +02:00
|
|
|
@${MV} ${WRKSRC_sarama} ${WRKSRC}/src/github.com/Shopify/sarama ;\
|
|
|
|
${MV} ${WRKSRC_logrus} ${WRKSRC}/src/github.com/Sirupsen/logrus ;\
|
2016-08-05 16:15:46 +02:00
|
|
|
${MV} ${WRKSRC_aerospike_client_go} ${WRKSRC}/src/github.com/aerospike/aerospike-client-go ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_raidman} ${WRKSRC}/src/github.com/amir/raidman ;\
|
|
|
|
${MV} ${WRKSRC_aws_sdk_go} ${WRKSRC}/src/github.com/aws/aws-sdk-go ;\
|
|
|
|
${MV} ${WRKSRC_perks} ${WRKSRC}/src/github.com/beorn7/perks ;\
|
|
|
|
${MV} ${WRKSRC_backoff} ${WRKSRC}/src/github.com/cenkalti/backoff ;\
|
|
|
|
${MV} ${WRKSRC_go_couchbase} ${WRKSRC}/src/github.com/couchbase/go-couchbase ;\
|
|
|
|
${MV} ${WRKSRC_gomemcached} ${WRKSRC}/src/github.com/couchbase/gomemcached ;\
|
|
|
|
${MV} ${WRKSRC_goutils} ${WRKSRC}/src/github.com/couchbase/goutils ;\
|
2016-08-23 23:55:34 +02:00
|
|
|
${MV} ${WRKSRC_gorethink} ${WRKSRC}/src/github.com/dancannon/gorethink ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_go_spew} ${WRKSRC}/src/github.com/davecgh/go-spew ;\
|
2016-04-16 08:39:00 +02:00
|
|
|
${MV} ${WRKSRC_engine_api} ${WRKSRC}/src/github.com/docker/engine-api ;\
|
|
|
|
${MV} ${WRKSRC_go_connections} ${WRKSRC}/src/github.com/docker/go-connections ;\
|
|
|
|
${MV} ${WRKSRC_go_units} ${WRKSRC}/src/github.com/docker/go-units ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_go_resiliency} ${WRKSRC}/src/github.com/eapache/go-resiliency ;\
|
|
|
|
${MV} ${WRKSRC_queue} ${WRKSRC}/src/github.com/eapache/queue ;\
|
|
|
|
${MV} ${WRKSRC_paho_mqtt_golang} ${WRKSRC}/src/github.com/eclipse/paho.mqtt.golang ;\
|
|
|
|
${MV} ${WRKSRC_mysql} ${WRKSRC}/src/github.com/go-sql-driver/mysql ;\
|
2016-05-26 17:54:55 +02:00
|
|
|
${MV} ${WRKSRC_glob} ${WRKSRC}/src/github.com/gobwas/glob ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_protobuf} ${WRKSRC}/src/github.com/golang/protobuf ;\
|
|
|
|
${MV} ${WRKSRC_snappy} ${WRKSRC}/src/github.com/golang/snappy ;\
|
|
|
|
${MV} ${WRKSRC_go_shellquote} ${WRKSRC}/src/github.com/gonuts/go-shellquote ;\
|
|
|
|
${MV} ${WRKSRC_context} ${WRKSRC}/src/github.com/gorilla/context ;\
|
|
|
|
${MV} ${WRKSRC_mux} ${WRKSRC}/src/github.com/gorilla/mux ;\
|
|
|
|
${MV} ${WRKSRC_go_hostpool} ${WRKSRC}/src/github.com/hailocab/go-hostpool ;\
|
2016-06-08 00:19:29 +02:00
|
|
|
${MV} ${WRKSRC_consul} ${WRKSRC}/src/github.com/hashicorp/consul ;\
|
2016-05-26 17:54:55 +02:00
|
|
|
${MV} ${WRKSRC_tail} ${WRKSRC}/src/github.com/hpcloud/tail ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_config} ${WRKSRC}/src/github.com/influxdata/config ;\
|
|
|
|
${MV} ${WRKSRC_influxdb} ${WRKSRC}/src/github.com/influxdata/influxdb ;\
|
|
|
|
${MV} ${WRKSRC_toml} ${WRKSRC}/src/github.com/influxdata/toml ;\
|
2016-08-23 23:55:34 +02:00
|
|
|
${MV} ${WRKSRC_osext} ${WRKSRC}/src/github.com/kardianos/osext ;\
|
|
|
|
${MV} ${WRKSRC_service} ${WRKSRC}/src/github.com/kardianos/service ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_crc32} ${WRKSRC}/src/github.com/klauspost/crc32 ;\
|
|
|
|
${MV} ${WRKSRC_pq} ${WRKSRC}/src/github.com/lib/pq ;\
|
|
|
|
${MV} ${WRKSRC_golang_protobuf_extensions} ${WRKSRC}/src/github.com/matttproud/golang_protobuf_extensions ;\
|
|
|
|
${MV} ${WRKSRC_dns} ${WRKSRC}/src/github.com/miekg/dns ;\
|
|
|
|
${MV} ${WRKSRC_go_snappystream} ${WRKSRC}/src/github.com/mreiferson/go-snappystream ;\
|
|
|
|
${MV} ${WRKSRC_go_stringutil} ${WRKSRC}/src/github.com/naoina/go-stringutil ;\
|
|
|
|
${MV} ${WRKSRC_nats} ${WRKSRC}/src/github.com/nats-io/nats ;\
|
|
|
|
${MV} ${WRKSRC_nuid} ${WRKSRC}/src/github.com/nats-io/nuid ;\
|
|
|
|
${MV} ${WRKSRC_go_nsq} ${WRKSRC}/src/github.com/nsqio/go-nsq ;\
|
2016-04-16 08:39:00 +02:00
|
|
|
${MV} ${WRKSRC_runc} ${WRKSRC}/src/github.com/opencontainers/runc ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_client_golang} ${WRKSRC}/src/github.com/prometheus/client_golang ;\
|
|
|
|
${MV} ${WRKSRC_client_model} ${WRKSRC}/src/github.com/prometheus/client_model ;\
|
|
|
|
${MV} ${WRKSRC_common} ${WRKSRC}/src/github.com/prometheus/common ;\
|
|
|
|
${MV} ${WRKSRC_procfs} ${WRKSRC}/src/github.com/prometheus/procfs ;\
|
|
|
|
${MV} ${WRKSRC_go_zookeeper} ${WRKSRC}/src/github.com/samuel/go-zookeeper ;\
|
|
|
|
${MV} ${WRKSRC_gopsutil} ${WRKSRC}/src/github.com/shirou/gopsutil ;\
|
|
|
|
${MV} ${WRKSRC_gosnmp} ${WRKSRC}/src/github.com/soniah/gosnmp ;\
|
2016-08-23 23:55:34 +02:00
|
|
|
${MV} ${WRKSRC_gdm} ${WRKSRC}/src/github.com/sparrc/gdm ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_amqp} ${WRKSRC}/src/github.com/streadway/amqp ;\
|
|
|
|
${MV} ${WRKSRC_testify} ${WRKSRC}/src/github.com/stretchr/testify ;\
|
2016-08-05 16:15:46 +02:00
|
|
|
${MV} ${WRKSRC_grok} ${WRKSRC}/src/github.com/vjeantet/grok ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_kafka} ${WRKSRC}/src/github.com/wvanbergen/kafka ;\
|
|
|
|
${MV} ${WRKSRC_kazoo_go} ${WRKSRC}/src/github.com/wvanbergen/kazoo-go ;\
|
2016-08-05 16:15:46 +02:00
|
|
|
${MV} ${WRKSRC_gopher_lua} ${WRKSRC}/src/github.com/yuin/gopher-lua ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_go_mssqldb} ${WRKSRC}/src/github.com/zensqlmonitor/go-mssqldb ;\
|
|
|
|
${MV} ${WRKSRC_crypto} ${WRKSRC}/src/golang.org/x/crypto ;\
|
|
|
|
${MV} ${WRKSRC_net} ${WRKSRC}/src/golang.org/x/net ;\
|
|
|
|
${MV} ${WRKSRC_text} ${WRKSRC}/src/golang.org/x/text ;\
|
2016-08-23 23:55:34 +02:00
|
|
|
${MV} ${WRKSRC_tools} ${WRKSRC}/src/golang.org/x/tools ;\
|
2016-04-16 08:39:00 +02:00
|
|
|
${MV} ${WRKSRC_gorethink_v1} ${WRKSRC}/src/gopkg.in/dancannon/gorethink.v1 ;\
|
|
|
|
${MV} ${WRKSRC_pool_v2} ${WRKSRC}/src/gopkg.in/fatih/pool.v2 ;\
|
2016-04-12 00:53:21 +02:00
|
|
|
${MV} ${WRKSRC_mgo} ${WRKSRC}/src/gopkg.in/mgo.v2 ;\
|
2016-04-16 08:39:00 +02:00
|
|
|
${MV} ${WRKSRC_yaml} ${WRKSRC}/src/gopkg.in/yaml.v2
|
2016-04-12 00:53:21 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && ${SETENV} GOPATH=${WRKSRC} go install ./...
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/etc/${PORTNAME}.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|