summaryrefslogtreecommitdiffstats
path: root/net-mgmt/unbound_exporter/Makefile
blob: 10f0e8bf6dcab94c6a569f4349b9692217e45566 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Athanasios Douitsis <aduitsis@cpan.org>
# $FreeBSD$

PORTNAME=		unbound_exporter
PORTVERSION=		0.1
PORTREVISION=		1
DISTVERSIONPREFIX=	v
CATEGORIES=		net-mgmt

MAINTAINER=		aduitsis@cpan.org
COMMENT=		Prometheus metrics exporter for the Unbound DNS resolver

LICENSE=		APACHE20

USES=			go
GH_ACCOUNT=		kumina
USE_GITHUB=		yes
GH_TUPLE=		prometheus:client_golang:08fd2e1:client_golang \
			prometheus:client_model:6f38060:client_model \
			prometheus:common:49fee29:common \
			prometheus:procfs:a1dba9c:procfs \
			beorn7:perks:4c0e845:perks \
			golang:protobuf:2bba060:protobuf \
			matttproud:golang_protobuf_extensions:c12348c:extensions

GO_PKGNAME=		github.com/${GH_ACCOUNT}/${PORTNAME}

USE_RC_SUBR=		unbound_exporter

USERS=			unbound
GROUPS=			unbound

PLIST_FILES=		bin/unbound_exporter

pre-build:
	echo ${WRKSRC_client_golang}
	${MKDIR} ${GO_WRKDIR_SRC}/github.com/prometheus
	${MKDIR} ${GO_WRKDIR_SRC}/github.com/beorn7
	${MKDIR} ${GO_WRKDIR_SRC}/github.com/golang
	${MKDIR} ${GO_WRKDIR_SRC}/github.com/matttproud
	${MV} ${WRKSRC_client_golang} ${GO_WRKDIR_SRC}/github.com/prometheus/client_golang
	${MV} ${WRKSRC_client_model} ${GO_WRKDIR_SRC}/github.com/prometheus/client_model
	${MV} ${WRKSRC_common} ${GO_WRKDIR_SRC}/github.com/prometheus/common
	${MV} ${WRKSRC_procfs} ${GO_WRKDIR_SRC}/github.com/prometheus/procfs
	${MV} ${WRKSRC_perks} ${GO_WRKDIR_SRC}/github.com/beorn7/perks
	${MV} ${WRKSRC_protobuf} ${GO_WRKDIR_SRC}/github.com/golang/protobuf
	${MV} ${WRKSRC_extensions} ${GO_WRKDIR_SRC}/github.com/matttproud/golang_protobuf_extensions

do-install:
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/unbound_exporter ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
OpenPOWER on IntegriCloud