From owner-svn-ports-all@freebsd.org Mon Jan 29 13:50:49 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E80B3EC84EF; Mon, 29 Jan 2018 13:50:48 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93E6473F6F; Mon, 29 Jan 2018 13:50:48 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8EDA4EF6; Mon, 29 Jan 2018 13:50:48 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0TDomhA063895; Mon, 29 Jan 2018 13:50:48 GMT (envelope-from araujo@FreeBSD.org) Received: (from araujo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0TDomii063890; Mon, 29 Jan 2018 13:50:48 GMT (envelope-from araujo@FreeBSD.org) Message-Id: <201801291350.w0TDomii063890@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: araujo set sender to araujo@FreeBSD.org using -f From: Marcelo Araujo Date: Mon, 29 Jan 2018 13:50:48 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: araujo X-SVN-Commit-Paths: in head/devel: . bhyve-vm-goagent bhyve-vm-goagent/files X-SVN-Commit-Revision: 460304 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 13:50:49 -0000 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 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