mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
62dea9bc78
PR: 249247 Submitted by: Dries Michiels <driesm.michiels@gmail.com> (maintainer)
75 lines
4.0 KiB
Makefile
75 lines
4.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= netdata-go
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.22.0
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= driesm.michiels@gmail.com
|
|
COMMENT= External netdata collection plugin written in Go
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= netdata
|
|
GH_PROJECT= go.d.plugin
|
|
GH_TUPLE= \
|
|
DATA-DOG:go-sqlmock:v1.4.1:data_dog_go_sqlmock/vendor/github.com/DATA-DOG/go-sqlmock \
|
|
Wing924:ltsv:v0.3.1:wing924_ltsv/vendor/github.com/Wing924/ltsv \
|
|
axiomhq:hyperloglog:a4c4c47bc57f:axiomhq_hyperloglog/vendor/github.com/axiomhq/hyperloglog \
|
|
cespare:xxhash:v1.1.0:cespare_xxhash/vendor/github.com/cespare/xxhash \
|
|
cloudflare:cfssl:v1.4.1:cloudflare_cfssl/vendor/github.com/cloudflare/cfssl \
|
|
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
|
|
dgryski:go-metro:280f6062b5bc:dgryski_go_metro/vendor/github.com/dgryski/go-metro \
|
|
fsnotify:fsnotify:v1.4.9:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
|
|
go-check:check:8fa46927fb4f:go_check_check/vendor/gopkg.in/check.v1 \
|
|
go-ini:ini:v1.57.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
|
|
go-sql-driver:mysql:v1.5.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
|
|
go-yaml:yaml:9f266ea9e77c:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
|
|
go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
|
gofrs:flock:v0.8.0:gofrs_flock/vendor/github.com/gofrs/flock \
|
|
golang:crypto:87dc89f01550:golang_crypto/vendor/golang.org/x/crypto \
|
|
golang:net:83d349e8ac1a:golang_net/vendor/golang.org/x/net \
|
|
golang:sys:b77594299b42:golang_sys/vendor/golang.org/x/sys \
|
|
golang:xerrors:1b5146add898:golang_xerrors/vendor/golang.org/x/xerrors \
|
|
google:certificate-transparency-go:v1.0.21:google_certificate_transparency_go/vendor/github.com/google/certificate-transparency-go \
|
|
google:uuid:6a5e28554805:google_uuid/vendor/github.com/google/uuid \
|
|
ilyam8:hashstructure:v1.1.0:ilyam8_hashstructure/vendor/github.com/ilyam8/hashstructure \
|
|
jessevdk:go-flags:v1.4.0:jessevdk_go_flags/vendor/github.com/jessevdk/go-flags \
|
|
layeh:radius:890bc1058917:layeh_radius/vendor/layeh.com/radius \
|
|
likexian:gokit:v0.23.3:likexian_gokit/vendor/github.com/likexian/gokit \
|
|
likexian:whois-go:v1.7.1:likexian_whois_go/vendor/github.com/likexian/whois-go \
|
|
likexian:whois-parser-go:v1.14.5:likexian_whois_parser_go/vendor/github.com/likexian/whois-parser-go \
|
|
mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
|
|
miekg:dns:v1.1.29:miekg_dns/vendor/github.com/miekg/dns \
|
|
mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
|
|
netdata:go-orchestrator:25eff6ec645e:netdata_go_orchestrator/vendor/github.com/netdata/go-orchestrator \
|
|
niemeyer:pretty:a10e7caefd8e:niemeyer_pretty/vendor/github.com/niemeyer/pretty \
|
|
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
|
|
prometheus:common:v0.10.0:prometheus_common/vendor/github.com/prometheus/common \
|
|
prometheus:prometheus:v2.5.0:prometheus_prometheus/vendor/github.com/prometheus/prometheus \
|
|
smartystreets:goconvey:v1.6.4:smartystreets_goconvey/vendor/github.com/smartystreets/goconvey \
|
|
stretchr:testify:v1.6.0:stretchr_testify/vendor/github.com/stretchr/testify \
|
|
tomasen:fcgi_client:2bb3d819fd19:tomasen_fcgi_client/vendor/github.com/tomasen/fcgi_client \
|
|
valyala:fastjson:v1.5.4:valyala_fastjson/vendor/github.com/valyala/fastjson \
|
|
vmware:govmomi:v0.22.2:vmware_govmomi/vendor/github.com/vmware/govmomi
|
|
|
|
GO_TARGET= ./cmd/godplugin:${PREFIX}/libexec/netdata/plugins.d/god.plugin
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/etc/netdata|${PREFIX}/etc/netdata|g' ${WRKSRC}/cmd/godplugin/main.go
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/netdata/conf.d
|
|
${INSTALL_DATA} ${WRKSRC}/config/go.d.conf ${STAGEDIR}${PREFIX}/lib/netdata/conf.d/go.d.conf.sample
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/netdata/conf.d/go.d
|
|
cd ${WRKSRC}/config/go.d && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/netdata/conf.d/go.d
|
|
(for file in ${STAGEDIR}${PREFIX}/lib/netdata/conf.d/go.d/*.conf; do \
|
|
${MV} $$file $$file".sample"; \
|
|
done)
|
|
|
|
.include <bsd.port.mk>
|