summaryrefslogtreecommitdiffstats
path: root/net-mgmt/telegraf/Makefile
blob: 11651ad411864b07cf017a847fb4677ae12bfd1a (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Created by: Stefan Lambrev <cheffo@freebsd-bg.org>
# $FreeBSD$

PORTNAME=	telegraf
DISTVERSION=	1.3.0
CATEGORIES=	net-mgmt

MAINTAINER=	girgen@FreeBSD.org
COMMENT=	Time-series data collection

LICENSE=	MIT

BUILD_DEPENDS=	go>=1.5.0:lang/go

ONLY_FOR_ARCHS=	amd64

USE_RC_SUBR=	telegraf

USE_GITHUB=	yes

GH_ACCOUNT=	influxdata:DEFAULT
GH_TUPLE=	collectd:go-collectd:2ce1445:collectd_org/src/collectd.org \
		Shopify:sarama:574d314:sarama/src/github.com/Shopify/sarama \
		Sirupsen:logrus:61e43dc:logrus/src/github.com/Sirupsen/logrus \
		aerospike:aerospike-client-go:95e1ad7:aerospike_client_go/src/github.com/aerospike/aerospike-client-go \
		amir:raidman:c74861f:raidman/src/github.com/amir/raidman \
		aws:aws-sdk-go:7524cb91:aws_sdk_go/src/github.com/aws/aws-sdk-go \
		beorn7:perks:4c0e845:perks/src/github.com/beorn7/perks \
		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 \
		moby:moby:b89aff1af:docker/src/github.com/docker/docker \
		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:d4f545e:paho_mqtt_golang/src/github.com/eclipse/paho.mqtt.golang \
		go-sql-driver:mysql:2e00b5c:mysql/src/github.com/go-sql-driver/mysql \
		gobwas:glob:bea32b9:glob/src/github.com/gobwas/glob \
		golang:protobuf:8ee7999:protobuf/src/github.com/golang/protobuf \
		golang:snappy:7db9049:snappy/src/github.com/golang/snappy \
		gorilla:mux:392c28f:mux/src/github.com/gorilla/mux \
		hailocab:go-hostpool:e80d13c:go_hostpool/src/github.com/hailocab/go-hostpool \
		hashicorp:consul:63d2fc68:consul/src/github.com/hashicorp/consul \
		influxdata:tail:a395bf9:tail/src/github.com/influxdata/tail \
		influxdata:toml:5d1d907:toml/src/github.com/influxdata/toml \
		influxdata:wlog:7c63b0a:wlog/src/github.com/influxdata/wlog \
		jackc:pgx:b84338d:pgx/src/github.com/jackc/pgx \
		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 \
		klauspost:crc32:cb6bfca:crc32/src/github.com/klauspost/crc32 \
		matttproud:golang_protobuf_extensions:c12348c:golang_protobuf_extensions/src/github.com/matttproud/golang_protobuf_extensions \
		miekg:dns:99f84ae:dns/src/github.com/miekg/dns \
		naoina:go-stringutil:6b638e9:go_stringutil/src/github.com/naoina/go-stringutil \
		nats-io:go-nats:ea95856:nats/src/github.com/nats-io/nats \
		nats-io:nuid:289cccf:nuid/src/github.com/nats-io/nuid \
		nsqio:go-nsq:a53d495:go_nsq/src/github.com/nsqio/go-nsq \
		pierrec:lz4:5c9560b:lz4/src/github.com/pierrec/lz4 \
		pierrec:xxHash:5a00444:xxHash/src/github.com/pierrec/xxHash \
		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:70693b6:gopsutil/src/github.com/shirou/gopsutil \
		soniah:gosnmp:5ad50dc:gosnmp/src/github.com/soniah/gosnmp \
		sparrc:gdm:9abc97b:gdm/src/github.com/sparrc/gdm \
		streadway:amqp:63795da:amqp/src/github.com/streadway/amqp \
		stretchr:testify:4d4bfba:testify/src/github.com/stretchr/testify \
		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 \
		golang:crypto:dc137be:crypto/src/golang.org/x/crypto \
		golang:net:f249948:net/src/golang.org/x/net \
		golang:text:506f9d5:text/src/golang.org/x/text \
		golang:tools:bf4b54dc:tools/src/golang.org/x/tools \
		dancannon:gorethink:edc7a6a:gorethink_v1/src/gopkg.in/dancannon/gorethink.v1 \
		fatih:pool:6e328e6:pool_v2/src/gopkg.in/fatih/pool.v2 \
		go-mgo:mgo:3f83fa5:mgo/src/gopkg.in/mgo.v2 \
		olivere:elastic:ee3ebce:elastic_v5/src/gopkg.in/olivere/elastic.v5 \
		go-yaml:yaml:4c78c97:yaml/src/gopkg.in/yaml.v2

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_DEFAULT}/${PORTNAME}
	@cd ${WRKSRC} && ${MV} CHANGELOG.md CONTRIBUTING.md Godeps Godeps_windows \
		LICENSE Makefile README.md accumulator.go agent aggregator.go circle.yml cmd docs etc filter \
		input.go internal logger metric metric.go output.go plugins processor.go scripts selfstat testutil \
		${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}
	${LN} -s nats ${WRKSRC}/src/github.com/nats-io/go-nats
##	${LN} -s gorethink.v1 ${WRKSRC}/src/gopkg.in/dancannon/gorethink

do-build:
	@cd ${WRKSRC}/src/github.com/influxdata/${PORTNAME} && \
		${SETENV} GOPATH=${WRKSRC} go install -ldflags "-X main.version=${DISTVERSION}" ./...

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	${INSTALL_DATA} \
		${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT}/etc/${PORTNAME}.conf  \
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample

.include <bsd.port.mk>
OpenPOWER on IntegriCloud