summaryrefslogtreecommitdiff
path: root/sysutils/prometheus-smartctl-exporter/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/prometheus-smartctl-exporter/Makefile')
-rw-r--r--sysutils/prometheus-smartctl-exporter/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/prometheus-smartctl-exporter/Makefile b/sysutils/prometheus-smartctl-exporter/Makefile
new file mode 100644
index 000000000000..7fbd3598d495
--- /dev/null
+++ b/sysutils/prometheus-smartctl-exporter/Makefile
@@ -0,0 +1,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>