Date: Sat, 12 Sep 2020 20:04:48 +0000 (UTC) From: John Hixson <jhixson@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548418 - in head/www/minio-client: . files Message-ID: <202009122004.08CK4mZf006496@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhixson Date: Sat Sep 12 20:04:48 2020 New Revision: 548418 URL: https://svnweb.freebsd.org/changeset/ports/548418 Log: www/minio-client: update to version RELEASE.2020-09-03T00-08-28Z Added: head/www/minio-client/files/patch-cmd__client-fs_freebsd.go (contents, props changed) head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go (contents, props changed) Modified: head/www/minio-client/Makefile head/www/minio-client/distinfo Modified: head/www/minio-client/Makefile ============================================================================== --- head/www/minio-client/Makefile Sat Sep 12 19:29:15 2020 (r548417) +++ head/www/minio-client/Makefile Sat Sep 12 20:04:48 2020 (r548418) @@ -26,8 +26,8 @@ MC= ${PORTNAME} .endif USE_GITHUB= yes -GHTAG= RELEASE.2020-08-08T02-33-58Z -COMMIT_ID= 7e52c104bee14baed3377931f0df49d4c4b435fc +GHTAG= RELEASE.2020-09-03T00-08-28Z +COMMIT_ID= f99232260606ae4a6ef16613838d202765efa18c 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 \ @@ -59,14 +59,14 @@ GH_TUPLE= minio:mc:${GHTAG}:DEFAULT \ 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-colorable:v0.1.7: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 \ + mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + mattn:go-runewidth:v0.0.9: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:minio-go:5f8d15bbc5fd:minio_minio_go_v7/vendor/github.com/minio/minio-go/v7 \ + minio:minio:cd380251b39d: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 \ @@ -93,5 +93,9 @@ GO_BUILDFLAGS= -ldflags=" \ -X github.com/minio/mc/cmd.CommitID=${COMMIT_ID} \ -X github.com/minio/mc/cmd.GOPATH=${WRKSRC} -s -w" GO_TARGET= :${MC} + +post-extract: + ${RM} ${WRKSRC}/cmd/client-fs_freebsd_netbsd.go + ${RM} ${WRKSRC}/pkg/disk/stat_freebsd_netbsd.go .include <bsd.port.mk> Modified: head/www/minio-client/distinfo ============================================================================== --- head/www/minio-client/distinfo Sat Sep 12 19:29:15 2020 (r548417) +++ head/www/minio-client/distinfo Sat Sep 12 20:04:48 2020 (r548418) @@ -1,6 +1,6 @@ -TIMESTAMP = 1597339793 -SHA256 (minio-mc-2020.08.08.02.33.58-RELEASE.2020-08-08T02-33-58Z_GH0.tar.gz) = 82f25c8e0a8a5eb8b77353ae58730abf553fef777a02b0030c5002dbc820b659 -SIZE (minio-mc-2020.08.08.02.33.58-RELEASE.2020-08-08T02-33-58Z_GH0.tar.gz) = 406116 +TIMESTAMP = 1599940954 +SHA256 (minio-mc-2020.09.03.00.08.28-RELEASE.2020-09-03T00-08-28Z_GH0.tar.gz) = 8a485e658cdf14240c4d019ca6e8eaaae2e0550eae4d893a7241734be858c735 +SIZE (minio-mc-2020.09.03.00.08.28-RELEASE.2020-09-03T00-08-28Z_GH0.tar.gz) = 409579 SHA256 (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 14dbc4af6952acdb1b941d002cd36fd2299aa6b3144cbcbddbb032c47f816da5 SIZE (StackExchange-wmi-cbe66965904d_GH0.tar.gz) = 11279 SHA256 (cheggaaa-pb-v1.0.28_GH0.tar.gz) = f745c5636d3fb59bffab5f9d2a745a94a9608166c20c90936fc66848a5e816e6 @@ -61,22 +61,22 @@ SHA256 (klauspost-cpuid-v1.3.1_GH0.tar.gz) = 3bf2da735 SIZE (klauspost-cpuid-v1.3.1_GH0.tar.gz) = 367144 SHA256 (kr-text-v0.1.0_GH0.tar.gz) = b67f2744020b25f9298153af0992db252d195edd7ca5afa3b19d6ac300c2d14e SIZE (kr-text-v0.1.0_GH0.tar.gz) = 8686 -SHA256 (mattn-go-colorable-v0.1.4_GH0.tar.gz) = 157806ad8125e6bef4d9b58c9125ccb98a8343136f93faf442ab0cc6e7c24c11 -SIZE (mattn-go-colorable-v0.1.4_GH0.tar.gz) = 8981 +SHA256 (mattn-go-colorable-v0.1.7_GH0.tar.gz) = e394441b47cb26bb0c60ffdf2c60d57facbbc39f7a60763fdb1ec752cb460abf +SIZE (mattn-go-colorable-v0.1.7_GH0.tar.gz) = 9560 SHA256 (mattn-go-ieproxy-v0.0.1_GH0.tar.gz) = 26cc1f0d9ba19556cd91e0d4ed07ba2042eacd07c5b9aec082f7a77e2ef1fa28 SIZE (mattn-go-ieproxy-v0.0.1_GH0.tar.gz) = 9090 -SHA256 (mattn-go-isatty-v0.0.8_GH0.tar.gz) = 4f40edb394582f49ac6330bc807be93018216ef485eb65f00adcf61b670d4f3e -SIZE (mattn-go-isatty-v0.0.8_GH0.tar.gz) = 3564 -SHA256 (mattn-go-runewidth-v0.0.2_GH0.tar.gz) = 6c7734401fdf829af4f35a5af21a54548f7d3a68336940fb550178ddfe95b076 -SIZE (mattn-go-runewidth-v0.0.2_GH0.tar.gz) = 22367 +SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c +SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548 +SHA256 (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835 +SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714 SHA256 (minio-cli-v1.22.0_GH0.tar.gz) = f91306a2f1f434e9c31d737914288661286b329a3008f42b7212c6c9f15c3fca SIZE (minio-cli-v1.22.0_GH0.tar.gz) = 58896 SHA256 (minio-md5-simd-v1.1.0_GH0.tar.gz) = f4565eeff59db2fa45fb5f49936381d9a5fad8bd621be33cf96ffd30077111c0 SIZE (minio-md5-simd-v1.1.0_GH0.tar.gz) = 99235 -SHA256 (minio-minio-go-d7db33ea7618_GH0.tar.gz) = 356278223515a63890ae475620b2cd38c1af4e078a412de63c890087271d8005 -SIZE (minio-minio-go-d7db33ea7618_GH0.tar.gz) = 231694 -SHA256 (minio-minio-adcaa6f9de88_GH0.tar.gz) = e3c935a0351697bfca8f24cd82eb181233bd8cb9056f63d2cb632223aaeef51d -SIZE (minio-minio-adcaa6f9de88_GH0.tar.gz) = 9271941 +SHA256 (minio-minio-go-5f8d15bbc5fd_GH0.tar.gz) = 8e508be17b6dddb86595fd8afca2491abf800ee23385037dc67d8ed16df2ad18 +SIZE (minio-minio-go-5f8d15bbc5fd_GH0.tar.gz) = 233077 +SHA256 (minio-minio-cd380251b39d_GH0.tar.gz) = b285c3c398485d5d8772d092d831f81e91a1dec3bf36945a5e58569bc170147e +SIZE (minio-minio-cd380251b39d_GH0.tar.gz) = 10180935 SHA256 (minio-sha256-simd-v0.1.1_GH0.tar.gz) = bc1f1e80dc1291f6d26933658155488cc895f6b8a4944479d462cf5a79112109 SIZE (minio-sha256-simd-v0.1.1_GH0.tar.gz) = 65024 SHA256 (mitchellh-go-homedir-v1.1.0_GH0.tar.gz) = 646671c73a84a8dfb4a5a76b80c7b63549ffefa906524d45077301bc7da76600 Added: head/www/minio-client/files/patch-cmd__client-fs_freebsd.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/minio-client/files/patch-cmd__client-fs_freebsd.go Sat Sep 12 20:04:48 2020 (r548418) @@ -0,0 +1,90 @@ +--- cmd/client-fs_freebsd.go.orig 2020-09-12 19:58:04 UTC ++++ cmd/client-fs_freebsd.go +@@ -0,0 +1,87 @@ ++// +build freebsd netbsd ++ ++/* ++ * MinIO Client (C) 2017 MinIO, Inc. ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this fs 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 cmd ++ ++import ( ++ "github.com/pkg/xattr" ++ "github.com/rjeczalik/notify" ++) ++ ++var ( ++ // EventTypePut contains the notify events that will cause a put (writer) ++ EventTypePut = []notify.Event{notify.Create, notify.Write, notify.Rename} ++ // EventTypeDelete contains the notify events that will cause a delete (remove) ++ EventTypeDelete = []notify.Event{notify.Remove} ++ // EventTypeGet contains the notify events that will cause a get (read) ++ EventTypeGet = []notify.Event{} // On macOS, FreeBSD, Solaris this is not available. ++) ++ ++// IsGetEvent checks if the event return is a get event. ++func IsGetEvent(event notify.Event) bool { ++ return false ++} ++ ++// IsPutEvent checks if the event returned is a put event ++func IsPutEvent(event notify.Event) bool { ++ for _, ev := range EventTypePut { ++ if event&ev != 0 { ++ return true ++ } ++ } ++ return false ++} ++ ++// IsDeleteEvent checks if the event returned is a delete event ++func IsDeleteEvent(event notify.Event) bool { ++ return event¬ify.Remove != 0 ++} ++ ++// getXAttr fetches the extended attribute for a particular key on ++// file ++func getXAttr(path, key string) (string, error) { ++ data, e := xattr.Get(path, key) ++ if e != nil { ++ return "", e ++ } ++ return string(data), nil ++} ++ ++// getAllXattrs returns the extended attributes for a file if supported ++// by the OS ++func getAllXattrs(path string) (map[string]string, error) { ++ xMetadata := make(map[string]string) ++ list, e := xattr.List(path) ++ if e != nil { ++ if isNotSupported(e) { ++ return nil, nil ++ } ++ return nil, e ++ } ++ for _, key := range list { ++ xMetadata[key], e = getXAttr(path, key) ++ if e != nil { ++ if isNotSupported(e) { ++ return nil, nil ++ } ++ return nil, e ++ } ++ ++ } ++ return xMetadata, nil ++} Added: head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/minio-client/files/patch-pkg_disk_stat__freebsd.go Sat Sep 12 20:04:48 2020 (r548418) @@ -0,0 +1,68 @@ +--- pkg/disk/stat_freebsd.go.orig 2020-09-12 19:41:31 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 ++}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009122004.08CK4mZf006496>