View | Details | Raw Unified | Return to bug 239867
Collapse All | Expand All

(-)www/minio/Makefile (-10 / +9 lines)
Lines 9-20 Link Here
9
9
10
LICENSE=	APACHE20
10
LICENSE=	APACHE20
11
11
12
USES=		compiler go
12
USES=		compiler go:modules
13
13
14
USE_GITHUB=	yes
14
USE_GITHUB=	yes
15
GHTAG=		RELEASE.2019-06-15T23-07-18Z
15
GHTAG=		RELEASE.2019-06-15T23-07-18Z
16
COMMIT_ID=	99bf4d0c429f04dbd013ba98840d07b759ae1702
16
COMMIT_ID=	99bf4d0c429f04dbd013ba98840d07b759ae1702
17
GH_TUPLE=	${PORTNAME}:${PORTNAME}:${GHTAG}:DEFAULT/src/github.com/${PORTNAME}/${PORTNAME} \
17
GH_TUPLE=	${PORTNAME}:${PORTNAME}:${GHTAG}:DEFAULT \
18
		Azure:azure-sdk-for-go:v27.0.0:azure_azure_sdk_for_go/vendor/github.com/Azure/azure-sdk-for-go \
18
		Azure:azure-sdk-for-go:v27.0.0:azure_azure_sdk_for_go/vendor/github.com/Azure/azure-sdk-for-go \
19
		Azure:go-autorest:v11.7.0:azure_go_autorest/vendor/github.com/Azure/go-autorest \
19
		Azure:go-autorest:v11.7.0:azure_go_autorest/vendor/github.com/Azure/go-autorest \
20
		DataDog:zstd:v1.4.0:datadog_zstd/vendor/github.com/DataDog/zstd \
20
		DataDog:zstd:v1.4.0:datadog_zstd/vendor/github.com/DataDog/zstd \
Lines 140-145 Link Here
140
		tidwall:sjson:v1.0.4:tidwall_sjson/vendor/github.com/tidwall/sjson \
140
		tidwall:sjson:v1.0.4:tidwall_sjson/vendor/github.com/tidwall/sjson \
141
		uber-go:atomic:v1.3.2:uber_go_atomic/vendor/go.uber.org/atomic \
141
		uber-go:atomic:v1.3.2:uber_go_atomic/vendor/go.uber.org/atomic \
142
		valyala:tcplisten:ceec8f93295a:valyala_tcplisten/vendor/github.com/valyala/tcplisten
142
		valyala:tcplisten:ceec8f93295a:valyala_tcplisten/vendor/github.com/valyala/tcplisten
143
144
GO_BUILDFLAGS=	-ldflags='\
145
		-X github.com/minio/minio/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} \
146
		-X github.com/minio/minio/cmd.ReleaseTag=${GH_TAGNAME} \
147
		-X github.com/minio/minio/cmd.CommitID=${COMMIT_ID} \
148
		-X github.com/minio/minio/cmd.GOPATH=${WRKSRC} -s -w'
149
143
PLIST_FILES=	bin/${PORTNAME}
150
PLIST_FILES=	bin/${PORTNAME}
144
USE_RC_SUBR=	minio
151
USE_RC_SUBR=	minio
145
152
Lines 149-160 Link Here
149
SUB_LIST=	GROUP="${GROUPS}" \
156
SUB_LIST=	GROUP="${GROUPS}" \
150
		USER="${USERS}"
157
		USER="${USERS}"
151
158
152
do-build:
153
	cd ${WRKSRC}/${GH_SUBDIR} ; \
154
	${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} CGO_ENABLED=0 go build \
155
		--ldflags '-X github.com/minio/minio/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} -X github.com/minio/minio/cmd.ReleaseTag=${GH_TAGNAME} -X github.com/minio/minio/cmd.CommitID=${COMMIT_ID} -X github.com/minio/minio/cmd.GOPATH=${WRKSRC} -s -w' -o ${WRKSRC}/bin/minio
156
157
do-install:
158
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
159
160
.include <bsd.port.mk>
159
.include <bsd.port.mk>

Return to bug 239867