summaryrefslogtreecommitdiff
path: root/sysutils/prometheus-smartctl-exporter/Makefile
blob: 7fbd3598d495147bbb515c66e114105be53613af (plain) (blame)
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
PORTNAME=	prometheus-smartctl-exporter
DISTVERSION=	0.6.a.20201014
CATEGORIES=	sysutils

MAINTAINER=	href@random.sh
COMMENT=	Prometheus metrics exporter for smartmontools

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
USE_RC_SUBR=	${PORTNAME}

GH_ACCOUNT=	prometheus-community
GH_PROJECT=	smartctl_exporter
GH_TAGNAME=	e27581d56ad80340fb076d3ce22cef337ed76679
GH_TUPLE=	\
		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 \
		go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
		golang:protobuf:v1.4.2:golang_protobuf/vendor/github.com/golang/protobuf \
		golang:sys:f1bc736245b1:golang_sys/vendor/golang.org/x/sys \
		matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
		prometheus:client_golang:v1.7.1: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.23.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
		tidwall:gjson:v1.6.0:tidwall_gjson/vendor/github.com/tidwall/gjson \
		tidwall:match:v1.0.1:tidwall_match/vendor/github.com/tidwall/match \
		tidwall:pretty:v1.0.0:tidwall_pretty/vendor/github.com/tidwall/pretty

GO_TARGET=	.:${PREFIX}/libexec/${PORTNAME}

post-install:
	${INSTALL_DATA} ${WRKSRC}/smartctl_exporter.yaml ${STAGEDIR}${LOCALBASE}/etc/prometheus-smartctl-exporter.yml.sample

.include <bsd.port.mk>