|
Lines 4-9
Link Here
|
| 4 |
PORTNAME= unbound_exporter |
4 |
PORTNAME= unbound_exporter |
| 5 |
PORTVERSION= 0.1 |
5 |
PORTVERSION= 0.1 |
| 6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
|
|
7 |
PORTREVISION= 1 |
| 7 |
CATEGORIES= net-mgmt |
8 |
CATEGORIES= net-mgmt |
| 8 |
|
9 |
|
| 9 |
MAINTAINER= aduitsis@cpan.org |
10 |
MAINTAINER= aduitsis@cpan.org |
|
Lines 14-26
LICENSE= APACHE20
Link Here
|
| 14 |
USES= go |
15 |
USES= go |
| 15 |
GH_ACCOUNT= kumina |
16 |
GH_ACCOUNT= kumina |
| 16 |
USE_GITHUB= yes |
17 |
USE_GITHUB= yes |
| 17 |
GH_TUPLE= prometheus:client_golang:08fd2e1:client_golang \ |
18 |
GH_TAGNAME= b7e842d893d29200a5108eab717f5ab01d783c0c |
|
|
19 |
GH_TUPLE= prometheus:client_golang:3fb53d:client_golang \ |
| 18 |
prometheus:client_model:6f38060:client_model \ |
20 |
prometheus:client_model:6f38060:client_model \ |
| 19 |
prometheus:common:49fee29:common \ |
21 |
prometheus:common:49fee29:common \ |
| 20 |
prometheus:procfs:a1dba9c:procfs \ |
22 |
prometheus:procfs:a1dba9c:procfs \ |
| 21 |
beorn7:perks:4c0e845:perks \ |
23 |
beorn7:perks:4c0e845:perks \ |
| 22 |
golang:protobuf:2bba060:protobuf \ |
24 |
golang:protobuf:2bba060:protobuf \ |
| 23 |
matttproud:golang_protobuf_extensions:c12348c:extensions |
25 |
matttproud:golang_protobuf_extensions:c12348c:extensions \ |
|
|
26 |
sirupsen:logrus:91da99d:logrus \ |
| 27 |
golang:crypto:3d3f9f41:crypto \ |
| 28 |
golang:sys:93218def:sys |
| 24 |
|
29 |
|
| 25 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
30 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} |
| 26 |
|
31 |
|
|
Lines 34-44
STRIP=
Link Here
|
| 34 |
PLIST_FILES= bin/unbound_exporter |
39 |
PLIST_FILES= bin/unbound_exporter |
| 35 |
|
40 |
|
| 36 |
pre-build: |
41 |
pre-build: |
| 37 |
echo ${WRKSRC_client_golang} |
|
|
| 38 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/prometheus |
42 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/prometheus |
| 39 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/beorn7 |
43 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/beorn7 |
| 40 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/golang |
44 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/golang |
|
|
45 |
${MKDIR} ${GO_WRKDIR_SRC}/golang.org/x |
| 41 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/matttproud |
46 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/matttproud |
|
|
47 |
${MKDIR} ${GO_WRKDIR_SRC}/github.com/Sirupsen |
| 42 |
${MV} ${WRKSRC_client_golang} ${GO_WRKDIR_SRC}/github.com/prometheus/client_golang |
48 |
${MV} ${WRKSRC_client_golang} ${GO_WRKDIR_SRC}/github.com/prometheus/client_golang |
| 43 |
${MV} ${WRKSRC_client_model} ${GO_WRKDIR_SRC}/github.com/prometheus/client_model |
49 |
${MV} ${WRKSRC_client_model} ${GO_WRKDIR_SRC}/github.com/prometheus/client_model |
| 44 |
${MV} ${WRKSRC_common} ${GO_WRKDIR_SRC}/github.com/prometheus/common |
50 |
${MV} ${WRKSRC_common} ${GO_WRKDIR_SRC}/github.com/prometheus/common |
|
Lines 46-51
pre-build:
Link Here
|
| 46 |
${MV} ${WRKSRC_perks} ${GO_WRKDIR_SRC}/github.com/beorn7/perks |
52 |
${MV} ${WRKSRC_perks} ${GO_WRKDIR_SRC}/github.com/beorn7/perks |
| 47 |
${MV} ${WRKSRC_protobuf} ${GO_WRKDIR_SRC}/github.com/golang/protobuf |
53 |
${MV} ${WRKSRC_protobuf} ${GO_WRKDIR_SRC}/github.com/golang/protobuf |
| 48 |
${MV} ${WRKSRC_extensions} ${GO_WRKDIR_SRC}/github.com/matttproud/golang_protobuf_extensions |
54 |
${MV} ${WRKSRC_extensions} ${GO_WRKDIR_SRC}/github.com/matttproud/golang_protobuf_extensions |
|
|
55 |
${MV} ${WRKSRC_logrus} ${GO_WRKDIR_SRC}/github.com/Sirupsen/logrus |
| 56 |
${MV} ${WRKSRC_crypto} ${GO_WRKDIR_SRC}/golang.org/x/crypto |
| 57 |
${MV} ${WRKSRC_sys} ${GO_WRKDIR_SRC}/golang.org/x/sys |
| 49 |
|
58 |
|
| 50 |
do-install: |
59 |
do-install: |
| 51 |
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/unbound_exporter ${STAGEDIR}${PREFIX}/bin |
60 |
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/unbound_exporter ${STAGEDIR}${PREFIX}/bin |