freebsd-ports/net-mgmt/telegraf/Makefile
Palle Girgensohn 64d424bedc Update telegraf
* Update to 1.7.3
* Update dependencies
* Add GH_SUBDIR, remove post-patch target
* Add i386 arch

Submitted by:	Dmitri Goutnik
PR:		230543
2018-08-13 07:21:32 +00:00

151 lines
8.0 KiB
Makefile

# Created by: Stefan Lambrev <cheffo@freebsd-bg.org>
# $FreeBSD$
PORTNAME= telegraf
DISTVERSION= 1.7.3
CATEGORIES= net-mgmt
MAINTAINER= girgen@FreeBSD.org
COMMENT= Time-series data collection
LICENSE= MIT
ONLY_FOR_ARCHS= amd64 i386
BUILD_DEPENDS= go>=1.9:lang/go
USE_RC_SUBR= telegraf
USE_GITHUB= yes
GH_ACCOUNT= influxdata
GH_SUBDIR= src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT_DEFAULT}
GH_TUPLE= collectd:go-collectd:2ce1445:collectd_org/src/collectd.org \
aerospike:aerospike-client-go:95e1ad7:aerospike_client_go/src/github.com/aerospike/aerospike-client-go \
amir:raidman:c74861f:raidman/src/github.com/amir/raidman \
apache:thrift:4aaa92ec:thrift/src/github.com/apache/thrift \
aws:aws-sdk-go:c861d27d:aws_sdk_go/src/github.com/aws/aws-sdk-go \
beorn7:perks:4c0e845:perks/src/github.com/beorn7/perks \
bsm:sarama-cluster:abf0394:sarama_cluster/src/github.com/bsm/sarama-cluster \
cenkalti:backoff:b02f2bb:backoff/src/github.com/cenkalti/backoff \
couchbase:go-couchbase:bfe555a:go_couchbase/src/github.com/couchbase/go-couchbase \
couchbase:gomemcached:4a25d2f:gomemcached/src/github.com/couchbase/gomemcached \
couchbase:goutils:5823a0c:goutils/src/github.com/couchbase/goutils \
davecgh:go-spew:346938d:go_spew/src/github.com/davecgh/go-spew \
dgrijalva:jwt-go:dbeaa93:jwt_go/src/github.com/dgrijalva/jwt-go \
moby:moby:f5ec1e293:docker/src/github.com/docker/docker \
docker:go-connections:990a1a1:go_connections/src/github.com/docker/go-connections \
eapache:go-resiliency:b86b1ec:go_resiliency/src/github.com/eapache/go-resiliency \
eapache:go-xerial-snappy:bb955e0:go_xerial_snappy/src/github.com/eapache/go-xerial-snappy \
eapache:queue:44cc805:queue/src/github.com/eapache/queue \
eclipse:paho.mqtt.golang:aff1577:paho_mqtt_golang/src/github.com/eclipse/paho.mqtt.golang \
fsnotify:fsnotify:c282820:fsnotify/src/github.com/fsnotify/fsnotify \
go-ini:ini:9144852:ini/src/github.com/go-ini/ini \
go-logfmt:logfmt:390ab79:logfmt/src/github.com/go-logfmt/logfmt \
go-ole:go-ole:be49f7c:go_ole/src/github.com/go-ole/go-ole \
go-redis:redis:73b7059:redis/src/github.com/go-redis/redis \
go-sql-driver:mysql:2e00b5c:mysql/src/github.com/go-sql-driver/mysql \
gobwas:glob:bea32b9:glob/src/github.com/gobwas/glob \
gogo:protobuf:7b6c6391:gogo_protobuf/src/github.com/gogo/protobuf \
golang:protobuf:8ee7999:protobuf/src/github.com/golang/protobuf \
golang:snappy:7db9049:snappy/src/github.com/golang/snappy \
google:go-cmp:f94e52c:go_cmp/src/github.com/google/go-cmp \
gorilla:mux:53c1911:mux/src/github.com/gorilla/mux \
hailocab:go-hostpool:e80d13c:go_hostpool/src/github.com/hailocab/go-hostpool \
hashicorp:consul:5174058:consul/src/github.com/hashicorp/consul \
influxdata:go-syslog:eecd51d:syslog/src/github.com/influxdata/go-syslog \
influxdata:tail:c434825:tail/src/github.com/influxdata/tail \
influxdata:toml:2a2e301:toml/src/github.com/influxdata/toml \
influxdata:wlog:7c63b0a:wlog/src/github.com/influxdata/wlog \
jackc:pgx:63f58fd:pgx/src/github.com/jackc/pgx \
jmespath:go-jmespath:bd40a43:go_jmespath/src/github.com/jmespath/go-jmespath \
kardianos:osext:c2c54e5:osext/src/github.com/kardianos/osext \
kardianos:service:6d3a0ee:service/src/github.com/kardianos/service \
kballard:go-shellquote:d8ec1a6:go_shellquote/src/github.com/kballard/go-shellquote \
matttproud:golang_protobuf_extensions:c12348c:golang_protobuf_extensions/src/github.com/matttproud/golang_protobuf_extensions \
Microsoft:ApplicationInsights-Go:3612f58:application_insights/src/github.com/Microsoft/ApplicationInsights-Go \
Microsoft:go-winio:ce2922f:go_winio/src/github.com/Microsoft/go-winio \
miekg:dns:99f84ae:dns/src/github.com/miekg/dns \
mitchellh:mapstructure:d0303fe:mapstructure/src/github.com/mitchellh/mapstructure \
multiplay:go-ts3:07477f4:go_ts3/src/github.com/multiplay/go-ts3 \
naoina:go-stringutil:6b638e9:go_stringutil/src/github.com/naoina/go-stringutil \
nats-io:gnatsd:393bbb7:gnatsd/src/github.com/nats-io/gnatsd \
nats-io:go-nats:ea95856:nats/src/github.com/nats-io/go-nats \
nats-io:nuid:289cccf:nuid/src/github.com/nats-io/nuid \
nsqio:go-nsq:eee57a3:go_nsq/src/github.com/nsqio/go-nsq \
opencontainers:runc:89ab7f2c:runc/src/github.com/opencontainers/runc \
opentracing:opentracing-go:06f47b4:opentracing_go/src/github.com/opentracing/opentracing-go \
opentracing-contrib:go-observer:a52f234:go_observer/src/github.com/opentracing-contrib/go-observer \
openzipkin:zipkin-go-opentracing:1cafbdf:zipkin_go_opentracing/src/github.com/openzipkin/zipkin-go-opentracing \
pierrec:lz4:5c9560b:lz4/src/github.com/pierrec/lz4 \
pierrec:xxHash:5a00444:xxHash/src/github.com/pierrec/xxHash \
pkg:errors:645ef00:errors/src/github.com/pkg/errors \
pmezard:go-difflib:792786c:go_difflib/src/github.com/pmezard/go-difflib \
prometheus:client_golang:c317fb7:client_golang/src/github.com/prometheus/client_golang \
prometheus:client_model:fa8ad6f:client_model/src/github.com/prometheus/client_model \
prometheus:common:dd2f054:common/src/github.com/prometheus/common \
prometheus:procfs:1878d9f:procfs/src/github.com/prometheus/procfs \
rcrowley:go-metrics:1f30fe9:go_metrics/src/github.com/rcrowley/go-metrics \
samuel:go-zookeeper:1d7be4e:go_zookeeper/src/github.com/samuel/go-zookeeper \
satori:go.uuid:5bf94b6:go_uuid/src/github.com/satori/go.uuid \
shirou:gopsutil:c95755e:gopsutil/src/github.com/shirou/gopsutil \
shirou:w32:3c9377f:w32/src/github.com/shirou/w32 \
Shopify:sarama:3b1b388:sarama/src/github.com/Shopify/sarama \
Sirupsen:logrus:61e43dc:logrus/src/github.com/Sirupsen/logrus \
soniah:gosnmp:f15472a:gosnmp/src/github.com/soniah/gosnmp \
StackExchange:wmi:f3e2bae:wmi/src/github.com/StackExchange/wmi \
streadway:amqp:63795da:amqp/src/github.com/streadway/amqp \
stretchr:objx:facf9a8:objx/src/github.com/stretchr/objx \
stretchr:testify:12b6f73:testify/src/github.com/stretchr/testify \
tidwall:gjson:0623bd8:gjson/src/github.com/tidwall/gjson \
tidwall:match:173748d:match/src/github.com/tidwall/match \
vjeantet:grok:d73e972:grok/src/github.com/vjeantet/grok \
wvanbergen:kafka:bc265fe:kafka/src/github.com/wvanbergen/kafka \
wvanbergen:kazoo-go:9689573:kazoo_go/src/github.com/wvanbergen/kazoo-go \
yuin:gopher-lua:66c871e:gopher_lua/src/github.com/yuin/gopher-lua \
zensqlmonitor:go-mssqldb:ffe5510:go_mssqldb/src/github.com/zensqlmonitor/go-mssqldb \
cloudfoundry:clock:e9dc86bb:clock/src/code.cloudfoundry.org/clock \
google:go-genproto:11c7f9e:genproto/src/google.golang.org/genproto \
grpc:grpc-go:de2209a:grpc/src/google.golang.org/grpc \
golang:crypto:dc137be:crypto/src/golang.org/x/crypto \
golang:net:a337091:net/src/golang.org/x/net \
golang:sys:7397344:sys/src/golang.org/x/sys \
golang:text:506f9d5:text/src/golang.org/x/text \
fatih:pool:6e328e6:pool_v2/src/gopkg.in/fatih/pool.v2 \
gorethink:gorethink:7ab832f:gorethink_v3/src/gopkg.in/gorethink/gorethink.v3 \
go-asn1-ber:asn1-ber:4e86f43:asn1_ber/src/gopkg.in/asn1-ber.v1 \
go-ldap:ldap:8168ee0:ldap/src/gopkg.in/ldap.v2 \
go-mgo:mgo:3f83fa5:mgo/src/gopkg.in/mgo.v2 \
olivere:elastic:3113f9b:elastic_v5/src/gopkg.in/olivere/elastic.v5 \
go-tomb:tomb:dd63297:tomb/src/gopkg.in/tomb.v1 \
go-yaml:yaml:4c78c97:yaml/src/gopkg.in/yaml.v2
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}
do-build:
@cd ${WRKSRC}/${GH_SUBDIR} && \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./cmd/telegraf
do-install:
${MKDIR} ${STAGEDIR}${TELEGRAF_LOGDIR}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} \
${WRKSRC}/${GH_SUBDIR}/etc/${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>