# $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.2018-01-18T20-33-21Z GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} COMMIT_ID= e2d5a87b2676e3e01f0f4fa7ebd01205364cfb16 PLIST_FILES= bin/minio USE_RC_SUBR= minio USERS= minio GROUPS= minio SUB_LIST= USER="${USERS}" \ GROUP="${GROUPS}" do-build: @cd ${WRKSRC}/${GH_SUBDIR} ; \ ${SETENV} GOPATH=${WRKSRC} CGO_ENABLED=0 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}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include