git: abec1653531d - main - www/pydio-cells: update to 4.0.5

From: Serhii (Sergey) Kozlov <skozlov_at_FreeBSD.org>
Date: Sun, 11 Dec 2022 18:18:02 UTC
The branch main has been updated by skozlov:

URL: https://cgit.FreeBSD.org/ports/commit/?id=abec1653531d49f306289f1862a4fc774dd544e5

commit abec1653531d49f306289f1862a4fc774dd544e5
Author:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
AuthorDate: 2022-12-11 17:30:48 +0000
Commit:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
CommitDate: 2022-12-11 18:17:19 +0000

    www/pydio-cells: update to 4.0.5
    
    Upgrade instructions:   https://pydio.com/en/docs/cells/v4/major-versions-upgrade-informations
    Changelog:              https://github.com/pydio/cells/releases
---
 www/pydio-cells/Makefile                           |   23 +-
 www/pydio-cells/distinfo                           |   10 +-
 www/pydio-cells/files/patch-common_config_dirs.go  |   19 -
 ...com_godbus_dbus_transport__unixcred__freebsd.go |   17 -
 ...com_jaytaylor_go-hostsfile_hosts__path__unix.go |    8 -
 ...github.com_modern-go_reflect2_go__above__118.go |   26 -
 ...github.com_modern-go_reflect2_go__below__118.go |   24 -
 ...r_github.com_modern-go_reflect2_unsafe__link.go |   48 -
 ...or_github.com_modern-go_reflect2_unsafe__map.go |   17 -
 ...g_x_net_internal_socket_zsys__freebsd__arm64.go |   64 -
 ...r_golang.org_x_net_ipv4_zsys__freebsd__arm64.go |   98 -
 ...r_golang.org_x_net_ipv6_zsys__freebsd__arm64.go |  127 --
 ...dor_golang.org_x_sys_unix_asm__freebsd__arm64.s |   32 -
 ...olang.org_x_sys_unix_syscall__freebsd__arm64.go |   55 -
 ...olang.org_x_sys_unix_zerrors__freebsd__arm64.go | 1797 -----------------
 ...lang.org_x_sys_unix_zsyscall__freebsd__arm64.go | 2018 --------------------
 ...olang.org_x_sys_unix_zsysnum__freebsd__arm64.go |  406 ----
 ...golang.org_x_sys_unix_ztypes__freebsd__arm64.go |  605 ------
 ...g_x_net_internal_socket_zsys__freebsd__arm64.go |   64 -
 ...r_golang.org_x_net_ipv4_zsys__freebsd__arm64.go |   98 -
 ...r_golang.org_x_net_ipv6_zsys__freebsd__arm64.go |  127 --
 ...dor_golang.org_x_sys_unix_asm__freebsd__arm64.s |   32 -
 ...olang.org_x_sys_unix_syscall__freebsd__arm64.go |   55 -
 ...olang.org_x_sys_unix_zerrors__freebsd__arm64.go | 1760 -----------------
 ...lang.org_x_sys_unix_zsyscall__freebsd__arm64.go | 1940 -------------------
 ...olang.org_x_sys_unix_zsysnum__freebsd__arm64.go |  356 ----
 ...golang.org_x_sys_unix_ztypes__freebsd__arm64.go |  559 ------
 27 files changed, 12 insertions(+), 10373 deletions(-)

diff --git a/www/pydio-cells/Makefile b/www/pydio-cells/Makefile
index 451c3c3bcd8f..d48c9cc45c4f 100644
--- a/www/pydio-cells/Makefile
+++ b/www/pydio-cells/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	cells
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.0.9
-PORTREVISION=	3
+DISTVERSION=	4.0.5
 CATEGORIES=	www
 PKGNAMEPREFIX=	pydio-
 
@@ -15,16 +14,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 NOT_FOR_ARCHS=	i386
 NOT_FOR_ARCHS_REASON=	Not supported on i386
 
-BUILD_DEPENDS=	pydio-packr:devel/pydio-packr
-
-USES=		cpe go gmake
+USES=		cpe go:modules gmake
 CPE_VENDOR=	pydio
 USE_RC_SUBR=	${PORTNAME}
 USE_GITHUB=	yes
 GH_ACCOUNT=	pydio
 
-GO_PKGNAME=	github.com/pydio/cells
-GO_BUILDFLAGS=	-ldflags "-X github.com/pydio/cells/common.version=${DISTVERSION}"
+GO_MODULE=	github.com/pydio/cells/v4
+GO_BUILDFLAGS=	-ldflags "-X github.com/pydio/cells/v4/common.version=${DISTVERSION}\
+		-X github.com/pydio/cells/v4/common.BuildStamp=1970-01-01T00:00:00"
 
 USERS=		pydio
 GROUPS=		pydio
@@ -36,17 +34,6 @@ OPTIONS_DEFAULT=	BASH ZSH
 BASH_PLIST_FILES=	etc/bash_completion.d/${PORTNAME}
 ZSH_PLIST_FILES=	share/zsh/site-functions/_${PORTNAME}
 
-post-patch:
-	${REINPLACE_CMD} -e "s|\$${GOPATH}/bin/packr|${LOCALBASE}/bin/pydio-packr|g" \
-		${WRKSRC}/Makefile
-	# Linux keyring code is compatible with FreeBSD
-	cd ${WRKSRC}/vendor/github.com/zalando/go-keyring && \
-		${LN} -s keyring_linux.go keyring_freebsd.go
-
-pre-build:
-	@cd ${WRKSRC} && \
-		${MAKE_CMD} generate
-
 post-build-BASH-on:
 	${SETENV} CELLS_WORKING_DIR=${WRKDIR}/wrkdir \
 		${GO_WRKDIR_BIN}/${PORTNAME} tools completion bash \
