Index: head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go =================================================================== --- head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go (revision 528805) +++ head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go (nonexistent) @@ -1,68 +0,0 @@ ---- pkg/disk/stat_freebsd.go.orig 2020-02-24 22:16:58 UTC -+++ pkg/disk/stat_freebsd.go -@@ -0,0 +1,65 @@ -+// +build freebsd -+ -+/* -+ * MinIO Cloud Storage, (C) 2019-2020 MinIO, Inc. -+ * -+ * Licensed under the Apache License, Version 2.0 (the "License"); -+ * you may not use this file except in compliance with the License. -+ * You may obtain a copy of the License at -+ * -+ * http://www.apache.org/licenses/LICENSE-2.0 -+ * -+ * Unless required by applicable law or agreed to in writing, software -+ * distributed under the License is distributed on an "AS IS" BASIS, -+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -+ * See the License for the specific language governing permissions and -+ * limitations under the License. -+ */ -+ -+package disk -+ -+import ( -+ "os/user" -+ "strconv" -+ "strings" -+ "syscall" -+) -+ -+// GetFileSystemAttrs return the file system attribute as string; containing mode, -+// uid, gid, uname, Gname, atime, mtime, ctime and md5 -+func GetFileSystemAttrs(file string) (string, error) { -+ st := syscall.Stat_t{} -+ err := syscall.Stat(file, &st) -+ if err != nil { -+ return "", err -+ } -+ -+ var fileAttr strings.Builder -+ fileAttr.WriteString("atime:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Atimespec.Sec))) -+ fileAttr.WriteString("/ctime:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Ctimespec.Sec))) -+ fileAttr.WriteString("/gid:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Gid))) -+ -+ g, err := user.LookupGroupId(strconv.FormatUint(uint64(st.Gid), 10)) -+ if err == nil { -+ fileAttr.WriteString("/gname:") -+ fileAttr.WriteString(g.Name) -+ } -+ -+ fileAttr.WriteString("/mode:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Mode))) -+ fileAttr.WriteString("/mtime:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Mtimespec.Sec))) -+ fileAttr.WriteString("/uid:") -+ fileAttr.WriteString(strconv.Itoa(int(st.Uid))) -+ -+ u, err := user.LookupId(strconv.FormatUint(uint64(st.Uid), 10)) -+ if err == nil { -+ fileAttr.WriteString("/uname:") -+ fileAttr.WriteString(u.Username) -+ } -+ -+ return fileAttr.String(), nil -+} Property changes on: head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/minio-client/Makefile =================================================================== --- head/www/minio-client/Makefile (revision 528805) +++ head/www/minio-client/Makefile (revision 528806) @@ -1,81 +1,82 @@ # $FreeBSD$ PORTNAME= minio-client PORTVERSION= ${GH_TAGNAME:S/RELEASE.//:S/Z//:S/T/-/:S/-/./g} +PORTREVISION= 2 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 .if ${PORT_OPTIONS:MMC} MC= mc .else MC= ${PORTNAME} .endif USE_GITHUB= yes GHTAG= RELEASE.2020-03-14T01-23-37Z COMMIT_ID= 5b5d65a142c5562e412de022a3114e83378096a5 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:etcd:v3.3.12:coreos_etcd/vendor/github.com/coreos/etcd \ 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 \ 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:788fd7840127:go_check_check/vendor/gopkg.in/check.v1 \ go-ini:ini:v1.52.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.4:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ gogo:protobuf:v1.2.1:gogo_protobuf/vendor/github.com/gogo/protobuf \ golang:crypto:1d94cc7ab1c6:golang_crypto/vendor/golang.org/x/crypto \ golang:net:16171245cfb2:golang_net/vendor/golang.org/x/net \ golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \ golang:sys:12a6c2dcc1e4:golang_sys/vendor/golang.org/x/sys \ golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \ google:go-genproto:24fa4b261c55:google_go_genproto/vendor/google.golang.org/genproto \ grpc:grpc-go:v1.22.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 \ kr:pretty:v0.1.0:kr_pretty/vendor/github.com/kr/pretty \ kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \ mattn:go-colorable:v0.1.1:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ mattn:go-isatty:v0.0.7:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ mattn:go-runewidth:v0.0.5:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ minio:cli:v1.22.0:minio_cli/vendor/github.com/minio/cli \ minio:minio-go:097caa7760c7:minio_minio_go/vendor/github.com/minio/minio-go/v6 \ minio:minio:b1a2169dcc5b: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 \ ncw:directio:v1.0.5:ncw_directio/vendor/github.com/ncw/directio \ 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:6ffe496ea953:posener_complete/vendor/github.com/posener/complete \ rjeczalik:notify:v0.9.2:rjeczalik_notify/vendor/github.com/rjeczalik/notify \ secure-io:sio-go:v0.3.0:secure_io_sio_go/vendor/github.com/secure-io/sio-go \ shirou:gopsutil:v2.18.12:shirou_gopsutil/vendor/github.com/shirou/gopsutil 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