Date: Mon, 29 Jan 2018 13:50:48 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460304 - in head/devel: . bhyve-vm-goagent bhyve-vm-goagent/files Message-ID: <201801291350.w0TDomii063890@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Mon Jan 29 13:50:47 2018 New Revision: 460304 URL: https://svnweb.freebsd.org/changeset/ports/460304 Log: It is an agent developed using Go that runs inside guest virtual machines and allows host hypervisor to obtain information from guest such like memory usage, cpu, disk and ethernet configuration. It supports virtio-console as well as WebSocket protocol. WWW: https://github.com/araujobsd/bhyve-vm-goagent Sponsored by: iXsystems, Inc. Added: head/devel/bhyve-vm-goagent/ head/devel/bhyve-vm-goagent/Makefile (contents, props changed) head/devel/bhyve-vm-goagent/distinfo (contents, props changed) head/devel/bhyve-vm-goagent/files/ head/devel/bhyve-vm-goagent/files/patch-Makefile (contents, props changed) head/devel/bhyve-vm-goagent/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Jan 29 13:43:22 2018 (r460303) +++ head/devel/Makefile Mon Jan 29 13:50:47 2018 (r460304) @@ -194,6 +194,7 @@ SUBDIR += bennugd-core SUBDIR += bennugd-modules SUBDIR += bglibs + SUBDIR += bhyve-vm-goagent SUBDIR += bicyclerepair SUBDIR += bin86 SUBDIR += bingrep Added: head/devel/bhyve-vm-goagent/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bhyve-vm-goagent/Makefile Mon Jan 29 13:50:47 2018 (r460304) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= bhyve-vm-goagent +PORTVERSION= 1.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= araujo@FreeBSD.org +COMMENT= Agent developed in Go that runs inside guest vm + +LICENSE= BSD2CLAUSE + +ONLY_FOR_ARCHS= amd64 i386 + +USES= go +GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= araujobsd +GH_TAGNAME= a640870c90752e01af30e394ce7c8157f4371a1b +GH_TUPLE= gorilla:websocket:v1.2.0:websocket/src/github.com/gorilla/websocket \ + shirou:gopsutil:v2.17.12:gopsutil/src/github.com/shirou/gopsutil + +MAKE_ENV= GOPATH=${WRKSRC} GOROOT=${LOCALBASE}/go + +PLIST_FILES= sbin/bhyve-vm-goagent + +do-build: + cd ${WRKSRC} ; make deps ; make build + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-freebsd-${ARCH}-1.0-RELEASE \ + ${STAGEDIR}${PREFIX}/sbin/${PORTNAME} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME} + +.include <bsd.port.mk> Added: head/devel/bhyve-vm-goagent/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bhyve-vm-goagent/distinfo Mon Jan 29 13:50:47 2018 (r460304) @@ -0,0 +1,7 @@ +TIMESTAMP = 1517232923 +SHA256 (araujobsd-bhyve-vm-goagent-v1.0-a640870c90752e01af30e394ce7c8157f4371a1b_GH0.tar.gz) = 71ff3e116f6a4298ec683154b6deadad22d0bc7e1e9541c2f765991714d7ba15 +SIZE (araujobsd-bhyve-vm-goagent-v1.0-a640870c90752e01af30e394ce7c8157f4371a1b_GH0.tar.gz) = 7262 +SHA256 (gorilla-websocket-v1.2.0_GH0.tar.gz) = 04d1c4fa839a01d32d3c8c558370a964d83b5c980f74c4b965f3dd04f8cb9276 +SIZE (gorilla-websocket-v1.2.0_GH0.tar.gz) = 42984 +SHA256 (shirou-gopsutil-v2.17.12_GH0.tar.gz) = 0abdee29c3c70d9860d8177e70b9bbb0651af4e48b03cfbb36bdf53300fa7268 +SIZE (shirou-gopsutil-v2.17.12_GH0.tar.gz) = 107887 Added: head/devel/bhyve-vm-goagent/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bhyve-vm-goagent/files/patch-Makefile Mon Jan 29 13:50:47 2018 (r460304) @@ -0,0 +1,23 @@ +--- Makefile.orig 2018-01-29 12:30:37 UTC ++++ Makefile +@@ -1,6 +1,6 @@ + GO ?= go + TARGET := bhyve-vm-goagent +-OS := freebsd netbsd linux windows ++OS := freebsd + ARCH := 386 amd64 + VERSION := `grep \"VERSION\" main.go | cut -d '"' -f 2 | head -1` + +@@ -9,10 +9,8 @@ all: build + deps: + @echo "===> Downloading crossbuild dependencies." + go get github.com/gorilla/websocket +- go get github.com/shirou/w32 +- go get github.com/StackExchange/wmi +- go get github.com/go-ole/go-ole +- go get github.com/go-ole/go-ole/oleutil ++ go get github.com/araujobsd/bhyve-vm-goagent/plugins ++ go get github.com/araujobsd/bhyve-vm-goagent/termios + + build: + @for os in $(OS); do \ Added: head/devel/bhyve-vm-goagent/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bhyve-vm-goagent/pkg-descr Mon Jan 29 13:50:47 2018 (r460304) @@ -0,0 +1,7 @@ +It is an agent developed using Go that runs inside guest virtual machines +and allows host hypervisor to obtain information from guest such like +memory usage, cpu, disk and ethernet configuration. + +It supports virtio-console as well as WebSocket protocol. + +WWW: https://github.com/araujobsd/bhyve-vm-goagent
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801291350.w0TDomii063890>