Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR: 273434 Reported by: Yuichiro NAITO <naito.yuichiro at gmail.com>
- Loading branch information
1 parent
4d5ac25
commit c7af9c7
Showing
7 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PORTNAME= bmd | ||
DISTVERSION= 1.0 | ||
CATEGORIES= sysutils | ||
|
||
MAINTAINER= naito.yuichiro@gmail.com | ||
COMMENT= Bhyve Management Daemon | ||
WWW= https://github.com/yuichiro-naito/bmd | ||
|
||
LICENSE= BSD2CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
# Because bhyve runs on amd64 only. | ||
ONLY_FOR_ARCHS= amd64 | ||
|
||
RUN_DEPENDS= bhyve-firmware>0:sysutils/bhyve-firmware \ | ||
grub2-bhyve>0:sysutils/grub2-bhyve | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= yuichiro-naito | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1692064885 | ||
SHA256 (yuichiro-naito-bmd-1.0_GH0.tar.gz) = b4bda2a9b334e7e76528e7567f44b311dce42f66517ffa4558c343c32ebe874e | ||
SIZE (yuichiro-naito-bmd-1.0_GH0.tar.gz) = 56450 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- Makefile.orig 2023-08-13 14:58:56 UTC | ||
+++ Makefile | ||
@@ -1,11 +1,21 @@ LOCALBASE?= /usr/local | ||
MK_DEBUG_FILES?= no | ||
LOCALBASE?= /usr/local | ||
+BINOWN!= id -u | ||
+BINGRP!= id -g | ||
+DIROWN= $(BINOWN) | ||
+DIRGRP= $(BINGRP) | ||
+SHAREOWN= $(BINOWN) | ||
+SHAREGRP= $(BINGRP) | ||
SUBDIR= rc.d | ||
BINDIR= $(LOCALBASE)/sbin | ||
MANDIR= $(LOCALBASE)/man/man | ||
DIRS= UEFIVARDIR PLUGINDIR | ||
UEFIVARDIR= $(LOCALBASE)/var/cache/bmd | ||
+UEFIVARDIR_OWN= $(BINOWN) | ||
+UEFIVARDIR_GRP= $(BINGRP) | ||
PLUGINDIR= $(LOCALBASE)/libexec/bmd | ||
+PLUGINDIR_OWN= $(BINOWN) | ||
+PLUGINDIR_GRP= $(BINGRP) | ||
PROG= bmd | ||
MAN= bmd.8 bmdctl.8 bmd.conf.5 | ||
LINKS= ${BINDIR}/bmd ${BINDIR}/bmdctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- rc.d/Makefile.orig 2023-08-08 05:39:45 UTC | ||
+++ rc.d/Makefile | ||
@@ -2,6 +2,8 @@ SCRIPTSDIR= $(LOCALBASE)/etc/rc.d | ||
SCRIPTS= bmd | ||
SCRIPTSNAME_bmd=bmd | ||
SCRIPTSDIR= $(LOCALBASE)/etc/rc.d | ||
+SCRIPTSOWN!= id -u | ||
+SCRIPTSGRP!= id -g | ||
|
||
bmd: bmd.in | ||
sed 's|%%LOCALBASE%%|$(LOCALBASE)|' < bmd.in > bmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
The bmd is a light-weight bhyve management daemon that handles bhyve processes | ||
according to the configuration file. And also includes a command line tool that | ||
supports booting VM, shutdown VM, connecting to com console, listing VMs. | ||
The configuration file syntax looks similar to jail.conf(5) and extends | ||
template feature that contains a part of VM configurations common to multiple | ||
VMs. The bmd supports plugins to extend the functionality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
etc/rc.d/bmd | ||
etc/bmd.conf.example | ||
include/bmd_plugin.h | ||
man/man5/bmd.conf.5.gz | ||
man/man8/bmd.8.gz | ||
man/man8/bmdctl.8.gz | ||
sbin/bmd | ||
sbin/bmdctl | ||
@dir libexec/bmd | ||
@dir var/cache/bmd |