Update to govc-0.26.0.

This commit is contained in:
ajacoutot 2021-06-04 08:06:35 +00:00
parent b21f2bc8a4
commit fb67417a23
3 changed files with 57 additions and 32 deletions

View File

@ -1,14 +1,14 @@
# $OpenBSD: Makefile,v 1.18 2021/04/24 07:58:09 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.19 2021/06/04 08:06:35 ajacoutot Exp $
COMMENT-main= vSphere CLI built on top of govmomi
COMMENT-vcsim= vCenter and ESXi API based simulator
GH_TAGNAME= v0.25.0
GH_ACCOUNT= vmware
GH_PROJECT= govmomi
MODGO_MODNAME= github.com/vmware/govmomi
MODGO_VERSION= v0.26.0
DISTNAME= govmomi-${MODGO_VERSION}
PKGNAME-main= govc-${GH_TAGNAME:C/^v//}
PKGNAME-vcsim= vcsim-${GH_TAGNAME:C/^v//}
PKGNAME-main= govc-${MODGO_VERSION:C/^v//}
PKGNAME-vcsim= vcsim-${MODGO_VERSION:C/^v//}
CATEGORIES= sysutils
@ -23,16 +23,23 @@ MODULES= lang/go
MULTI_PACKAGES= -main -vcsim
pre-patch:
cp ${MODGO_SUBDIR}/toolbox/hgfs/hgfs_{darwin,openbsd}.go
cp ${MODGO_SUBDIR}/toolbox/toolbox_{darwin,openbsd}.go
post-configure:
mkdir -p ${MODGO_WORKSPACE}/src/github.com/vmware
mv ${WRKSRC} ${MODGO_WORKSPACE}/src/github.com/vmware/
cp ${WRKDIR}/${MODGO_MODNAME}@${MODGO_VERSION}/toolbox/hgfs/hgfs_{darwin,openbsd}.go
cp ${WRKDIR}/${MODGO_MODNAME}@${MODGO_VERSION}/toolbox/toolbox_{darwin,openbsd}.go
do-build:
.for _d in govc vcsim
cd ${WRKSRC}/${_d} && ${MODGO_BUILD_CMD}
.endfor
MODGO_MODULES = \
github.com/a8m/tree v0.0.0-20210115125333-10a5fd5b637d \
github.com/davecgh/go-xdr v0.0.0-20161123171359-e6a2ba005892 \
github.com/dougm/pretty v0.0.0-20171025230240-2ee9d7453c02 \
github.com/google/uuid v1.2.0 \
github.com/kr/pretty v0.1.0 \
github.com/kr/pty v1.1.1 \
github.com/kr/text v0.1.0 \
github.com/rasky/go-xdr v0.0.0-20170217172119-4930550ba2e2 \
github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728
.include <bsd.port.mk>

View File

@ -1,2 +1,38 @@
SHA256 (govmomi-0.25.0.tar.gz) = z8cMDmp1wPjb8t4kj80A/SXZwGLFfCtpJ+DMQo0hljg=
SIZE (govmomi-0.25.0.tar.gz) = 1505099
SHA256 (go_modules/github.com/a8m/tree/@v/v0.0.0-20210115125333-10a5fd5b637d.mod) = Gu2LO0lJEy1woXQO5FvE9kjEXgIkPyHLMEeqeuMJTkI=
SHA256 (go_modules/github.com/a8m/tree/@v/v0.0.0-20210115125333-10a5fd5b637d.zip) = 6NMbesnzHxHhSLFvNsleswy5UcpKchHr1+A6Sfb2feY=
SHA256 (go_modules/github.com/davecgh/go-xdr/@v/v0.0.0-20161123171359-e6a2ba005892.mod) = 1yL76gqcZnG5clWo9O+2EyigmE4mXiFNvP1G8OPE6Zo=
SHA256 (go_modules/github.com/davecgh/go-xdr/@v/v0.0.0-20161123171359-e6a2ba005892.zip) = EcuHkStSiOE1NMs5aTVpTCV+uRZP/CDOIeO8mVXt2Co=
SHA256 (go_modules/github.com/dougm/pretty/@v/v0.0.0-20171025230240-2ee9d7453c02.mod) = rLpn0e/o041j0Zuxc5hzKwYwpg80ZEVYKXSJyHB3ONs=
SHA256 (go_modules/github.com/dougm/pretty/@v/v0.0.0-20171025230240-2ee9d7453c02.zip) = VqB4xhgAW/yvr/QwEfdfR6og3+seCayHOCOSWBREp/Y=
SHA256 (go_modules/github.com/google/uuid/@v/v1.2.0.mod) = c9pHtjOLAKCC/UUao1oyc9OtwJuOm7qY2rAQkeQCr24=
SHA256 (go_modules/github.com/google/uuid/@v/v1.2.0.zip) = b5WJvqGTl+bwzyLEZUBTjp+tLyuKnUI1jbZpabOLjRw=
SHA256 (go_modules/github.com/kr/pretty/@v/v0.1.0.mod) = 49XUbS9qyUpmalS16GfsFr8ZnZ9LcAgnzXMWB+/dEJo=
SHA256 (go_modules/github.com/kr/pretty/@v/v0.1.0.zip) = BgY9IUV+Btwqukpb0JdxFH7D2KtAsiTyblXFp2CJykM=
SHA256 (go_modules/github.com/kr/pty/@v/v1.1.1.mod) = baTJxzZERolOXvh34Z+YXNUdZxzm6PTKh4YrRJ9t1/Y=
SHA256 (go_modules/github.com/kr/pty/@v/v1.1.1.zip) = EEdNeodcvSuddMm7j7mSZLeGPyBMdhBgd5f/GNWAvwA=
SHA256 (go_modules/github.com/kr/text/@v/v0.1.0.mod) = L7qVKeXBPd5i83Hvc4O68E1xMlAdrGqgjpEPnsC/hcU=
SHA256 (go_modules/github.com/kr/text/@v/v0.1.0.zip) = k2OkyPHzOHo2AU3lG0d7gxoTmB/FmlZl+dIWCb6p53w=
SHA256 (go_modules/github.com/rasky/go-xdr/@v/v0.0.0-20170217172119-4930550ba2e2.mod) = hUC31xgT+mhViQ/r3Rm9UVvZD0ip0PC12lAojvgRNTs=
SHA256 (go_modules/github.com/rasky/go-xdr/@v/v0.0.0-20170217172119-4930550ba2e2.zip) = vaHpVh4FxV56c5BaEai2D4ulihem5MDq4GDxBroWXnE=
SHA256 (go_modules/github.com/vmware/vmw-guestinfo/@v/v0.0.0-20170707015358-25eff159a728.mod) = tZSLvlG002X8sZ5zcF5gj2E/OGkSNuquPPwhUnMJqp4=
SHA256 (go_modules/github.com/vmware/vmw-guestinfo/@v/v0.0.0-20170707015358-25eff159a728.zip) = Kcc7pErDFUYWQHl9br/aLZBsKNviHCBlbG5fofUV8iA=
SHA256 (govmomi-v0.26.0.zip) = xdpHRSeoThWSRaenZDc8WiAQX6uBYr3phgFpeHoj24I=
SIZE (go_modules/github.com/a8m/tree/@v/v0.0.0-20210115125333-10a5fd5b637d.mod) = 27
SIZE (go_modules/github.com/a8m/tree/@v/v0.0.0-20210115125333-10a5fd5b637d.zip) = 18668
SIZE (go_modules/github.com/davecgh/go-xdr/@v/v0.0.0-20161123171359-e6a2ba005892.mod) = 33
SIZE (go_modules/github.com/davecgh/go-xdr/@v/v0.0.0-20161123171359-e6a2ba005892.zip) = 70819
SIZE (go_modules/github.com/dougm/pretty/@v/v0.0.0-20171025230240-2ee9d7453c02.mod) = 31
SIZE (go_modules/github.com/dougm/pretty/@v/v0.0.0-20171025230240-2ee9d7453c02.zip) = 11765
SIZE (go_modules/github.com/google/uuid/@v/v1.2.0.mod) = 30
SIZE (go_modules/github.com/google/uuid/@v/v1.2.0.zip) = 21941
SIZE (go_modules/github.com/kr/pretty/@v/v0.1.0.mod) = 67
SIZE (go_modules/github.com/kr/pretty/@v/v0.1.0.zip) = 11159
SIZE (go_modules/github.com/kr/pty/@v/v1.1.1.mod) = 25
SIZE (go_modules/github.com/kr/pty/@v/v1.1.1.zip) = 14199
SIZE (go_modules/github.com/kr/text/@v/v0.1.0.mod) = 64
SIZE (go_modules/github.com/kr/text/@v/v0.1.0.zip) = 12591
SIZE (go_modules/github.com/rasky/go-xdr/@v/v0.0.0-20170217172119-4930550ba2e2.mod) = 31
SIZE (go_modules/github.com/rasky/go-xdr/@v/v0.0.0-20170217172119-4930550ba2e2.zip) = 74470
SIZE (go_modules/github.com/vmware/vmw-guestinfo/@v/v0.0.0-20170707015358-25eff159a728.mod) = 39
SIZE (go_modules/github.com/vmware/vmw-guestinfo/@v/v0.0.0-20170707015358-25eff159a728.zip) = 28602
SIZE (govmomi-v0.26.0.zip) = 2308000

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-simulator_os_unix_go,v 1.3 2018/05/25 08:07:13 ajacoutot Exp $
Index: simulator/os_unix.go
--- simulator/os_unix.go.orig
+++ simulator/os_unix.go
@@ -29,10 +29,10 @@ func (ds *Datastore) stat() error {
return err
}
- info.FreeSpace = int64(stat.Bfree * uint64(stat.Bsize))
+ info.FreeSpace = int64(stat.F_bfree * uint64(stat.F_bsize))
ds.Summary.FreeSpace = info.FreeSpace
- ds.Summary.Capacity = int64(stat.Blocks * uint64(stat.Bsize))
+ ds.Summary.Capacity = int64(stat.F_blocks * uint64(stat.F_bsize))
return nil
}