Line 0
Link Here
|
|
|
1 |
# Created by: Steve Wills <swills@FreeBSD.org> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= consul-template |
5 |
PORTVERSION= 0.3.1 |
6 |
CATEGORIES= textproc |
7 |
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/:group1 \ |
8 |
https://codeload.github.com/armon/consul-api/legacy.tar.gz/0e644b8?dummy=/:group2 \ |
9 |
https://codeload.github.com/hashicorp/hcl/legacy.tar.gz/2c88e7e?dummy=/:group3 \ |
10 |
https://codeload.github.com/hashicorp/logutils/legacy.tar.gz/23b0af5?dummy=/:group4 \ |
11 |
https://codeload.github.com/hashicorp/terraform/legacy.tar.gz/d87fa90?dummy=/:group5 \ |
12 |
https://codeload.github.com/mitchellh/mapstructure/legacy.tar.gz/740c764?dummy=/:group6 |
13 |
DISTFILES= consul-template-0.3.1.tar.gz:group1 \ |
14 |
armon-consul-api-0e644b8.tar.gz:group2 \ |
15 |
hashicorp-hcl-2c88e7e.tar.gz:group3 \ |
16 |
hashicorp-logutils-23b0af5.tar.gz:group4 \ |
17 |
hashicorp-terraform-d87fa90.tar.gz:group5 \ |
18 |
mitchellh-mapstructure-740c764.tar.gz:group6 |
19 |
|
20 |
MAINTAINER= swills@FreeBSD.org |
21 |
COMMENT= Generic template rendering and notifications with Consul |
22 |
|
23 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go |
24 |
|
25 |
USE_GITHUB= yes |
26 |
GH_ACCOUNT= hashicorp |
27 |
GH_COMMIT= e22fbf7 |
28 |
GH_TAGNAME= v${PORTVERSION} |
29 |
|
30 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
31 |
|
32 |
PLIST_FILES= bin/consul-template |
33 |
|
34 |
STRIP= # stripping can break go binaries |
35 |
|
36 |
post-patch: |
37 |
@${MKDIR} ${WRKSRC}/src/github.com/armon |
38 |
@${MKDIR} ${WRKSRC}/src/github.com/hashicorp/consul-template |
39 |
@${MKDIR} ${WRKSRC}/src/github.com/mitchellh |
40 |
@${MV} ${WRKDIR}/armon-consul-api-0e644b8 ${WRKSRC}/src/github.com/armon/consul-api |
41 |
@${MV} ${WRKDIR}/hashicorp-hcl-2c88e7e ${WRKSRC}/src/github.com/hashicorp/hcl |
42 |
@${MV} ${WRKDIR}/hashicorp-logutils-23b0af5 ${WRKSRC}/src/github.com/hashicorp/logutils |
43 |
@${MV} ${WRKDIR}/hashicorp-terraform-d87fa90 ${WRKSRC}/src/github.com/hashicorp/terraform |
44 |
@${MV} ${WRKDIR}/mitchellh-mapstructure-740c764 ${WRKSRC}/src/github.com/mitchellh/mapstructure |
45 |
@${MV} ${WRKSRC}/util ${WRKSRC}/src/github.com/hashicorp/consul-template |
46 |
@${MV} ${WRKSRC}/test ${WRKSRC}/src/github.com/hashicorp/consul-template |
47 |
|
48 |
do-build: |
49 |
@cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build |
50 |
|
51 |
do-install: |
52 |
${INSTALL_PROGRAM} ${WRKSRC}/consul-template-${PORTVERSION} ${STAGEDIR}${PREFIX}/bin/consul-template |
53 |
|
54 |
.include <bsd.port.mk> |