mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
New Port: net-mgmt/unifi-poller: Collect unifi controller data
Unifi-poller collects your UniFi controller data and reports it to an InfluxDB instance, or export it for Prometheus collection. WWW: https://github.com/unifi-poller/unifi-poller PR: 247338 Submitted by: Anthony Brown <anthony@found-it.net>
This commit is contained in:
parent
1c2fccd5a6
commit
d4c1251021
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542150
@ -372,6 +372,7 @@
|
||||
SUBDIR += unbound_exporter
|
||||
SUBDIR += unifi-devel
|
||||
SUBDIR += unifi-lts
|
||||
SUBDIR += unifi-poller
|
||||
SUBDIR += unifi5
|
||||
SUBDIR += virt-viewer
|
||||
SUBDIR += wdiag
|
||||
|
68
net-mgmt/unifi-poller/Makefile
Normal file
68
net-mgmt/unifi-poller/Makefile
Normal file
@ -0,0 +1,68 @@
|
||||
# Created by: Anthony Brown <anthony@found-it.ne >
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= unifi-poller
|
||||
DISTVERSIONPREFIX=v
|
||||
DISTVERSION= 2.0.1
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= anthony@found-it.net
|
||||
COMMENT= Collect unifi controller data
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= go:modules
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= unifi-poller
|
||||
GH_TUPLE= BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \
|
||||
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
|
||||
cespare:xxhash:v2.1.1:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \
|
||||
github:hub:v2.11.2:github_hub/vendor/github.com/github/hub \
|
||||
go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
||||
golang:net:627f9648deb9:golang_net/vendor/golang.org/x/net \
|
||||
golang:protobuf:v1.4.2:golang_protobuf/vendor/github.com/golang/protobuf \
|
||||
golang:sys:226ff32320da:golang_sys/vendor/golang.org/x/sys \
|
||||
golift:cnfg:v0.0.5:golift_cnfg/vendor/golift.io/cnfg \
|
||||
influxdata:influxdb1-client:02f0bf5dbca3:influxdata_influxdb1_client/vendor/github.com/influxdata/influxdb1-client \
|
||||
mattn:go-colorable:v0.1.4:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
|
||||
mattn:go-isatty:v0.0.11:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
|
||||
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
|
||||
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
|
||||
prometheus:client_golang:v1.6.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
|
||||
prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
|
||||
prometheus:common:v0.10.0:prometheus_common/vendor/github.com/prometheus/common \
|
||||
prometheus:procfs:v0.1.3:prometheus_procfs/vendor/github.com/prometheus/procfs \
|
||||
protocolbuffers:protobuf-go:v1.24.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
|
||||
russross:blackfriday:v2.0.0:russross_blackfriday/vendor/github.com/russross/blackfriday \
|
||||
shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
|
||||
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
|
||||
unifi-poller:influxunifi:v0.0.9:unifi_poller_influxunifi/vendor/github.com/unifi-poller/influxunifi \
|
||||
unifi-poller:inputunifi:v0.0.7:unifi_poller_inputunifi/vendor/github.com/unifi-poller/inputunifi \
|
||||
unifi-poller:poller:v0.0.7:unifi_poller_poller/vendor/github.com/unifi-poller/poller \
|
||||
unifi-poller:promunifi:v0.0.8:unifi_poller_promunifi/vendor/github.com/unifi-poller/promunifi \
|
||||
unifi-poller:unifi:v0.0.5:unifi_poller_unifi/vendor/github.com/unifi-poller/unifi
|
||||
|
||||
post-build:
|
||||
(cd ${GO_WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run github.com/github/hub/md2roff-bin --manual="unifi-poller" --version="${DISTVERSION}" examples/MANUAL.md)
|
||||
@${REINPLACE_CMD} -e "s/{{BINARY}}/unifi-poller/g" -e "s/{{BINARYU}}/unifi_poller/g" -e "s/{{CONFIG_FILE}}/up.conf/g" \
|
||||
${GO_WRKSRC}/init/bsd/freebsd.rc.d
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/unifi-poller \
|
||||
${STAGEDIR}${PREFIX}/share/doc/unifi-poller \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/bin/unifi-poller ${STAGEDIR}${PREFIX}/bin/unifi-poller
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/init/bsd/freebsd.rc.d ${STAGEDIR}${PREFIX}/etc/rc.d/unifi-poller
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/up.conf.example ${STAGEDIR}${PREFIX}/etc/unifi-poller/up.conf.sample
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/LICENSE ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/LICENSE
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/MANUAL.md ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/MANUAL.html ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/README.md ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/up.conf.example ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/up.conf.example
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/up.json.example ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/up.json.example
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/up.xml.example ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/up.xml.example
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/examples/up.yaml.example ${STAGEDIR}${PREFIX}/share/doc/unifi-poller/up.yaml.example
|
||||
${INSTALL_MAN} ${GO_WRKSRC}/examples/MANUAL ${STAGEDIR}${MAN1PREFIX}/man/man1/unifi-poller.1
|
||||
|
||||
.include <bsd.port.mk>
|
57
net-mgmt/unifi-poller/distinfo
Normal file
57
net-mgmt/unifi-poller/distinfo
Normal file
@ -0,0 +1,57 @@
|
||||
TIMESTAMP = 1592319618
|
||||
SHA256 (unifi-poller-unifi-poller-v2.0.1_GH0.tar.gz) = 9b2f11e76fd3a70ba665376ed4f9463858f5d388892fd94801333a6c90691ea7
|
||||
SIZE (unifi-poller-unifi-poller-v2.0.1_GH0.tar.gz) = 60386
|
||||
SHA256 (BurntSushi-toml-v0.3.1_GH0.tar.gz) = 6593da894578ba510a470735ffbdc88ce88033094dc5a8f4d3957ab87e18803f
|
||||
SIZE (BurntSushi-toml-v0.3.1_GH0.tar.gz) = 42077
|
||||
SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
|
||||
SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
|
||||
SHA256 (cespare-xxhash-v2.1.1_GH0.tar.gz) = 0ee31178d2c5a1249be4e26294a2f428008dc4e1ecbbfbe47f74e41026df1148
|
||||
SIZE (cespare-xxhash-v2.1.1_GH0.tar.gz) = 9292
|
||||
SHA256 (github-hub-v2.11.2_GH0.tar.gz) = 1a80685d3d4fe14012c4f5e5cda9a2c5fe680a81729e692008aa1414f8e1f972
|
||||
SIZE (github-hub-v2.11.2_GH0.tar.gz) = 1043892
|
||||
SHA256 (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 42027002bf258009d498600b04b8c9cbb29d2193185ea7bfa8fefe194fe72a07
|
||||
SIZE (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 72816
|
||||
SHA256 (golang-net-627f9648deb9_GH0.tar.gz) = a171ecd3ca1ca546c82806d7ddba1985b18da28530cb7479ea62d90ea1f81041
|
||||
SIZE (golang-net-627f9648deb9_GH0.tar.gz) = 1177189
|
||||
SHA256 (golang-protobuf-v1.4.2_GH0.tar.gz) = a1e486b3ed6f502c43e10cb28bde4e8f020a420ef9958d3fbe61801492c07c87
|
||||
SIZE (golang-protobuf-v1.4.2_GH0.tar.gz) = 171778
|
||||
SHA256 (golang-sys-226ff32320da_GH0.tar.gz) = 3d19d1a291ede93a53edb14252d0ee046baa730be31825c7daa5dd33f994c184
|
||||
SIZE (golang-sys-226ff32320da_GH0.tar.gz) = 1054370
|
||||
SHA256 (golift-cnfg-v0.0.5_GH0.tar.gz) = 73e040918d1be439dfc909e7aabb99f2be64d7404c8256be9c00937314244b62
|
||||
SIZE (golift-cnfg-v0.0.5_GH0.tar.gz) = 14568
|
||||
SHA256 (influxdata-influxdb1-client-02f0bf5dbca3_GH0.tar.gz) = 0cacb97cfba05eba9f1bf8d4f86d8a0d6a0c8c7b4c35ab6fed88f187a0f20cc5
|
||||
SIZE (influxdata-influxdb1-client-02f0bf5dbca3_GH0.tar.gz) = 58684
|
||||
SHA256 (mattn-go-colorable-v0.1.4_GH0.tar.gz) = 157806ad8125e6bef4d9b58c9125ccb98a8343136f93faf442ab0cc6e7c24c11
|
||||
SIZE (mattn-go-colorable-v0.1.4_GH0.tar.gz) = 8981
|
||||
SHA256 (mattn-go-isatty-v0.0.11_GH0.tar.gz) = 631fab18253998a4e27e9d260c445e9852bd86cf5a42693623d305c3e59c415a
|
||||
SIZE (mattn-go-isatty-v0.0.11_GH0.tar.gz) = 4396
|
||||
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
|
||||
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
|
||||
SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608
|
||||
SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415
|
||||
SHA256 (prometheus-client_golang-v1.6.0_GH0.tar.gz) = e255f632b7223f794e0f60d99976535c16153cc00fadf39ee87fd9f678d6a32c
|
||||
SIZE (prometheus-client_golang-v1.6.0_GH0.tar.gz) = 157355
|
||||
SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12
|
||||
SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986
|
||||
SHA256 (prometheus-common-v0.10.0_GH0.tar.gz) = 349381082ea8e66637c2d2475f1ae0e74ca04a7b91eb3b96817c261b87668fd3
|
||||
SIZE (prometheus-common-v0.10.0_GH0.tar.gz) = 107763
|
||||
SHA256 (prometheus-procfs-v0.1.3_GH0.tar.gz) = 0b0872058bfdef11d9942535c992420150724c3b5a912a48a8d2ea26ac39efa6
|
||||
SIZE (prometheus-procfs-v0.1.3_GH0.tar.gz) = 156868
|
||||
SHA256 (protocolbuffers-protobuf-go-v1.24.0_GH0.tar.gz) = 318e54ee12d09e9c76fc11cf85f6297360e6444b74a6a7882450501bb952ba56
|
||||
SIZE (protocolbuffers-protobuf-go-v1.24.0_GH0.tar.gz) = 1227640
|
||||
SHA256 (russross-blackfriday-v2.0.0_GH0.tar.gz) = da9c7e713b2c97300cab6c1545726950d05ea2093afe13c94c1d3f2a7844e3f5
|
||||
SIZE (russross-blackfriday-v2.0.0_GH0.tar.gz) = 77677
|
||||
SHA256 (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 7e11964980f9b8595c17bc8970f0174621afe464920e38df7f8d77e45058388f
|
||||
SIZE (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 2143
|
||||
SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808
|
||||
SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796
|
||||
SHA256 (unifi-poller-influxunifi-v0.0.9_GH0.tar.gz) = 4bba6500541965087d56d6a6e72918f19df7c159c86aad342fbff7c094e440e3
|
||||
SIZE (unifi-poller-influxunifi-v0.0.9_GH0.tar.gz) = 19065
|
||||
SHA256 (unifi-poller-inputunifi-v0.0.7_GH0.tar.gz) = 361b07d0f695bdfeafd449664fdd6bf96dc651a472e1582960b0d165717de052
|
||||
SIZE (unifi-poller-inputunifi-v0.0.7_GH0.tar.gz) = 14214
|
||||
SHA256 (unifi-poller-poller-v0.0.7_GH0.tar.gz) = bd091b0906a17d9a09a9d56348e69f156846a2fcae6f534218aabbfde9e70a8b
|
||||
SIZE (unifi-poller-poller-v0.0.7_GH0.tar.gz) = 14343
|
||||
SHA256 (unifi-poller-promunifi-v0.0.8_GH0.tar.gz) = 32016d8ce00ea5feb5f8fc48533c48adcce9d6ae8e61717883279954d3b9224c
|
||||
SIZE (unifi-poller-promunifi-v0.0.8_GH0.tar.gz) = 22436
|
||||
SHA256 (unifi-poller-unifi-v0.0.5_GH0.tar.gz) = 8c2c89710151762411594eaa64a4429f9c07530d7cc5efa676bc9df3fe692bf7
|
||||
SIZE (unifi-poller-unifi-v0.0.5_GH0.tar.gz) = 60393
|
4
net-mgmt/unifi-poller/pkg-descr
Normal file
4
net-mgmt/unifi-poller/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Unifi-poller collects your UniFi controller data and reports it to
|
||||
an InfluxDB instance, or export it for Prometheus collection.
|
||||
|
||||
WWW: https://github.com/unifi-poller/unifi-poller
|
12
net-mgmt/unifi-poller/pkg-plist
Normal file
12
net-mgmt/unifi-poller/pkg-plist
Normal file
@ -0,0 +1,12 @@
|
||||
bin/unifi-poller
|
||||
etc/rc.d/unifi-poller
|
||||
@sample etc/unifi-poller/up.conf.sample
|
||||
share/doc/unifi-poller/LICENSE
|
||||
share/doc/unifi-poller/MANUAL.md
|
||||
share/doc/unifi-poller/MANUAL.html
|
||||
share/doc/unifi-poller/README.md
|
||||
share/doc/unifi-poller/up.conf.example
|
||||
share/doc/unifi-poller/up.json.example
|
||||
share/doc/unifi-poller/up.xml.example
|
||||
share/doc/unifi-poller/up.yaml.example
|
||||
man/man1/unifi-poller.1.gz
|
Loading…
Reference in New Issue
Block a user