diff --git a/www/pydio-cells/distinfo b/www/pydio-cells/distinfo
index a3d7b25767a4..21e372105f1a 100644
--- a/www/pydio-cells/distinfo
+++ b/www/pydio-cells/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1660951029
-SHA256 (pydio-cells-v3.0.9_GH0.tar.gz) = 4ddc3389304fa0bc7fdf704ec86882781aaa272c56f2db6fa775205d929f257a
-SIZE (pydio-cells-v3.0.9_GH0.tar.gz) = 99695591
+TIMESTAMP = 1670619645
+SHA256 (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/v4.0.5.mod) = 83f5062dbb19e3a163d67f48807f45f06b8edf2b3239f8b1f520e97feb9ff4b0
+SIZE (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/v4.0.5.mod) = 25373
+SHA256 (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/v4.0.5.zip) = 78618e86a5344d9d7a7e0b838e0df95d3cc49f16db2d16641b7a3b4f2ad7625c
+SIZE (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/v4.0.5.zip) = 58799516
+SHA256 (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/pydio-cells-v4.0.5_GH0.tar.gz) = 89930338cdb3a648da5328157d767cea00b7cd5d87f9d3ec699d8c317afbb951
+SIZE (go/www_pydio-cells/pydio-cells-v4.0.5_GH0/pydio-cells-v4.0.5_GH0.tar.gz) = 53254386
diff --git a/www/pydio-cells/files/patch-common_config_dirs.go b/www/pydio-cells/files/patch-common_config_dirs.go
deleted file mode 100644
index 3f72940370be..000000000000
--- a/www/pydio-cells/files/patch-common_config_dirs.go
+++ /dev/null
@@ -1,19 +0,0 @@
---- common/config/dirs.go.orig	2021-05-06 12:02:02 UTC
-+++ common/config/dirs.go
-@@ -54,9 +54,14 @@ func ApplicationWorkingDir(dirType ...ApplicationDirTy
- 	} else if d == ApplicationDirServices && os.Getenv("CELLS_SERVICES_DIR") != "" {
- 		f = os.Getenv("CELLS_SERVICES_DIR")
- 	} else {
--		vendor := "Pydio"
--		if runtime.GOOS == "linux" {
-+		// Pull request upstream:
-+		// https://github.com/pydio/cells/pull/326
-+		var vendor string
-+		switch runtime.GOOS {
-+		case "linux", "freebsd":
- 			vendor = "pydio"
-+		default:
-+			vendor = "Pydio"
- 		}
- 		appName := "cells"
- 		configDirs := configdir.New(vendor, appName)
diff --git a/www/pydio-cells/files/patch-vendor_github.com_godbus_dbus_transport__unixcred__freebsd.go b/www/pydio-cells/files/patch-vendor_github.com_godbus_dbus_transport__unixcred__freebsd.go
deleted file mode 100644
index 1b2bb0d7086f..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_godbus_dbus_transport__unixcred__freebsd.go
+++ /dev/null
@@ -1,17 +0,0 @@
---- vendor/github.com/godbus/dbus/transport_unixcred_freebsd.go.orig	2021-05-06 12:02:02 UTC
-+++ vendor/github.com/godbus/dbus/transport_unixcred_freebsd.go
-@@ -4,12 +4,14 @@
- // http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
- 
- // Local implementation of the UnixCredentials system call for FreeBSD
-+// Patch added from upstream project: https://github.com/godbus/dbus/commit/efee8394fa9a426004eb24eed1dee80f5efd90af
- 
- package dbus
- 
- /*
- const int sizeofPtr = sizeof(void*);
- #define _WANT_UCRED
-+#include <sys/types.h>
- #include <sys/ucred.h>
- */
- import "C"
diff --git a/www/pydio-cells/files/patch-vendor_github.com_jaytaylor_go-hostsfile_hosts__path__unix.go b/www/pydio-cells/files/patch-vendor_github.com_jaytaylor_go-hostsfile_hosts__path__unix.go
deleted file mode 100644
index 5d76daf6305d..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_jaytaylor_go-hostsfile_hosts__path__unix.go
+++ /dev/null
@@ -1,8 +0,0 @@
---- vendor/github.com/jaytaylor/go-hostsfile/hosts_path_unix.go.orig	2021-05-10 22:23:40 UTC
-+++ vendor/github.com/jaytaylor/go-hostsfile/hosts_path_unix.go
-@@ -1,4 +1,4 @@
--// +build linux darwin
-+// +build !plan9 !windows
- 
- package hostsfile
- 
diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go
deleted file mode 100644
index a5f30e6a87c6..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__above__118.go
+++ /dev/null
@@ -1,26 +0,0 @@
---- vendor/github.com/modern-go/reflect2/go_above_118.go.orig	2022-04-16 21:52:43 UTC
-+++ vendor/github.com/modern-go/reflect2/go_above_118.go
-@@ -0,0 +1,23 @@
-+//+build go1.18
-+
-+package reflect2
-+
-+import (
-+	"unsafe"
-+)
-+
-+// m escapes into the return value, but the caller of mapiterinit
-+// doesn't let the return value escape.
-+//go:noescape
-+//go:linkname mapiterinit reflect.mapiterinit
-+func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter)
-+
-+func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
-+	var it hiter
-+	mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it)
-+	return &UnsafeMapIterator{
-+		hiter:      &it,
-+		pKeyRType:  type2.pKeyRType,
-+		pElemRType: type2.pElemRType,
-+	}
-+}
diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go
deleted file mode 100644
index f47f8687a646..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_go__below__118.go
+++ /dev/null
@@ -1,24 +0,0 @@
---- vendor/github.com/modern-go/reflect2/go_below_118.go.orig	2022-04-16 21:56:08 UTC
-+++ vendor/github.com/modern-go/reflect2/go_below_118.go
-@@ -0,0 +1,21 @@
-+//+build !go1.18
-+
-+package reflect2
-+
-+import (
-+	"unsafe"
-+)
-+
-+// m escapes into the return value, but the caller of mapiterinit
-+// doesn't let the return value escape.
-+//go:noescape
-+//go:linkname mapiterinit reflect.mapiterinit
-+func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter)
-+
-+func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
-+	return &UnsafeMapIterator{
-+		hiter:      mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)),
-+		pKeyRType:  type2.pKeyRType,
-+		pElemRType: type2.pElemRType,
-+	}
-+}
diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go
deleted file mode 100644
index 3775e509f697..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__link.go
+++ /dev/null
@@ -1,48 +0,0 @@
---- vendor/github.com/modern-go/reflect2/unsafe_link.go.orig	2022-04-16 22:01:31 UTC
-+++ vendor/github.com/modern-go/reflect2/unsafe_link.go
-@@ -19,19 +19,13 @@ func typedslicecopy(elemType unsafe.Pointer, dst, src 
- 
- //go:linkname mapassign reflect.mapassign
- //go:noescape
--func mapassign(rtype unsafe.Pointer, m unsafe.Pointer, key, val unsafe.Pointer)
-+func mapassign(rtype unsafe.Pointer, m unsafe.Pointer, key unsafe.Pointer, val unsafe.Pointer)
- 
- //go:linkname mapaccess reflect.mapaccess
- //go:noescape
- func mapaccess(rtype unsafe.Pointer, m unsafe.Pointer, key unsafe.Pointer) (val unsafe.Pointer)
- 
--// m escapes into the return value, but the caller of mapiterinit
--// doesn't let the return value escape.
- //go:noescape
--//go:linkname mapiterinit reflect.mapiterinit
--func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) *hiter
--
--//go:noescape
- //go:linkname mapiternext reflect.mapiternext
- func mapiternext(it *hiter)
- 
-@@ -42,9 +36,21 @@ func ifaceE2I(rtype unsafe.Pointer, src interface{}, d
- // If you modify hiter, also change cmd/internal/gc/reflect.go to indicate
- // the layout of this structure.
- type hiter struct {
--	key   unsafe.Pointer // Must be in first position.  Write nil to indicate iteration end (see cmd/internal/gc/range.go).
--	value unsafe.Pointer // Must be in second position (see cmd/internal/gc/range.go).
--	// rest fields are ignored
-+	key         unsafe.Pointer
-+	value       unsafe.Pointer
-+	t           unsafe.Pointer
-+	h           unsafe.Pointer
-+	buckets     unsafe.Pointer
-+	bptr        unsafe.Pointer
-+	overflow    *[]unsafe.Pointer
-+	oldoverflow *[]unsafe.Pointer
-+	startBucket uintptr
-+	offset      uint8
-+	wrapped     bool
-+	B           uint8
-+	i           uint8
-+	bucket      uintptr
-+	checkBucket uintptr
- }
- 
- // add returns p+x.
diff --git a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go b/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go
deleted file mode 100644
index 1e4699268cb7..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_modern-go_reflect2_unsafe__map.go
+++ /dev/null
@@ -1,17 +0,0 @@
---- vendor/github.com/modern-go/reflect2/unsafe_map.go.orig	2022-04-16 22:00:28 UTC
-+++ vendor/github.com/modern-go/reflect2/unsafe_map.go
-@@ -107,14 +107,6 @@ func (type2 *UnsafeMapType) Iterate(obj interface{}) M
- 	return type2.UnsafeIterate(objEFace.data)
- }
- 
--func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
--	return &UnsafeMapIterator{
--		hiter:      mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)),
--		pKeyRType:  type2.pKeyRType,
--		pElemRType: type2.pElemRType,
--	}
--}
--
- type UnsafeMapIterator struct {
- 	*hiter
- 	pKeyRType  unsafe.Pointer
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go
deleted file mode 100644
index 30ad735a2f2b..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_internal_socket_zsys__freebsd__arm64.go
+++ /dev/null
@@ -1,64 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go.orig	2021-11-14 16:21:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go
-@@ -0,0 +1,61 @@
-+// Created by cgo -godefs - DO NOT EDIT
-+// cgo -godefs defs_freebsd.go
-+
-+package socket
-+
-+const (
-+	sysAF_UNSPEC = 0x0
-+	sysAF_INET   = 0x2
-+	sysAF_INET6  = 0x1c
-+
-+	sysSOCK_RAW = 0x3
-+)
-+
-+type iovec struct {
-+	Base *byte
-+	Len  uint64
-+}
-+
-+type msghdr struct {
-+	Name       *byte
-+	Namelen    uint32
-+	Pad_cgo_0  [4]byte
-+	Iov        *iovec
-+	Iovlen     int32
-+	Pad_cgo_1  [4]byte
-+	Control    *byte
-+	Controllen uint32
-+	Flags      int32
-+}
-+
-+type cmsghdr struct {
-+	Len   uint32
-+	Level int32
-+	Type  int32
-+}
-+
-+type sockaddrInet struct {
-+	Len    uint8
-+	Family uint8
-+	Port   uint16
-+	Addr   [4]byte /* in_addr */
-+	Zero   [8]int8
-+}
-+
-+type sockaddrInet6 struct {
-+	Len      uint8
-+	Family   uint8
-+	Port     uint16
-+	Flowinfo uint32
-+	Addr     [16]byte /* in6_addr */
-+	Scope_id uint32
-+}
-+
-+const (
-+	sizeofIovec   = 0x10
-+	sizeofMsghdr  = 0x30
-+	sizeofCmsghdr = 0xc
-+
-+	sizeofSockaddrInet  = 0x10
-+	sizeofSockaddrInet6 = 0x1c
-+)
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go
deleted file mode 100644
index adfc61a884e1..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv4_zsys__freebsd__arm64.go
+++ /dev/null
@@ -1,98 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm64.go.orig	2021-11-14 16:21:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/ipv4/zsys_freebsd_arm64.go
-@@ -0,0 +1,95 @@
-+// Created by cgo -godefs - DO NOT EDIT
-+// cgo -godefs defs_freebsd.go
-+
-+package ipv4
-+
-+const (
-+	sysIP_OPTIONS     = 0x1
-+	sysIP_HDRINCL     = 0x2
-+	sysIP_TOS         = 0x3
-+	sysIP_TTL         = 0x4
-+	sysIP_RECVOPTS    = 0x5
-+	sysIP_RECVRETOPTS = 0x6
-+	sysIP_RECVDSTADDR = 0x7
-+	sysIP_SENDSRCADDR = 0x7
-+	sysIP_RETOPTS     = 0x8
-+	sysIP_RECVIF      = 0x14
-+	sysIP_ONESBCAST   = 0x17
-+	sysIP_BINDANY     = 0x18
-+	sysIP_RECVTTL     = 0x41
-+	sysIP_MINTTL      = 0x42
-+	sysIP_DONTFRAG    = 0x43
-+	sysIP_RECVTOS     = 0x44
-+
-+	sysIP_MULTICAST_IF           = 0x9
-+	sysIP_MULTICAST_TTL          = 0xa
-+	sysIP_MULTICAST_LOOP         = 0xb
-+	sysIP_ADD_MEMBERSHIP         = 0xc
-+	sysIP_DROP_MEMBERSHIP        = 0xd
-+	sysIP_MULTICAST_VIF          = 0xe
-+	sysIP_ADD_SOURCE_MEMBERSHIP  = 0x46
-+	sysIP_DROP_SOURCE_MEMBERSHIP = 0x47
-+	sysIP_BLOCK_SOURCE           = 0x48
-+	sysIP_UNBLOCK_SOURCE         = 0x49
-+	sysMCAST_JOIN_GROUP          = 0x50
-+	sysMCAST_LEAVE_GROUP         = 0x51
-+	sysMCAST_JOIN_SOURCE_GROUP   = 0x52
-+	sysMCAST_LEAVE_SOURCE_GROUP  = 0x53
-+	sysMCAST_BLOCK_SOURCE        = 0x54
-+	sysMCAST_UNBLOCK_SOURCE      = 0x55
-+
-+	sizeofSockaddrStorage = 0x80
-+	sizeofSockaddrInet    = 0x10
-+
-+	sizeofIPMreq         = 0x8
-+	sizeofIPMreqn        = 0xc
-+	sizeofIPMreqSource   = 0xc
-+	sizeofGroupReq       = 0x88
-+	sizeofGroupSourceReq = 0x108
-+)
-+
-+type sockaddrStorage struct {
-+	Len         uint8
-+	Family      uint8
-+	X__ss_pad1  [6]int8
-+	X__ss_align int64
-+	X__ss_pad2  [112]int8
-+}
-+
-+type sockaddrInet struct {
-+	Len    uint8
-+	Family uint8
-+	Port   uint16
-+	Addr   [4]byte /* in_addr */
-+	Zero   [8]int8
-+}
-+
-+type ipMreq struct {
-+	Multiaddr [4]byte /* in_addr */
-+	Interface [4]byte /* in_addr */
-+}
-+
-+type ipMreqn struct {
-+	Multiaddr [4]byte /* in_addr */
-+	Address   [4]byte /* in_addr */
-+	Ifindex   int32
-+}
-+
-+type ipMreqSource struct {
-+	Multiaddr  [4]byte /* in_addr */
-+	Sourceaddr [4]byte /* in_addr */
-+	Interface  [4]byte /* in_addr */
-+}
-+
-+type groupReq struct {
-+	Interface uint32
-+	Pad_cgo_0 [4]byte
-+	Group     sockaddrStorage
-+}
-+
-+type groupSourceReq struct {
-+	Interface uint32
-+	Pad_cgo_0 [4]byte
-+	Group     sockaddrStorage
-+	Source    sockaddrStorage
-+}
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go
deleted file mode 100644
index 13f8713c2a25..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_net_ipv6_zsys__freebsd__arm64.go
+++ /dev/null
@@ -1,127 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/ipv6/zsys_freebsd_arm64.go.orig	2021-11-14 16:21:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/net/ipv6/zsys_freebsd_arm64.go
-@@ -0,0 +1,124 @@
-+// Created by cgo -godefs - DO NOT EDIT
-+// cgo -godefs defs_freebsd.go
-+
-+package ipv6
-+
-+const (
-+	sysIPV6_UNICAST_HOPS   = 0x4
-+	sysIPV6_MULTICAST_IF   = 0x9
-+	sysIPV6_MULTICAST_HOPS = 0xa
-+	sysIPV6_MULTICAST_LOOP = 0xb
-+	sysIPV6_JOIN_GROUP     = 0xc
-+	sysIPV6_LEAVE_GROUP    = 0xd
-+	sysIPV6_PORTRANGE      = 0xe
-+	sysICMP6_FILTER        = 0x12
-+
-+	sysIPV6_CHECKSUM = 0x1a
-+	sysIPV6_V6ONLY   = 0x1b
-+
-+	sysIPV6_IPSEC_POLICY = 0x1c
-+
-+	sysIPV6_RTHDRDSTOPTS = 0x23
-+
-+	sysIPV6_RECVPKTINFO  = 0x24
-+	sysIPV6_RECVHOPLIMIT = 0x25
-+	sysIPV6_RECVRTHDR    = 0x26
-+	sysIPV6_RECVHOPOPTS  = 0x27
-+	sysIPV6_RECVDSTOPTS  = 0x28
-+
-+	sysIPV6_USE_MIN_MTU = 0x2a
-+	sysIPV6_RECVPATHMTU = 0x2b
-+
-+	sysIPV6_PATHMTU = 0x2c
-+
-+	sysIPV6_PKTINFO  = 0x2e
-+	sysIPV6_HOPLIMIT = 0x2f
-+	sysIPV6_NEXTHOP  = 0x30
-+	sysIPV6_HOPOPTS  = 0x31
-+	sysIPV6_DSTOPTS  = 0x32
-+	sysIPV6_RTHDR    = 0x33
-+
-+	sysIPV6_RECVTCLASS = 0x39
-+
-+	sysIPV6_AUTOFLOWLABEL = 0x3b
-+
-+	sysIPV6_TCLASS   = 0x3d
-+	sysIPV6_DONTFRAG = 0x3e
-+
-+	sysIPV6_PREFER_TEMPADDR = 0x3f
-+
-+	sysIPV6_BINDANY = 0x40
-+
-+	sysIPV6_MSFILTER = 0x4a
-+
-+	sysMCAST_JOIN_GROUP         = 0x50
-+	sysMCAST_LEAVE_GROUP        = 0x51
-+	sysMCAST_JOIN_SOURCE_GROUP  = 0x52
-+	sysMCAST_LEAVE_SOURCE_GROUP = 0x53
-+	sysMCAST_BLOCK_SOURCE       = 0x54
-+	sysMCAST_UNBLOCK_SOURCE     = 0x55
-+
-+	sysIPV6_PORTRANGE_DEFAULT = 0x0
-+	sysIPV6_PORTRANGE_HIGH    = 0x1
-+	sysIPV6_PORTRANGE_LOW     = 0x2
-+
-+	sizeofSockaddrStorage = 0x80
-+	sizeofSockaddrInet6   = 0x1c
-+	sizeofInet6Pktinfo    = 0x14
-+	sizeofIPv6Mtuinfo     = 0x20
-+
-+	sizeofIPv6Mreq       = 0x14
-+	sizeofGroupReq       = 0x88
-+	sizeofGroupSourceReq = 0x108
-+
-+	sizeofICMPv6Filter = 0x20
-+)
-+
-+type sockaddrStorage struct {
-+	Len         uint8
-+	Family      uint8
-+	X__ss_pad1  [6]int8
-+	X__ss_align int64
-+	X__ss_pad2  [112]int8
-+}
-+
-+type sockaddrInet6 struct {
-+	Len      uint8
-+	Family   uint8
-+	Port     uint16
-+	Flowinfo uint32
-+	Addr     [16]byte /* in6_addr */
-+	Scope_id uint32
-+}
-+
-+type inet6Pktinfo struct {
-+	Addr    [16]byte /* in6_addr */
-+	Ifindex uint32
-+}
-+
-+type ipv6Mtuinfo struct {
-+	Addr sockaddrInet6
-+	Mtu  uint32
-+}
-+
-+type ipv6Mreq struct {
-+	Multiaddr [16]byte /* in6_addr */
-+	Interface uint32
-+}
-+
-+type groupReq struct {
-+	Interface uint32
-+	Pad_cgo_0 [4]byte
-+	Group     sockaddrStorage
-+}
-+
-+type groupSourceReq struct {
-+	Interface uint32
-+	Pad_cgo_0 [4]byte
-+	Group     sockaddrStorage
-+	Source    sockaddrStorage
-+}
-+
-+type icmpv6Filter struct {
-+	Filt [8]uint32
-+}
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_asm__freebsd__arm64.s b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_asm__freebsd__arm64.s
deleted file mode 100644
index fcbbb16385ca..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_asm__freebsd__arm64.s
+++ /dev/null
@@ -1,32 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s.orig	2021-11-14 15:14:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s
-@@ -0,0 +1,29 @@
-+// Copyright 2018 The Go Authors. All rights reserved.
-+// Use of this source code is governed by a BSD-style
-+// license that can be found in the LICENSE file.
-+
-+// +build !gccgo
-+
-+#include "textflag.h"
-+
-+//
-+// System call support for ARM64, FreeBSD
-+//
-+
-+// Just jump to package syscall's implementation for all these functions.
-+// The runtime may know about them.
-+
-+TEXT	·Syscall(SB),NOSPLIT,$0-56
-+	JMP	syscall·Syscall(SB)
-+
-+TEXT	·Syscall6(SB),NOSPLIT,$0-80
-+	JMP	syscall·Syscall6(SB)
-+
-+TEXT	·Syscall9(SB),NOSPLIT,$0-104
-+	JMP	syscall·Syscall9(SB)
-+
-+TEXT ·RawSyscall(SB),NOSPLIT,$0-56
-+	JMP	syscall·RawSyscall(SB)
-+
-+TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
-+	JMP	syscall·RawSyscall6(SB)
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_syscall__freebsd__arm64.go b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_syscall__freebsd__arm64.go
deleted file mode 100644
index 6e76c9004c24..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_syscall__freebsd__arm64.go
+++ /dev/null
@@ -1,55 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go.orig	2021-11-14 15:14:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
-@@ -0,0 +1,52 @@
-+// Copyright 2018 The Go Authors. All rights reserved.
-+// Use of this source code is governed by a BSD-style
-+// license that can be found in the LICENSE file.
-+
-+// +build arm64,freebsd
-+
-+package unix
-+
-+import (
-+	"syscall"
-+	"unsafe"
-+)
-+
-+func setTimespec(sec, nsec int64) Timespec {
-+	return Timespec{Sec: sec, Nsec: nsec}
-+}
-+
-+func setTimeval(sec, usec int64) Timeval {
-+	return Timeval{Sec: sec, Usec: usec}
-+}
-+
-+func SetKevent(k *Kevent_t, fd, mode, flags int) {
-+	k.Ident = uint64(fd)
-+	k.Filter = int16(mode)
-+	k.Flags = uint16(flags)
-+}
-+
-+func (iov *Iovec) SetLen(length int) {
-+	iov.Len = uint64(length)
-+}
-+
-+func (msghdr *Msghdr) SetControllen(length int) {
-+	msghdr.Controllen = uint32(length)
-+}
-+
-+func (cmsg *Cmsghdr) SetLen(length int) {
-+	cmsg.Len = uint32(length)
-+}
-+
-+func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
-+	var writtenOut uint64 = 0
-+	_, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0)
-+
-+	written = int(writtenOut)
-+
-+	if e1 != 0 {
-+		err = e1
-+	}
-+	return
-+}
-+
-+func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
diff --git a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_zerrors__freebsd__arm64.go b/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_zerrors__freebsd__arm64.go
deleted file mode 100644
index 760852dd43e1..000000000000
--- a/www/pydio-cells/files/patch-vendor_github.com_pydio_minio-srv_vendor_golang.org_x_sys_unix_zerrors__freebsd__arm64.go
+++ /dev/null
@@ -1,1797 +0,0 @@
---- vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go.orig	2021-11-14 15:14:11 UTC
-+++ vendor/github.com/pydio/minio-srv/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go
-@@ -0,0 +1,1794 @@
-+// mkerrors.sh -m64
-+// Code generated by the command above; see README.md. DO NOT EDIT.
-+
-+// +build arm64,freebsd
-+
-+// Created by cgo -godefs - DO NOT EDIT
-+// cgo -godefs -- -m64 _const.go
-+
-+package unix
-+
-+import "syscall"
-+
-+const (
-+	AF_APPLETALK                   = 0x10
-+	AF_ARP                         = 0x23
-+	AF_ATM                         = 0x1e
-+	AF_BLUETOOTH                   = 0x24
-+	AF_CCITT                       = 0xa
-+	AF_CHAOS                       = 0x5
-+	AF_CNT                         = 0x15
-+	AF_COIP                        = 0x14
-+	AF_DATAKIT                     = 0x9
-+	AF_DECnet                      = 0xc
-+	AF_DLI                         = 0xd
-+	AF_E164                        = 0x1a
-+	AF_ECMA                        = 0x8
-+	AF_HYLINK                      = 0xf
-+	AF_IEEE80211                   = 0x25
-+	AF_IMPLINK                     = 0x3
-+	AF_INET                        = 0x2
-+	AF_INET6                       = 0x1c
-+	AF_INET6_SDP                   = 0x2a
-+	AF_INET_SDP                    = 0x28
-+	AF_IPX                         = 0x17
-+	AF_ISDN                        = 0x1a
-+	AF_ISO                         = 0x7
-+	AF_LAT                         = 0xe
-+	AF_LINK                        = 0x12
-+	AF_LOCAL                       = 0x1
-+	AF_MAX                         = 0x2a
-+	AF_NATM                        = 0x1d
-+	AF_NETBIOS                     = 0x6
-+	AF_NETGRAPH                    = 0x20
-+	AF_OSI                         = 0x7
-+	AF_PUP                         = 0x4
-+	AF_ROUTE                       = 0x11
-+	AF_SCLUSTER                    = 0x22
-+	AF_SIP                         = 0x18
-+	AF_SLOW                        = 0x21
-+	AF_SNA                         = 0xb
-+	AF_UNIX                        = 0x1
-+	AF_UNSPEC                      = 0x0
-+	AF_VENDOR00                    = 0x27
-+	AF_VENDOR01                    = 0x29
-+	AF_VENDOR02                    = 0x2b
-+	AF_VENDOR03                    = 0x2d
-+	AF_VENDOR04                    = 0x2f
-+	AF_VENDOR05                    = 0x31
-+	AF_VENDOR06                    = 0x33
-+	AF_VENDOR07                    = 0x35
-+	AF_VENDOR08                    = 0x37
-+	AF_VENDOR09                    = 0x39
-+	AF_VENDOR10                    = 0x3b
-+	AF_VENDOR11                    = 0x3d
-+	AF_VENDOR12                    = 0x3f
-+	AF_VENDOR13                    = 0x41
-+	AF_VENDOR14                    = 0x43
-+	AF_VENDOR15                    = 0x45
-+	AF_VENDOR16                    = 0x47
-+	AF_VENDOR17                    = 0x49
-+	AF_VENDOR18                    = 0x4b
-+	AF_VENDOR19                    = 0x4d
-+	AF_VENDOR20                    = 0x4f
-+	AF_VENDOR21                    = 0x51
-+	AF_VENDOR22                    = 0x53
-+	AF_VENDOR23                    = 0x55
-+	AF_VENDOR24                    = 0x57
-+	AF_VENDOR25                    = 0x59
-+	AF_VENDOR26                    = 0x5b
-+	AF_VENDOR27                    = 0x5d
-+	AF_VENDOR28                    = 0x5f
-+	AF_VENDOR29                    = 0x61
-+	AF_VENDOR30                    = 0x63
-+	AF_VENDOR31                    = 0x65
-+	AF_VENDOR32                    = 0x67
-+	AF_VENDOR33                    = 0x69
-+	AF_VENDOR34                    = 0x6b
-+	AF_VENDOR35                    = 0x6d
-+	AF_VENDOR36                    = 0x6f
-+	AF_VENDOR37                    = 0x71
-+	AF_VENDOR38                    = 0x73
-+	AF_VENDOR39                    = 0x75
-+	AF_VENDOR40                    = 0x77
-+	AF_VENDOR41                    = 0x79
-+	AF_VENDOR42                    = 0x7b
-+	AF_VENDOR43                    = 0x7d
-+	AF_VENDOR44                    = 0x7f
-+	AF_VENDOR45                    = 0x81
-+	AF_VENDOR46                    = 0x83
-+	AF_VENDOR47                    = 0x85
-+	ALTWERASE                      = 0x200
-+	B0                             = 0x0
-+	B110                           = 0x6e
-+	B115200                        = 0x1c200
-+	B1200                          = 0x4b0
-+	B134                           = 0x86
-+	B14400                         = 0x3840
-+	B150                           = 0x96
-+	B1800                          = 0x708
-+	B19200                         = 0x4b00
-+	B200                           = 0xc8
-+	B230400                        = 0x38400
-+	B2400                          = 0x960
-+	B28800                         = 0x7080
-+	B300                           = 0x12c
-+	B38400                         = 0x9600
-+	B460800                        = 0x70800
-+	B4800                          = 0x12c0
-+	B50                            = 0x32
-+	B57600                         = 0xe100
-+	B600                           = 0x258
-+	B7200                          = 0x1c20
-+	B75                            = 0x4b
-+	B76800                         = 0x12c00
-+	B921600                        = 0xe1000
-+	B9600                          = 0x2580
-+	BIOCFEEDBACK                   = 0x8004427c
-+	BIOCFLUSH                      = 0x20004268
-+	BIOCGBLEN                      = 0x40044266
-+	BIOCGDIRECTION                 = 0x40044276
-+	BIOCGDLT                       = 0x4004426a
-+	BIOCGDLTLIST                   = 0xc0104279
-+	BIOCGETBUFMODE                 = 0x4004427d
-+	BIOCGETIF                      = 0x4020426b
-+	BIOCGETZMAX                    = 0x4008427f
-+	BIOCGHDRCMPLT                  = 0x40044274
-+	BIOCGRSIG                      = 0x40044272
-+	BIOCGRTIMEOUT                  = 0x4010426e
-+	BIOCGSEESENT                   = 0x40044276
-+	BIOCGSTATS                     = 0x4008426f
-+	BIOCGTSTAMP                    = 0x40044283
-+	BIOCIMMEDIATE                  = 0x80044270
-+	BIOCLOCK                       = 0x2000427a
-+	BIOCPROMISC                    = 0x20004269
-+	BIOCROTZBUF                    = 0x40184280
-+	BIOCSBLEN                      = 0xc0044266
-+	BIOCSDIRECTION                 = 0x80044277
-+	BIOCSDLT                       = 0x80044278
-+	BIOCSETBUFMODE                 = 0x8004427e
-+	BIOCSETF                       = 0x80104267
-+	BIOCSETFNR                     = 0x80104282
-+	BIOCSETIF                      = 0x8020426c
-+	BIOCSETWF                      = 0x8010427b
-+	BIOCSETZBUF                    = 0x80184281
-+	BIOCSHDRCMPLT                  = 0x80044275
-+	BIOCSRSIG                      = 0x80044273
-+	BIOCSRTIMEOUT                  = 0x8010426d
-+	BIOCSSEESENT                   = 0x80044277
-+	BIOCSTSTAMP                    = 0x80044284
-+	BIOCVERSION                    = 0x40044271
-+	BPF_A                          = 0x10
-+	BPF_ABS                        = 0x20
-+	BPF_ADD                        = 0x0
-+	BPF_ALIGNMENT                  = 0x8
-+	BPF_ALU                        = 0x4
-+	BPF_AND                        = 0x50
-+	BPF_B                          = 0x10
-+	BPF_BUFMODE_BUFFER             = 0x1
-+	BPF_BUFMODE_ZBUF               = 0x2
-+	BPF_DIV                        = 0x30
-+	BPF_H                          = 0x8
-+	BPF_IMM                        = 0x0
-+	BPF_IND                        = 0x40
-+	BPF_JA                         = 0x0
-+	BPF_JEQ                        = 0x10
-+	BPF_JGE                        = 0x30
-+	BPF_JGT                        = 0x20
-+	BPF_JMP                        = 0x5
-+	BPF_JSET                       = 0x40
-+	BPF_K                          = 0x0
-+	BPF_LD                         = 0x0
-+	BPF_LDX                        = 0x1
-+	BPF_LEN                        = 0x80
-+	BPF_LSH                        = 0x60
-+	BPF_MAJOR_VERSION              = 0x1
-+	BPF_MAXBUFSIZE                 = 0x80000
-+	BPF_MAXINSNS                   = 0x200
-+	BPF_MEM                        = 0x60
-+	BPF_MEMWORDS                   = 0x10
-+	BPF_MINBUFSIZE                 = 0x20
-+	BPF_MINOR_VERSION              = 0x1
-+	BPF_MISC                       = 0x7
-+	BPF_MOD                        = 0x90
-+	BPF_MSH                        = 0xa0
-+	BPF_MUL                        = 0x20
-+	BPF_NEG                        = 0x80
-+	BPF_OR                         = 0x40
-+	BPF_RELEASE                    = 0x30bb6
-+	BPF_RET                        = 0x6
-+	BPF_RSH                        = 0x70
-+	BPF_ST                         = 0x2
-+	BPF_STX                        = 0x3
-+	BPF_SUB                        = 0x10
-+	BPF_TAX                        = 0x0
-+	BPF_TXA                        = 0x80
-+	BPF_T_BINTIME                  = 0x2
-+	BPF_T_BINTIME_FAST             = 0x102
-+	BPF_T_BINTIME_MONOTONIC        = 0x202
-+	BPF_T_BINTIME_MONOTONIC_FAST   = 0x302
-+	BPF_T_FAST                     = 0x100
-+	BPF_T_FLAG_MASK                = 0x300
-+	BPF_T_FORMAT_MASK              = 0x3
-+	BPF_T_MICROTIME                = 0x0
-+	BPF_T_MICROTIME_FAST           = 0x100
-+	BPF_T_MICROTIME_MONOTONIC      = 0x200
-+	BPF_T_MICROTIME_MONOTONIC_FAST = 0x300
-+	BPF_T_MONOTONIC                = 0x200
-+	BPF_T_MONOTONIC_FAST           = 0x300
-+	BPF_T_NANOTIME                 = 0x1
-+	BPF_T_NANOTIME_FAST            = 0x101
-+	BPF_T_NANOTIME_MONOTONIC       = 0x201
-+	BPF_T_NANOTIME_MONOTONIC_FAST  = 0x301
-+	BPF_T_NONE                     = 0x3
-+	BPF_T_NORMAL                   = 0x0
-+	BPF_W                          = 0x0
-+	BPF_X                          = 0x8
-+	BPF_XOR                        = 0xa0
-+	BRKINT                         = 0x2
-+	CAP_ACCEPT                     = 0x200000020000000
-+	CAP_ACL_CHECK                  = 0x400000000010000
-+	CAP_ACL_DELETE                 = 0x400000000020000
-+	CAP_ACL_GET                    = 0x400000000040000
-+	CAP_ACL_SET                    = 0x400000000080000
-+	CAP_ALL0                       = 0x20007ffffffffff
-+	CAP_ALL1                       = 0x4000000001fffff
-+	CAP_BIND                       = 0x200000040000000
-+	CAP_BINDAT                     = 0x200008000000400
-+	CAP_CHFLAGSAT                  = 0x200000000001400
-+	CAP_CONNECT                    = 0x200000080000000
-+	CAP_CONNECTAT                  = 0x200010000000400
-+	CAP_CREATE                     = 0x200000000000040
-+	CAP_EVENT                      = 0x400000000000020
-+	CAP_EXTATTR_DELETE             = 0x400000000001000
-+	CAP_EXTATTR_GET                = 0x400000000002000
-+	CAP_EXTATTR_LIST               = 0x400000000004000
-+	CAP_EXTATTR_SET                = 0x400000000008000
-+	CAP_FCHDIR                     = 0x200000000000800
-+	CAP_FCHFLAGS                   = 0x200000000001000
-+	CAP_FCHMOD                     = 0x200000000002000
-+	CAP_FCHMODAT                   = 0x200000000002400
-+	CAP_FCHOWN                     = 0x200000000004000
-+	CAP_FCHOWNAT                   = 0x200000000004400
-+	CAP_FCNTL                      = 0x200000000008000
-+	CAP_FCNTL_ALL                  = 0x78
-+	CAP_FCNTL_GETFL                = 0x8
-+	CAP_FCNTL_GETOWN               = 0x20
-+	CAP_FCNTL_SETFL                = 0x10
-+	CAP_FCNTL_SETOWN               = 0x40
-+	CAP_FEXECVE                    = 0x200000000000080
-+	CAP_FLOCK                      = 0x200000000010000
*** 9626 LINES SKIPPED ***