PORTNAME= minio-client PORTVERSION= ${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g} PORTREVISION= 1 CATEGORIES= www MAINTAINER= jhixson@FreeBSD.org COMMENT= Replacement for ls, cp, mkdir, diff and rsync commands for filesystems WWW= https://minio.io/downloads/ #minio-client LICENSE= APACHE20 BROKEN_i386= fails to build USES= go:1.20,modules GH_TAGNAME= RELEASE.2024-01-31T08-59-40Z COMMIT_ID= 62b12a2770828f9d35ee7c5614d900b95ff6e6ab GO_MODULE= github.com/minio/mc@v0.0.0-20240131085940-62b12a277082 OPTIONS_DEFINE= MC MC_DESC= Install as mc .include .if ${PORT_OPTIONS:MMC} MC= mc .else MC= ${PORTNAME} .endif PLIST_FILES= bin/${MC} GO_BUILDFLAGS= -ldflags=" \ -X github.com/minio/mc/cmd.Version=${GH_TAGNAME:C/RELEASE\.//:C|(..)-(..)-(..)Z|\1:\2:\3Z|} \ -X github.com/minio/mc/cmd.ReleaseTag=${GH_TAGNAME} \ -X github.com/minio/mc/cmd.CommitID=${COMMIT_ID} \ -X github.com/minio/mc/cmd.GOPATH=${WRKSRC} -s -w" GO_TARGET= :${MC} # Bring DISTINFO_FILE into scope so we can get the timestamp. .include SOURCE_DATE_EPOCH_CMD= date -ur \ $$(${GREP} -m1 TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') \ '+%Y-%m-%dT%H:%M:%SZ' .include