summaryrefslogtreecommitdiff
path: root/sysutils/bhyvemgr
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/bhyvemgr')
-rw-r--r--sysutils/bhyvemgr/Makefile15
-rw-r--r--sysutils/bhyvemgr/distinfo6
-rw-r--r--sysutils/bhyvemgr/files/patch-src_form__main.pas30
-rw-r--r--sysutils/bhyvemgr/files/pkg-message.in19
-rw-r--r--sysutils/bhyvemgr/pkg-plist15
5 files changed, 76 insertions, 9 deletions
diff --git a/sysutils/bhyvemgr/Makefile b/sysutils/bhyvemgr/Makefile
index 554d0f08a5b7..7fa484ca14fe 100644
--- a/sysutils/bhyvemgr/Makefile
+++ b/sysutils/bhyvemgr/Makefile
@@ -1,6 +1,7 @@
PORTNAME= bhyvemgr
DISTVERSIONPREFIX= v
-PORTVERSION= 1.5.2
+PORTVERSION= 1.12.0
+PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
@@ -20,15 +21,21 @@ USE_XORG= x11
USE_GITHUB= yes
GH_ACCOUNT= alonsobsd
-OPTIONS_DEFINE= FREERDP3
+OPTIONS_DEFINE= FREERDP3 QEMU-TOOLS
FREERDP3_DESC= Install freerdp3 to enable rdp connection option
FREERDP3_RUN_DEPENDS= freerdp3>0:net/freerdp3
+QEMU-TOOLS_DESC= Install qemu-img tool
+QEMU-TOOLS_RUN_DEPENDS= qemu-img:emulators/qemu@tools
+
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500000)
ONLY_FOR_ARCHS= aarch64 amd64
+.endif
+
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1403000)
RUN_DEPENDS+= swtpm>0:sysutils/swtpm
.endif
@@ -54,13 +61,13 @@ USE_GNOME+= ${USE_GNOME_${FLAVOR}}
SUB_FILES= pkg-message
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/setup/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps
${INSTALL_DATA} ${WRKSRC}/setup/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps/${PORTNAME}.png
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/setup/${PORTNAME}.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svg
@${MKDIR} ${STAGEDIR}${DATADIR}
- cd ${WRKSRC} && ${COPYTREE_SHARE} "images" ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "images languages samples templates" ${STAGEDIR}${DATADIR}
.include <bsd.port.post.mk>
diff --git a/sysutils/bhyvemgr/distinfo b/sysutils/bhyvemgr/distinfo
index a49bdfa704bc..5b0c36ec082c 100644
--- a/sysutils/bhyvemgr/distinfo
+++ b/sysutils/bhyvemgr/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1745088453
-SHA256 (alonsobsd-bhyvemgr-v1.5.2_GH0.tar.gz) = e5b9035f1553d6448e30078ada38be04ff78a2fc636c28050a88cfbde4431283
-SIZE (alonsobsd-bhyvemgr-v1.5.2_GH0.tar.gz) = 256964
+TIMESTAMP = 1759166019
+SHA256 (alonsobsd-bhyvemgr-v1.12.0_GH0.tar.gz) = 8602527ef0744380dc1deb49645bc6cd49adfb678e4b4c68eb48c7cf5d084dde
+SIZE (alonsobsd-bhyvemgr-v1.12.0_GH0.tar.gz) = 340971
diff --git a/sysutils/bhyvemgr/files/patch-src_form__main.pas b/sysutils/bhyvemgr/files/patch-src_form__main.pas
new file mode 100644
index 000000000000..58cc6c0c1920
--- /dev/null
+++ b/sysutils/bhyvemgr/files/patch-src_form__main.pas
@@ -0,0 +1,30 @@
+--- src/form_main.pas.orig 2025-10-06 18:41:10 UTC
++++ src/form_main.pas
+@@ -219,7 +219,7 @@ begin
+ DebugLogger.CloseLogFileBetweenWrites:= true;
+ DebugLogger.LogName:= GetUserDir + '.config/bhyvemgr/bhyvemgr.log';
+
+- DebugLn('['+FormatDateTime('DD-MM-YYYY HH:NN:SS', Now)+'] : '=debugln_bhyve_started);
++ DebugLn('['+FormatDateTime('DD-MM-YYYY HH:NN:SS', Now)+'] : '+debugln_bhyve_started);
+
+ FormSettings:= TFormSettings.Create(FormBhyveManager);
+ FormAbout:= TFormAbout.Create(FormBhyveManager);
+@@ -4009,7 +4009,7 @@ begin
+ if (Assigned(DeviceSettingsTreeView.Items.FindTopLvlNode('Display')))
+ and (DeviceSettingsTreeView.Items.FindTopLvlNode('Display').Count = 1) then
+ begin
+- DisplayNode:=DeviceSettingsTreeView.Items.TopLvlItems[2].Items[0];
++ DisplayNode:=DeviceSettingsTreeView.Items.FindTopLvlNode('Display').Items[0];
+ DisplayDevice:=TDisplayDeviceClass(DisplayNode.Data);
+ VncConnect(DisplayDevice.tcp, TVirtualMachineClass(VirtualMachinesTreeView.Selected.Data).name);
+ end;
+@@ -4163,7 +4163,8 @@ begin
+ SpeedButtonRemoveVm.Enabled:=False;
+ SpeedButtonReloadVmConfig.Enabled:=False;
+
+- if DeviceSettingsTreeView.Items.TopLvlItems[2].Count = 1 then
++ if (Assigned(DeviceSettingsTreeView.Items.FindTopLvlNode('Display')))
++ and (DeviceSettingsTreeView.Items.FindTopLvlNode('Display').Count = 1) then
+ SpeedButtonVncVm.Enabled:=True
+ else
+ SpeedButtonVncVm.Enabled:=False;
diff --git a/sysutils/bhyvemgr/files/pkg-message.in b/sysutils/bhyvemgr/files/pkg-message.in
index 2054ec3a0998..bf5549750e18 100644
--- a/sysutils/bhyvemgr/files/pkg-message.in
+++ b/sysutils/bhyvemgr/files/pkg-message.in
@@ -9,12 +9,27 @@ bhyvemgr was installed
3) It can be compiled with supports for gtk2, qt5 or qt6 graphic interfaces
-4) For a better use of bhyvemgr, some settings must be applied to your system.
+4) Now, bhyvemgr supports the use of cloud and VM images. You can even use cloud
+ init or nuageinit to initialize them.
+
+5) If you use a minimal configuration, it uses templates files inside of
+ %%DATADIR%%/templates directory. Do not remove wildcard inside of these
+ files. Use samples files if you want define your own configuration.
+
+6) If you want to use your own configuration files: user-data and meta-data, try
+ to keep %%UUID%% and %%HOSTAME%% inside of them as you can look at
+ %%DATADIR%%/samples directory. Also, you can keep %%MACADDRESS%%, %%GATEWAY4%%,
+ %%IP4ADDRESS%%, and %%DNS4SERVERS%% wildcards inside of network-config file.
+
+ They will be replaced with virtual machine values depending on of the selected
+ options.
+
+7) For an optimal use of bhyvemgr, some settings must be applied to your system.
Take a look at the following url:
https://github.com/alonsobsd/bhyvemgr/blob/main/README.md
-5) Enjoy it ;)
+8) Enjoy it ;)
EOM
}
]
diff --git a/sysutils/bhyvemgr/pkg-plist b/sysutils/bhyvemgr/pkg-plist
index ccae9dcbd3b5..b3c4c8e971a9 100644
--- a/sysutils/bhyvemgr/pkg-plist
+++ b/sysutils/bhyvemgr/pkg-plist
@@ -26,6 +26,8 @@ share/applications/bhyvemgr.desktop
%%DATADIR%%/images/menu/com.png
%%DATADIR%%/images/menu/edit.png
%%DATADIR%%/images/menu/hide.png
+%%DATADIR%%/images/menu/ip.png
+%%DATADIR%%/images/menu/paste.png
%%DATADIR%%/images/menu/quit.png
%%DATADIR%%/images/menu/rdp.png
%%DATADIR%%/images/menu/remove.png
@@ -34,6 +36,7 @@ share/applications/bhyvemgr.desktop
%%DATADIR%%/images/systems/almalinux.png
%%DATADIR%%/images/systems/alpinelinux.png
%%DATADIR%%/images/systems/archlinux.png
+%%DATADIR%%/images/systems/cachyos.png
%%DATADIR%%/images/systems/category.png
%%DATADIR%%/images/systems/debian.png
%%DATADIR%%/images/systems/dragonflybsd.png
@@ -54,5 +57,17 @@ share/applications/bhyvemgr.desktop
%%DATADIR%%/images/systems/rockylinux.png
%%DATADIR%%/images/systems/ubuntu.png
%%DATADIR%%/images/systems/windows.png
+%%DATADIR%%/images/systems/zorinos.png
+%%DATADIR%%/languages/bhyvemgr.es.po
+%%DATADIR%%/languages/bhyvemgr.pot
+%%DATADIR%%/languages/bhyvemgr.zh_CN.po
+%%DATADIR%%/languages/lcl/lclstrconsts.es.po
+%%DATADIR%%/languages/lcl/lclstrconsts.zh_CN.po
+%%DATADIR%%/samples/meta-data
+%%DATADIR%%/samples/network-config
+%%DATADIR%%/samples/user-data
+%%DATADIR%%/templates/meta-data
+%%DATADIR%%/templates/network-config
+%%DATADIR%%/templates/user-data
share/icons/hicolor/512x512/apps/bhyvemgr.png
share/icons/hicolor/scalable/apps/bhyvemgr.svg