Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148977379
D48059.1789318629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
8 KB
Referenced Files
None
Subscribers
None
D48059.1789318629.diff
View Options
diff --git a/emulators/Makefile b/emulators/Makefile
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -101,6 +101,7 @@
SUBDIR += ods2reader
SUBDIR += open-simh
SUBDIR += open-vm-tools
+ SUBDIR += open-vm-kmod
SUBDIR += openmsx
SUBDIR += p5-Acme-6502
SUBDIR += parallels-tools
diff --git a/emulators/open-vm-kmod/Makefile b/emulators/open-vm-kmod/Makefile
new file mode 100644
--- /dev/null
+++ b/emulators/open-vm-kmod/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= open-vm-kmod
+PORTVERSION= 12.5.0
+DISTVERSIONPREFIX= stable-
+PORTEPOCH= 2
+CATEGORIES= emulators
+
+MAINTAINER= garga@FreeBSD.org
+COMMENT= Open VMware tools for FreeBSD VMware guests ${${FLAVOR}_COMMENT}
+WWW= https://github.com/vmware/open-vm-tools
+
+LICENSE= BSD2CLAUSE GPLv2
+LICENSE_COMB= multi
+LICENSE_FILE_GPLv2= ${WRKSRC}/vmmemctl/COPYING
+LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/vmblock/COPYING
+
+ONLY_FOR_ARCHS= aarch64 amd64 i386
+
+USES= kmod uidfix
+
+USE_GITHUB= yes
+GH_ACCOUNT= vmware
+GH_PROJECT= open-vm-tools
+
+WRKSRC_SUBDIR= open-vm-tools/modules/freebsd/
+MAKE_ARGS= OVT_SOURCE_DIR=${WRKSRC:H:H:H}
+
+PLIST_FILES= ${KMODDIR}/vmblock.ko \
+ ${KMODDIR}/vmmemctl.ko
+
+.include <bsd.port.mk>
diff --git a/emulators/open-vm-kmod/distinfo b/emulators/open-vm-kmod/distinfo
new file mode 100644
--- /dev/null
+++ b/emulators/open-vm-kmod/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1733928741
+SHA256 (vmware-open-vm-tools-stable-12.5.0_GH0.tar.gz) = a52182c7e6b5df41bb317625e9d8592ecdb9db814d1c2c9b7cdb91a77f8c0640
+SIZE (vmware-open-vm-tools-stable-12.5.0_GH0.tar.gz) = 3001944
diff --git a/emulators/open-vm-kmod/files/patch-Makefile b/emulators/open-vm-kmod/files/patch-Makefile
new file mode 100644
--- /dev/null
+++ b/emulators/open-vm-kmod/files/patch-Makefile
@@ -0,0 +1,7 @@
+--- Makefile.orig 2024-12-12 16:16:21 UTC
++++ Makefile
+@@ -0,0 +1,4 @@
++SUBDIR+= vmblock
++SUBDIR+= vmmemctl
++
++.include <bsd.subdir.mk>
diff --git a/emulators/open-vm-tools/files/patch-modules_freebsd_vmblock_vfsops.c b/emulators/open-vm-kmod/files/patch-vmblock_vfsops.c
rename from emulators/open-vm-tools/files/patch-modules_freebsd_vmblock_vfsops.c
rename to emulators/open-vm-kmod/files/patch-vmblock_vfsops.c
--- a/emulators/open-vm-tools/files/patch-modules_freebsd_vmblock_vfsops.c
+++ b/emulators/open-vm-kmod/files/patch-vmblock_vfsops.c
@@ -1,5 +1,5 @@
---- modules/freebsd/vmblock/vfsops.c.orig 2023-03-10 17:41:18 UTC
-+++ modules/freebsd/vmblock/vfsops.c
+--- vmblock/vfsops.c.orig 2024-10-10 15:05:07 UTC
++++ vmblock/vfsops.c
@@ -173,7 +173,6 @@ VMBlockVFSMount(struct mount *mp) // IN: mount(
#endif
error = namei(ndp);
diff --git a/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c b/emulators/open-vm-kmod/files/patch-vmmemctl_os.c
rename from emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
rename to emulators/open-vm-kmod/files/patch-vmmemctl_os.c
--- a/emulators/open-vm-tools/files/patch-modules_freebsd_vmmemctl_os.c
+++ b/emulators/open-vm-kmod/files/patch-vmmemctl_os.c
@@ -1,5 +1,5 @@
---- modules/freebsd/vmmemctl/os.c.orig 2023-03-07 22:57:07 UTC
-+++ modules/freebsd/vmmemctl/os.c
+--- vmmemctl/os.c.orig 2024-10-10 15:05:07 UTC
++++ vmmemctl/os.c
@@ -103,7 +103,11 @@ MALLOC_DEFINE(M_VMMEMCTL, BALLOON_NAME, "vmmemctl meta
#define KVA_FREE(offset, size) kva_free(offset, size)
diff --git a/emulators/open-vm-kmod/pkg-descr b/emulators/open-vm-kmod/pkg-descr
new file mode 100644
--- /dev/null
+++ b/emulators/open-vm-kmod/pkg-descr
@@ -0,0 +1,6 @@
+open-vm-kmod is a set of modules that enable several features in
+VMware products for better management of, and seamless user
+interactions with, guests.
+
+It includes kernel modules for enhancing the performance of virtual
+machines running FreeBSD.
diff --git a/emulators/open-vm-tools/Makefile b/emulators/open-vm-tools/Makefile
--- a/emulators/open-vm-tools/Makefile
+++ b/emulators/open-vm-tools/Makefile
@@ -1,5 +1,6 @@
PORTNAME= open-vm-tools
PORTVERSION= 12.5.0
+PORTREVISION= 1
DISTVERSIONPREFIX= stable-
PORTEPOCH= 2
CATEGORIES= emulators
@@ -14,6 +15,7 @@
ONLY_FOR_ARCHS= aarch64 amd64 i386
LIB_DEPENDS= libdnet.so:net/libdnet
+RUN_DEPENDS= open-vm-kmod>0:emulators/open-vm-kmod
FLAVORS= default nox11
default_CONFLICTS_INSTALL= open-vm-tools-nox11
@@ -21,7 +23,7 @@
nox11_CONFLICTS_INSTALL= open-vm-tools
nox11_COMMENT= (without X11)
-USES= autoreconf gettext-runtime gnome kmod libtool localbase \
+USES= autoreconf gettext-runtime gnome libtool localbase \
pathfix pkgconfig
USE_GITHUB= yes
@@ -34,13 +36,12 @@
CONFIGURE_ARGS+=--disable-vgauth \
--enable-containerinfo=no \
--sysconfdir=${PREFIX}/etc \
- --without-icu
-CONFIGURE_ENV+= SYSDIR=${SRC_BASE}/sys
+ --without-icu \
+ --without-kernel-modules
INSTALL_TARGET= install-strip
CPPFLAGS+= -Wno-deprecated-declarations
-SSP_UNSAFE= kernel module does not support ssp
WRKSRC_SUBDIR= open-vm-tools
@@ -75,16 +76,9 @@
@${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@"\
${WRKSRC}/lib/guestApp/guestApp.c
-post-build:
- cd ${WRKSRC}/modules && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS}
-
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/input
- ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko \
- ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
- ${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko \
- ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/tools.conf \
${STAGEDIR}${DATADIR}/tools.conf.sample
diff --git a/emulators/open-vm-tools/files/patch-modules_Makefile.am b/emulators/open-vm-tools/files/patch-modules_Makefile.am
deleted file mode 100644
--- a/emulators/open-vm-tools/files/patch-modules_Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
---- modules/Makefile.am.orig 2018-09-29 03:57:04 UTC
-+++ modules/Makefile.am
-@@ -65,11 +65,11 @@ if SOLARIS
- done
- endif
- if FREEBSD
-- for MOD in $(MODULES); do \
-- $(INSTALL) -d $(DESTDIR)$(MODULES_DIR); \
-- $(INSTALL) -m 644 $(modulesrc)/$(MODULES_OS)/$$MOD.ko \
-- $(DESTDIR)$(MODULES_DIR); \
-- done
-+# for MOD in $(MODULES); do \
-+# $(INSTALL) -d $(DESTDIR)$(MODULES_DIR); \
-+# $(INSTALL) -m 644 $(modulesrc)/$(MODULES_OS)/$$MOD.ko \
-+# $(DESTDIR)$(MODULES_DIR); \
-+# done
- endif
-
- uninstall-hook:
diff --git a/emulators/open-vm-tools/files/vmware-kmod.in b/emulators/open-vm-tools/files/vmware-kmod.in
--- a/emulators/open-vm-tools/files/vmware-kmod.in
+++ b/emulators/open-vm-tools/files/vmware-kmod.in
@@ -13,9 +13,9 @@
vmware_mod_load()
{
echo -n "Loading $1 kernel module: "
- if kldstat -qn %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ if kldstat -qn $1.ko; then
echo "already loaded."
- elif kldload -q %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ elif kldload -q $1.ko; then
echo "done."
else
echo "failed."
@@ -25,7 +25,7 @@
vmware_mod_status()
{
echo -n "Checking $1 kernel module: "
- if kldstat -qn %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ if kldstat -qn $1.ko; then
echo "loaded."
else
echo "not loaded"
diff --git a/emulators/open-vm-tools/pkg-plist b/emulators/open-vm-tools/pkg-plist
--- a/emulators/open-vm-tools/pkg-plist
+++ b/emulators/open-vm-tools/pkg-plist
@@ -53,8 +53,6 @@
%%X11%%lib/open-vm-tools/plugins/vmusr/libdesktopEvents.so
%%X11%%lib/open-vm-tools/plugins/vmusr/libdndcp.so
%%X11%%lib/open-vm-tools/plugins/vmusr/libresolutionSet.so
-lib/vmware-tools/modules/drivers/vmblock.ko
-lib/vmware-tools/modules/drivers/vmmemctl.ko
%%DEPLOYPKG%%libdata/pkgconfig/libDeployPkg.pc
libdata/pkgconfig/vmguestlib.pc
sbin/mount_vmblock
@@ -83,6 +81,7 @@
share/vmware-tools/scripts/vmware/network
share/vmware-tools/statechange.subr
share/vmware-tools/suspend-vm-default
+@dir lib/vmware-tools/modules/drivers
@dir lib/vmware-tools/modules/input
@dir %%DATADIR%%/scripts/vmware
@dir %%DATADIR%%/tests
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 4:57 PM (15 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29593188
Default Alt Text
D48059.1789318629.diff (8 KB)
Attached To
Mode
D48059: emulators/open-vm-{tools,kmod}: split the package
Attached
Detach File
Event Timeline
Log In to Comment