blob: 295b4a53117a2423a131c3e6093919511081aa1d (
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
|
# $FreeBSD$
PORTNAME= minio
PORTVERSION= ${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g}
CATEGORIES= www
MAINTAINER= swills@FreeBSD.org
COMMENT= Amazon S3 compatible object storage server
LICENSE= APACHE20
BUILD_DEPENDS= go>=1.7:lang/go
USES= compiler
USE_GITHUB= yes
GH_TAGNAME= RELEASE.2017-05-05T01-14-51Z
GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME}
COMMIT_ID= 40985cc4e3eec06b7ea82dc34c8d907fd2e7aa12
PLIST_FILES= bin/minio
USE_RC_SUBR= minio
USERS= minio
GROUPS= minio
SUB_LIST= USER="${USERS}" \
GROUP="${GROUPS}"
do-build:
cd ${WRKSRC}/${GH_SUBDIR} ; GOPATH=${WRKSRC} go build --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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
BUILD_ENV= CC=clang
.endif
.include <bsd.port.post.mk>
|