Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/unbound_exporter/Makefile
Show All 12 Lines | |||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
USES= go | USES= go | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
USE_RC_SUBR= unbound_exporter | USE_RC_SUBR= unbound_exporter | ||||
GH_ACCOUNT= kumina | GH_ACCOUNT= kumina | ||||
GH_TAGNAME= b7e842d893d29200a5108eab717f5ab01d783c0c | GH_TAGNAME= b7e842d893d29200a5108eab717f5ab01d783c0c | ||||
GH_TUPLE= prometheus:client_golang:3fb53d:client_golang \ | GH_TUPLE= prometheus:client_golang:3fb53d:client_golang/vendor/github.com/prometheus/client_golang \ | ||||
prometheus:client_model:6f38060:client_model \ | prometheus:client_model:6f38060:client_model/vendor/github.com/prometheus/client_model \ | ||||
prometheus:common:49fee29:common \ | prometheus:common:49fee29:common/vendor/github.com/prometheus/common \ | ||||
prometheus:procfs:a1dba9c:procfs \ | prometheus:procfs:a1dba9c:procfs/vendor/github.com/prometheus/procfs \ | ||||
beorn7:perks:4c0e845:perks \ | beorn7:perks:4c0e845:perks/vendor/github.com/beorn7/perks \ | ||||
golang:protobuf:2bba060:protobuf \ | golang:protobuf:2bba060:protobuf/vendor/github.com/golang/protobuf \ | ||||
matttproud:golang_protobuf_extensions:c12348c:extensions \ | matttproud:golang_protobuf_extensions:c12348c:extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ | ||||
sirupsen:logrus:91da99d:logrus \ | sirupsen:logrus:91da99d:logrus/vendor/github.com/Sirupsen/logrus \ | ||||
golang:crypto:3d3f9f41:crypto \ | golang:crypto:3d3f9f41:crypto/vendor/golang.org/x/crypto \ | ||||
golang:sys:93218def:sys | golang:sys:93218def:sys/vendor/golang.org/x/sys | ||||
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} | GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} | ||||
USERS= unbound | USERS= unbound | ||||
GROUPS= unbound | GROUPS= unbound | ||||
PLIST_FILES= bin/unbound_exporter | PLIST_FILES= bin/unbound_exporter | ||||
pre-build: | |||||
${ECHO_CMD} ${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}/golang.org/x | |||||
${MKDIR} ${GO_WRKDIR_SRC}/github.com/matttproud | |||||
${MKDIR} ${GO_WRKDIR_SRC}/github.com/Sirupsen | |||||
${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 | |||||
${MV} ${WRKSRC_logrus} ${GO_WRKDIR_SRC}/github.com/Sirupsen/logrus | |||||
${MV} ${WRKSRC_crypto} ${GO_WRKDIR_SRC}/golang.org/x/crypto | |||||
${MV} ${WRKSRC_sys} ${GO_WRKDIR_SRC}/golang.org/x/sys | |||||
do-install: | |||||
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/unbound_exporter ${STAGEDIR}${PREFIX}/bin | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |