freebsd-ports/www/minio-client/Makefile

97 lines
5.1 KiB
Makefile

# $FreeBSD$
PORTNAME= minio-client
PORTVERSION= ${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g}
CATEGORIES= www
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Replacement for ls, cp, mkdir, diff and rsync commands for filesystems
LICENSE= APACHE20
BUILD_DEPENDS= bash:shells/bash
USES= go:modules
OPTIONS_DEFINE= MC
MC_DESC= Install as mc
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMC}
MC= mc
.else
MC= ${PORTNAME}
.endif
USE_GITHUB= yes
GHTAG= RELEASE.2020-08-08T02-33-58Z
COMMIT_ID= 7e52c104bee14baed3377931f0df49d4c4b435fc
GH_TUPLE= minio:mc:${GHTAG}:DEFAULT \
StackExchange:wmi:cbe66965904d:stackexchange_wmi/vendor/github.com/StackExchange/wmi \
cheggaaa:pb:v1.0.28:cheggaaa_pb/vendor/github.com/cheggaaa/pb \
coreos:go-semver:v0.2.0:coreos_go_semver/vendor/github.com/coreos/go-semver \
coreos:go-systemd:v22.0.0:coreos_go_systemd_v22/vendor/github.com/coreos/go-systemd/v22 \
dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
etcd-io:etcd:58bb8ae09f8e:etcd_io_etcd/vendor/go.etcd.io/etcd/v3 \
fatih:color:v1.7.0:fatih_color/vendor/github.com/fatih/color \
fatih:structs:v1.1.0:fatih_structs/vendor/github.com/fatih/structs \
go-check:check:8fa46927fb4f:go_check_check/vendor/gopkg.in/check.v1 \
go-ini:ini:v1.57.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
go-ole:go-ole:v1.2.4:go_ole_go_ole/vendor/github.com/go-ole/go-ole \
go-yaml:yaml:v2.2.8:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
gogo:protobuf:v1.3.1:gogo_protobuf/vendor/github.com/gogo/protobuf \
golang:crypto:123391ffb6de:golang_crypto/vendor/golang.org/x/crypto \
golang:net:ab3426394381:golang_net/vendor/golang.org/x/net \
golang:protobuf:v1.4.0:golang_protobuf/vendor/github.com/golang/protobuf \
golang:sys:5acd03effb82:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.3:golang_text/vendor/golang.org/x/text \
google:go-genproto:24fa4b261c55:google_go_genproto/vendor/google.golang.org/genproto \
google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \
grpc:grpc-go:v1.26.0:grpc_grpc_go/vendor/google.golang.org/grpc \
h2non:filetype:v1.0.5:h2non_filetype/vendor/gopkg.in/h2non/filetype.v1 \
hashicorp:errwrap:v1.0.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \
hashicorp:go-multierror:v1.0.0:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \
inconshreveable:go-update:8152e7eb6ccf:inconshreveable_go_update/vendor/github.com/inconshreveable/go-update \
json-iterator:go:v1.1.10:json_iterator_go/vendor/github.com/json-iterator/go \
klauspost:compress:v1.10.3:klauspost_compress/vendor/github.com/klauspost/compress \
klauspost:cpuid:v1.3.1:klauspost_cpuid/vendor/github.com/klauspost/cpuid \
kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \
mattn:go-colorable:v0.1.4:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
mattn:go-ieproxy:v0.0.1:mattn_go_ieproxy/vendor/github.com/mattn/go-ieproxy \
mattn:go-isatty:v0.0.8:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.2:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
minio:cli:v1.22.0:minio_cli/vendor/github.com/minio/cli \
minio:md5-simd:v1.1.0:minio_md5_simd/vendor/github.com/minio/md5-simd \
minio:minio-go:d7db33ea7618:minio_minio_go_v7/vendor/github.com/minio/minio-go/v7 \
minio:minio:adcaa6f9de88:minio_minio/vendor/github.com/minio/minio \
minio:sha256-simd:v0.1.1:minio_sha256_simd/vendor/github.com/minio/sha256-simd \
mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
montanaflynn:stats:v0.5.0:montanaflynn_stats/vendor/github.com/montanaflynn/stats \
ncw:directio:v1.0.5:ncw_directio/vendor/github.com/ncw/directio \
niemeyer:pretty:a10e7caefd8e:niemeyer_pretty/vendor/github.com/niemeyer/pretty \
pkg:profile:v1.3.0:pkg_profile/vendor/github.com/pkg/profile \
pkg:xattr:v0.4.1:pkg_xattr/vendor/github.com/pkg/xattr \
posener:complete:v1.2.3:posener_complete/vendor/github.com/posener/complete \
protocolbuffers:protobuf-go:v1.22.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
rjeczalik:notify:v0.9.2:rjeczalik_notify/vendor/github.com/rjeczalik/notify \
rs:xid:v1.2.1:rs_xid/vendor/github.com/rs/xid \
secure-io:sio-go:v0.3.0:secure_io_sio_go/vendor/github.com/secure-io/sio-go \
shirou:gopsutil:53cec6b37e6a:shirou_gopsutil/vendor/github.com/shirou/gopsutil \
uber-go:atomic:v1.6.0:uber_go_atomic/vendor/go.uber.org/atomic \
uber-go:multierr:v1.5.0:uber_go_multierr/vendor/go.uber.org/multierr \
uber-go:zap:v1.14.1:uber_go_zap/vendor/go.uber.org/zap
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}
.include <bsd.port.mk>