View | Details | Raw Unified | Return to bug 255449 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-mgmt/Makefile (+1 lines)
Lines 17-22 Link Here
17
    SUBDIR += bgpq3
17
    SUBDIR += bgpq3
18
    SUBDIR += bgpq4
18
    SUBDIR += bgpq4
19
    SUBDIR += bgpuma
19
    SUBDIR += bgpuma
20
    SUBDIR += bind_exporter
20
    SUBDIR += blackbox_exporter
21
    SUBDIR += blackbox_exporter
21
    SUBDIR += bosun
22
    SUBDIR += bosun
22
    SUBDIR += bpft
23
    SUBDIR += bpft
(-)b/net-mgmt/bind_exporter/Makefile (+55 lines)
Added Link Here
1
# Created by: Matt Moriarity <matt@mattmoriarity.com>
2
3
PORTNAME=	bind_exporter
4
PORTVERSION=	0.4.0
5
DISTVERSIONPREFIX=v
6
CATEGORIES=	net-mgmt dns
7
8
MAINTAINER=	matt@mattmoriarity.com
9
COMMENT=	Prometheus exporter for BIND server statistics
10
11
LICENSE=	APACHE20
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
USES=		go:modules
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	prometheus-community
17
USE_RC_SUBR=	bind_exporter
18
19
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
20
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
21
22
BUILD_USER?=	${USER}
23
LD_FLAG_STRING=	-s \
24
		${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \
25
		${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \
26
		${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \
27
		${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER}
28
LD_FLAG_X_PREFIX=	-X github.com/prometheus/common/version
29
30
GH_TUPLE=       \
31
		alecthomas:kingpin:v2.2.6:alecthomas_kingpin/vendor/gopkg.in/alecthomas/kingpin.v2 \
32
		alecthomas:template:fb15b899a751:alecthomas_template/vendor/github.com/alecthomas/template \
33
		alecthomas:units:f65c72e2690d:alecthomas_units/vendor/github.com/alecthomas/units \
34
		beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
35
		cespare:xxhash:v2.1.1:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \
36
		go-kit:kit:v0.10.0:go_kit_kit/vendor/github.com/go-kit/kit \
37
		go-logfmt:logfmt:v0.5.0:go_logfmt_logfmt/vendor/github.com/go-logfmt/logfmt \
38
		go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
39
		golang:crypto:5f87f3452ae9:golang_crypto/vendor/golang.org/x/crypto \
40
		golang:net:4c5254603344:golang_net/vendor/golang.org/x/net \
41
		golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \
42
		golang:sys:f9fddec55a1e:golang_sys/vendor/golang.org/x/sys \
43
		golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
44
		jpillora:backoff:v1.0.0:jpillora_backoff/vendor/github.com/jpillora/backoff \
45
		matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
46
		mwitkow:go-conntrack:2f068394615f:mwitkow_go_conntrack/vendor/github.com/mwitkow/go-conntrack \
47
		pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
48
		prometheus:client_golang:v1.9.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
49
		prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
50
		prometheus:common:v0.15.0:prometheus_common/vendor/github.com/prometheus/common \
51
		prometheus:exporter-toolkit:v0.5.0:prometheus_exporter_toolkit/vendor/github.com/prometheus/exporter-toolkit \
52
		prometheus:procfs:v0.2.0:prometheus_procfs/vendor/github.com/prometheus/procfs \
53
		protocolbuffers:protobuf-go:v1.23.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf
54
55
.include <bsd.port.mk>
(-)b/net-mgmt/bind_exporter/distinfo (+49 lines)
Added Link Here
1
TIMESTAMP = 1619572982
2
SHA256 (prometheus-community-bind_exporter-v0.4.0_GH0.tar.gz) = d3ae7524cf16b94e47e17c19d943cc59a1679f2846fe685e4448abed62d8ad4f
3
SIZE (prometheus-community-bind_exporter-v0.4.0_GH0.tar.gz) = 59975
4
SHA256 (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 4624eae43489de8a71ea60efaf6744c581b6bd62909f7514c484c1ea0efaba5a
5
SIZE (alecthomas-kingpin-v2.2.6_GH0.tar.gz) = 44383
6
SHA256 (alecthomas-template-fb15b899a751_GH0.tar.gz) = 2e2a44375eca48ce941182504b5d13aa98182b9a3f64ace33bfda52208bd0f5e
7
SIZE (alecthomas-template-fb15b899a751_GH0.tar.gz) = 55339
8
SHA256 (alecthomas-units-f65c72e2690d_GH0.tar.gz) = ece06024b01821e013bd7158dfe8ec8cc697f586ce8d3cfaa22edde8c2f022c3
9
SIZE (alecthomas-units-f65c72e2690d_GH0.tar.gz) = 4925
10
SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
11
SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
12
SHA256 (cespare-xxhash-v2.1.1_GH0.tar.gz) = 0ee31178d2c5a1249be4e26294a2f428008dc4e1ecbbfbe47f74e41026df1148
13
SIZE (cespare-xxhash-v2.1.1_GH0.tar.gz) = 9292
14
SHA256 (go-kit-kit-v0.10.0_GH0.tar.gz) = c0fac2e37b981e4c18e4f210b92e1393bd59dadd7c7fc043ec46d1c9834eba85
15
SIZE (go-kit-kit-v0.10.0_GH0.tar.gz) = 274801
16
SHA256 (go-logfmt-logfmt-v0.5.0_GH0.tar.gz) = 76727000951c187d058289d8e83d3e2ad480a5d44c7c83b025b78b7eb6bf0258
17
SIZE (go-logfmt-logfmt-v0.5.0_GH0.tar.gz) = 11745
18
SHA256 (go-yaml-yaml-v2.4.0_GH0.tar.gz) = d8e94679e5fff6bd1a35e10241543929a5f3da44f701755babf99b3daf0faac0
19
SIZE (go-yaml-yaml-v2.4.0_GH0.tar.gz) = 73209
20
SHA256 (golang-crypto-5f87f3452ae9_GH0.tar.gz) = 8e905a4ce396416a8c8afd8075b93da404f77a9ec1475ad2814d289a1e21a0ee
21
SIZE (golang-crypto-5f87f3452ae9_GH0.tar.gz) = 1721681
22
SHA256 (golang-net-4c5254603344_GH0.tar.gz) = 5957e628f2676d9e6c9517890bdcec334e8cac53d0f000b42ed6364a0550e152
23
SIZE (golang-net-4c5254603344_GH0.tar.gz) = 1177478
24
SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610
25
SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969
26
SHA256 (golang-sys-f9fddec55a1e_GH0.tar.gz) = 1ab3f80841babed9c5cd8e93f69bfcb7847c406e767b5d86d5da7dc3c0f24931
27
SIZE (golang-sys-f9fddec55a1e_GH0.tar.gz) = 1090464
28
SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22
29
SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069
30
SHA256 (jpillora-backoff-v1.0.0_GH0.tar.gz) = 611b29ce95acfa2997e3449762a3df68fcaa773db045535f26eb5c686106351f
31
SIZE (jpillora-backoff-v1.0.0_GH0.tar.gz) = 3507
32
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
33
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
34
SHA256 (mwitkow-go-conntrack-2f068394615f_GH0.tar.gz) = 5bb72eaf9a4ffd7d0353fa6944951d244df89d879ac36d4b9860fd159162dd81
35
SIZE (mwitkow-go-conntrack-2f068394615f_GH0.tar.gz) = 17140
36
SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608
37
SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415
38
SHA256 (prometheus-client_golang-v1.9.0_GH0.tar.gz) = 92ccfb35268ce2de6beeb45d4b5639e4bce78111b8629bcde5727165f7e1afb1
39
SIZE (prometheus-client_golang-v1.9.0_GH0.tar.gz) = 177330
40
SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12
41
SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986
42
SHA256 (prometheus-common-v0.15.0_GH0.tar.gz) = f0957de56c09431076239d27bb85e07841bb832d0c99210087bc6da63a0b2cb6
43
SIZE (prometheus-common-v0.15.0_GH0.tar.gz) = 124369
44
SHA256 (prometheus-exporter-toolkit-v0.5.0_GH0.tar.gz) = 60472227a183070c7eb008c181fe434bf4986f406c3d1500cdafd118362a49fe
45
SIZE (prometheus-exporter-toolkit-v0.5.0_GH0.tar.gz) = 47832
46
SHA256 (prometheus-procfs-v0.2.0_GH0.tar.gz) = b6c013031ac8b9f8f9e1595103c48feb80dfe59c37aac73efe724fddbc0b3f50
47
SIZE (prometheus-procfs-v0.2.0_GH0.tar.gz) = 157368
48
SHA256 (protocolbuffers-protobuf-go-v1.23.0_GH0.tar.gz) = e7266bedaa4f110216fce52ae533dc5eba475d3829bb0592e8876684e202ae1f
49
SIZE (protocolbuffers-protobuf-go-v1.23.0_GH0.tar.gz) = 1214648
(-)b/net-mgmt/bind_exporter/files/bind_exporter.in (+65 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: bind_exporter
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
#
7
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
8
# to enable this service:
9
#
10
# bind_exporter_enable (bool):          Set to NO by default.
11
#               Set it to YES to enable bind_exporter.
12
# bind_exporter_user (string):          Set user that bind_exporter will run under
13
#               Default is "nobody".
14
# bind_exporter_group (string):         Set group that bind_exporter will run under
15
#               Default is "nobody".
16
# bind_exporter_args (string):          Set extra arguments to pass to bind_exporter
17
#               Default is "".
18
# bind_exporter_listen_address (string):Set ip:port that bind_exporter will listen on
19
#               Default is ":9119".
20
# bind_exporter_stats_url (string):     Set URL where BIND is serving statistics
21
#               Default is "http://localhost:8053/".
22
# bind_exporter_named_pidfile (path):   Set path to named's pidfile
23
#               Default is "/var/run/named/pid".
24
25
. /etc/rc.subr
26
27
name=bind_exporter
28
desc="Prometheus exporter for BIND"
29
rcvar=bind_exporter_enable
30
31
load_rc_config $name
32
33
: ${bind_exporter_enable:="NO"}
34
: ${bind_exporter_user:="nobody"}
35
: ${bind_exporter_group:="nobody"}
36
: ${bind_exporter_args:=""}
37
: ${bind_exporter_listen_address:=":9119"}
38
: ${bind_exporter_stats_url:="http://localhost:8053/"}
39
: ${bind_exporter_named_pidfile:="/var/run/named/pid"}
40
41
42
pidfile=/var/run/bind_exporter.pid
43
command="/usr/sbin/daemon"
44
procname="%%PREFIX%%/bin/bind_exporter"
45
command_args="-f -p ${pidfile} -T ${name} \
46
    /usr/bin/env ${procname} \
47
    --web.listen-address=${bind_exporter_listen_address} \
48
    --bind.pid-file=${bind_exporter_named_pidfile} \
49
    --bind.stats-url=${bind_exporter_stats_url} \
50
    ${bind_exporter_args}"
51
52
start_precmd=bind_exporter_startprecmd
53
54
bind_exporter_startprecmd()
55
{
56
    if [ ! -e ${pidfile} ]; then
57
        install \
58
            -o ${bind_exporter_user} \
59
            -g ${bind_exporter_group} \
60
            /dev/null ${pidfile};
61
    fi
62
}
63
64
load_rc_config $name
65
run_rc_command "$1"
(-)b/net-mgmt/bind_exporter/pkg-descr (+4 lines)
Added Link Here
1
BIND exporter is a Prometheus exporter for statistics from a BIND DNS server.
2
It uses the statistics channel support in BIND to collect the statistics.
3
4
WWW: https://github.com/prometheus-community/bind_exporter
(-)b/net-mgmt/bind_exporter/pkg-plist (+1 lines)
Added Link Here
1
bin/bind_exporter

Return to bug 255449