From nobody Wed Jan 24 01:56:19 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TKRrg6168z578D4; Wed, 24 Jan 2024 01:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKRrg5XwMz4G5G; Wed, 24 Jan 2024 01:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706061379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pN0PD1+V+6/FCNryo83OPyKDah1t4pnDEMgPbD9hL/o=; b=OqdL+AKN7bBJRg0zTHQivsuCJV3oLuOAGAN5yxCt0XKxhecKEf8X3UF9faXxZwL0giB/Uz xgpdS/Q1mnowTrgkgzYJTnKyPoHLUq5uClbNeRXMGShG9NMV3whmx7HbEKDnPW20cTSVBg sddOlll2EuCoGwvrapvKWs3DteJe9TfdgZy+UMcG1sWrv0bq9FS4m75lfZWzo5geoElvvl kQdvDjQIXDnv88OfWQBr0i04yOxwWVSIypUl1zhhiQBQWAdhGu2xp0maqcY19hAk2aB/gt Fe/lDO+UYFXBq5v7ppETCck1Y7E29v7kfBsVhkNhvUazYm9MoXNkLEwzg2r1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706061379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pN0PD1+V+6/FCNryo83OPyKDah1t4pnDEMgPbD9hL/o=; b=TA1UE78TxtMgSxFYwm5PuEVhrueFYJYxx3LvbRfufvlU5CC67dlsav2nZC/hORYBbtaMry W1KKqrGsOx+qA6Uks++6kvGlbfpBQw/zK8zb6a+AcKjzz3nmfS9TlOjazVSETpszuW57nK LcwCWFhijA/BNY9IF49Rh4L+4i3WZsuqIe/DGJMK0hn3WZzcHw5LbavXHOBvALjX0oBLCv YEp8Gf0/HfLuwu/MUr3uh7sAa/Y75R8L8kH8eqU6scU+yGFFOcgGQ7uhpDfXxKPbDa2bZX BHP9jTBKi3epZJocheb2Hu6999CcL87+0dOPhpC2bXb+t1uCT+ES0tWL+39hWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706061379; a=rsa-sha256; cv=none; b=WuN6ZTSj+f1shdhaqr6XKR1FMajx7CajmS1S7jfIODIWdQT6thnhPlhz3oYivEXZqfYVFS fRyrjZbhQWyVTG7tHEh2mdgJmYWo+Jn5+CXZYrOmvL48YIjyFoLdkw2+BjnAPu1HhTn2KZ MK43DfBe43WH0i7yUw7X/joJdk8io9IVRnBuBnPtLYmcNzlPZAVMqAOHaKPMlBAxva7dSc Z8HYbyWpqklfUFrM86HXiyEEYN1OymKqVqVMIbTBd3moqxwLtIwHpu+acqAJb8tUkbkY/2 WMmXHpnwzjUOhHxqMaD1QnG3zb0Vstaa3O58/AmWBFpTOs3NqBU875Acx4cH/A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TKRrg4cjvzvcM; Wed, 24 Jan 2024 01:56:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40O1uJAd003115; Wed, 24 Jan 2024 01:56:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40O1uJCQ003112; Wed, 24 Jan 2024 01:56:19 GMT (envelope-from git) Date: Wed, 24 Jan 2024 01:56:19 GMT Message-Id: <202401240156.40O1uJCQ003112@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Koichiro Iwao Subject: git: a3cf7b23ba32 - main - sysutils/vmstated: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: meta X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a3cf7b23ba323acfeb3a63735274a88897692d09 Auto-Submitted: auto-generated The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=a3cf7b23ba323acfeb3a63735274a88897692d09 commit a3cf7b23ba323acfeb3a63735274a88897692d09 Author: Chris Moerz AuthorDate: 2024-01-13 08:18:27 +0000 Commit: Koichiro Iwao CommitDate: 2024-01-24 01:55:54 +0000 sysutils/vmstated: add new port PR: 276291 --- sysutils/Makefile | 1 + sysutils/vmstated/Makefile | 19 +++++++++++++++++++ sysutils/vmstated/README.md | 38 ++++++++++++++++++++++++++++++++++++++ sysutils/vmstated/distinfo | 3 +++ sysutils/vmstated/pkg-descr | 4 ++++ sysutils/vmstated/pkg-plist | 8 ++++++++ 6 files changed, 73 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index c770a710ad59..2598e42cd995 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1589,6 +1589,7 @@ SUBDIR += vm-bhyve SUBDIR += vm-bhyve-devel SUBDIR += vmdktool + SUBDIR += vmstated SUBDIR += vmtouch SUBDIR += vobcopy SUBDIR += volman diff --git a/sysutils/vmstated/Makefile b/sysutils/vmstated/Makefile new file mode 100644 index 000000000000..070caff80013 --- /dev/null +++ b/sysutils/vmstated/Makefile @@ -0,0 +1,19 @@ +PORTNAME= vmstated +DISTVERSION= 0.04 +CATEGORIES= sysutils + +MAINTAINER= freebsd@ny-central.org +COMMENT= Manages and runs bhyve virtual machines and infrastructure +WWW= https://www.github.com/christian-moerz/vmstated + +LICENSE= BSD2CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= christian-moerz +GH_PROJECT= vmstated +GH_TAGNAME= ${DISTVERSION} + +post-patch: + ${REINPLACE_CMD} "s@PREFIX@${PREFIX}@g" "${WRKSRC}/rc/vmstated" + +.include diff --git a/sysutils/vmstated/README.md b/sysutils/vmstated/README.md new file mode 100644 index 000000000000..2750e950f1a9 --- /dev/null +++ b/sysutils/vmstated/README.md @@ -0,0 +1,38 @@ +## vmstated + +`vmstated` is a very simple bhyve virtual machine manager for FreeBSD. + +### How to compile + +Eventually, `vmstated` will be released via the regular ports channel; until then, +one can run the following commands: + +``` +git clone https://github.com/christian-moerz/vmstated +cd vmstated/port +make package +pkg install work/pkg/vmstated-0.01.pkg +``` + +To uninstall vmstated, use the usual pkg command + +``` +pkg deinstall vmstated +``` + +### How to get started + +Please refer to the man pages for `vmstated(8)` or `vmstatedctl(1)` for further +details on how to use `vmstated`. + +To start `vmstated` run + +``` +sysrc vmstated_enable=YES +service vmstated start +``` + +- Configuration files go under `/usr/local/etc/vmstated`. +- Log files are under `/var/log/vmstated` +- PID file and socket are under `/var/run/` + diff --git a/sysutils/vmstated/distinfo b/sysutils/vmstated/distinfo new file mode 100644 index 000000000000..ab31c8872595 --- /dev/null +++ b/sysutils/vmstated/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1705133490 +SHA256 (christian-moerz-vmstated-0.04_GH0.tar.gz) = 3858f64f70d73e9d5e734ed9c64e72024092f32700767214ed2202dad570971a +SIZE (christian-moerz-vmstated-0.04_GH0.tar.gz) = 69102 diff --git a/sysutils/vmstated/pkg-descr b/sysutils/vmstated/pkg-descr new file mode 100644 index 000000000000..8412dee99742 --- /dev/null +++ b/sysutils/vmstated/pkg-descr @@ -0,0 +1,4 @@ +vmstated is a user-space daemon that manages bhyve virtual +machines. It provides hook scripts for easy network and storage setup +and maintains records on a virtual machine's state while it is +running. diff --git a/sysutils/vmstated/pkg-plist b/sysutils/vmstated/pkg-plist new file mode 100644 index 000000000000..08e330c201fc --- /dev/null +++ b/sysutils/vmstated/pkg-plist @@ -0,0 +1,8 @@ +@mode 755 +bin/vmstatedctl +etc/rc.d/vmstated +@mode 750 +sbin/vmstated +@mode 0444 +share/man/man1/vmstatedctl.1.gz +share/man/man8/vmstated.8.gz