aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authormatusita <matusita@FreeBSD.org>2003-07-24 23:34:44 +0800
committermatusita <matusita@FreeBSD.org>2003-07-24 23:34:44 +0800
commit32ebcb9388b2451c095a247270325992bd19d90a (patch)
tree716f327b89855bbfb5e88016d5578c1514cb34bd /emulators
parent05af83238bc11b2ddd2810abb9cfa49a0949a4b0 (diff)
downloadfreebsd-ports-gnome-32ebcb9388b2451c095a247270325992bd19d90a.tar.gz
freebsd-ports-gnome-32ebcb9388b2451c095a247270325992bd19d90a.tar.zst
freebsd-ports-gnome-32ebcb9388b2451c095a247270325992bd19d90a.zip
Update VMware Tools for 4.0.1 build-5289, the latest version of VMware
Workstation. This commit makes vmware-tools4 a slave port of vmware-guestd4, since both are made from the same tarball, and it would be easy to maintain. Vmware-guestd4 also installs a kernel module named vmmemctl; you may want to kldload(8) it with a shell script under rc.d/ directory. VMware Workstation 4.0.1 does fix "jumping the pointer" bug (yeah, thanks VMware developer team). This means that you do not have to install linux-vmware-toolbox4. However, it can be used as it should be, I do not disable and/or remove this port.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/linux-vmware-toolbox4/Makefile4
-rw-r--r--emulators/linux-vmware-toolbox5/Makefile4
-rw-r--r--emulators/linux-vmware-toolbox6/Makefile4
-rw-r--r--emulators/vmware-guestd4/Makefile104
-rw-r--r--emulators/vmware-guestd4/distinfo1
-rw-r--r--emulators/vmware-guestd4/files/vmware-guest_kmod.sh29
-rw-r--r--emulators/vmware-guestd4/files/vmware-guestd.sh4
-rw-r--r--emulators/vmware-guestd4/files/vmware-guestd.sh.in4
-rw-r--r--emulators/vmware-guestd4/pkg-descr3
-rw-r--r--emulators/vmware-guestd4/pkg-descr.tools (renamed from emulators/vmware-tools4/pkg-descr)0
-rw-r--r--emulators/vmware-guestd4/pkg-plist8
-rw-r--r--emulators/vmware-guestd4/pkg-plist.tools4
-rw-r--r--emulators/vmware-guestd5/Makefile104
-rw-r--r--emulators/vmware-guestd5/distinfo1
-rw-r--r--emulators/vmware-guestd5/files/vmware-guest_kmod.sh29
-rw-r--r--emulators/vmware-guestd5/files/vmware-guestd.sh4
-rw-r--r--emulators/vmware-guestd5/files/vmware-guestd.sh.in4
-rw-r--r--emulators/vmware-guestd5/pkg-descr3
-rw-r--r--emulators/vmware-guestd5/pkg-descr.tools (renamed from emulators/vmware-tools5/pkg-descr)0
-rw-r--r--emulators/vmware-guestd5/pkg-plist8
-rw-r--r--emulators/vmware-guestd5/pkg-plist.tools4
-rw-r--r--emulators/vmware-guestd6/Makefile104
-rw-r--r--emulators/vmware-guestd6/distinfo1
-rw-r--r--emulators/vmware-guestd6/files/vmware-guest_kmod.sh29
-rw-r--r--emulators/vmware-guestd6/files/vmware-guestd.sh4
-rw-r--r--emulators/vmware-guestd6/files/vmware-guestd.sh.in4
-rw-r--r--emulators/vmware-guestd6/pkg-descr3
-rw-r--r--emulators/vmware-guestd6/pkg-descr.tools (renamed from emulators/vmware-tools6/pkg-descr)0
-rw-r--r--emulators/vmware-guestd6/pkg-plist8
-rw-r--r--emulators/vmware-guestd6/pkg-plist.tools4
-rw-r--r--emulators/vmware-tools4/Makefile88
-rw-r--r--emulators/vmware-tools4/pkg-plist3
-rw-r--r--emulators/vmware-tools5/Makefile88
-rw-r--r--emulators/vmware-tools5/pkg-plist3
-rw-r--r--emulators/vmware-tools6/Makefile88
-rw-r--r--emulators/vmware-tools6/pkg-plist3
36 files changed, 417 insertions, 339 deletions
diff --git a/emulators/linux-vmware-toolbox4/Makefile b/emulators/linux-vmware-toolbox4/Makefile
index cf6aa9074be2..c5c9753ef327 100644
--- a/emulators/linux-vmware-toolbox4/Makefile
+++ b/emulators/linux-vmware-toolbox4/Makefile
@@ -31,8 +31,8 @@ IS_INTERACTIVE= yes
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
diff --git a/emulators/linux-vmware-toolbox5/Makefile b/emulators/linux-vmware-toolbox5/Makefile
index cf6aa9074be2..c5c9753ef327 100644
--- a/emulators/linux-vmware-toolbox5/Makefile
+++ b/emulators/linux-vmware-toolbox5/Makefile
@@ -31,8 +31,8 @@ IS_INTERACTIVE= yes
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
diff --git a/emulators/linux-vmware-toolbox6/Makefile b/emulators/linux-vmware-toolbox6/Makefile
index cf6aa9074be2..c5c9753ef327 100644
--- a/emulators/linux-vmware-toolbox6/Makefile
+++ b/emulators/linux-vmware-toolbox6/Makefile
@@ -31,8 +31,8 @@ IS_INTERACTIVE= yes
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
diff --git a/emulators/vmware-guestd4/Makefile b/emulators/vmware-guestd4/Makefile
index 14197f7c5e28..9231b4c7a3d3 100644
--- a/emulators/vmware-guestd4/Makefile
+++ b/emulators/vmware-guestd4/Makefile
@@ -5,44 +5,76 @@
# $FreeBSD$
#
-PORTNAME= vmware-guestd
+PORTNAME= vmware
PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
CATEGORIES= emulators
MASTER_SITES= # bundled with VMware itself
+PKGNAMESUFFIX?= -guestd
DISTNAME= vmware-freebsd-tools
MAINTAINER= matusita@FreeBSD.org
-COMMENT=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
+COMMENT?=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
+.if defined(VMWARE_X_PORTS)
+RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+.endif
DISTDIR= ${MOUNT_PT}
IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+WRKSRC= ${WRKDIR}/vmware-tools-distrib
ONLY_FOR_ARCHS= i386
-NO_BUILD= yes
.if !defined(BATCH)
IS_INTERACTIVE= yes
.endif
+.if defined(VMWARE_X_PORTS)
+USE_X_PREFIX= yes
+NO_BUILD= yes
+.endif
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
-MOUNT_DEV?= /dev/acd0c
+MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
MOUNT= /sbin/mount
UMOUNT= /sbin/umount
-do-fetch:
- @${DO_NADA}
+.include <bsd.port.pre.mk>
+
+.if defined(VMWARE_X_PORTS)
+
+.if ${XFREE86_VERSION} == 3
+PLIST_SUB+= INSTALLXSERVER3:=""
+PLIST_SUB+= INSTALLXSERVER4:="@comment "
+.else
+PLIST_SUB+= INSTALLXSERVER3:="@comment "
+PLIST_SUB+= INSTALLXSERVER4:=""
+.endif
+
+.else
+
+.if !defined(WITHOUT_VMWARE_VMMEMCTL)
+WITH_VMWARE_VMMEMCTL=YES
+.endif
+VMWARE_KMODDIR= ${PREFIX}/lib/vmware-tools/modules
+.if defined(WITH_VMWARE_VMMEMCTL)
+PLIST_SUB+= VMWARE_VMMEMCTL:=""
+PLIST_SUB+= VMWARE_KMODDIR:="${VMWARE_KMODDIR}"
+.else
+PLIST_SUB+= VMWARE_VMMEMCTL:="@comment "
+PLIST_SUB+= VMWARE_KMODDIR:="@comment "
+.endif
+
+.endif
+
fetch-list:
@${DO_NADA}
-pre-extract:
+do-fetch:
@${ECHO} ""
@${ECHO} "========================================================================"
@${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
@@ -68,14 +100,46 @@ pre-extract:
post-extract:
${UMOUNT} ${MOUNT_PT}
+.if !defined(VMWARE_X_PORTS)
+ (cd ${WRKDIR}; ${TAR} xf ${WRKSRC}/lib/modules/source/vmmemctl.tar)
+.endif
+
+.if defined(VMWARE_X_PORTS)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-guestd ${PREFIX}/sbin
- ${INSTALL_PROGRAM} ${WRKSRC}/checkvm ${PREFIX}/sbin
- @if [ ! -f ${PREFIX}/etc/rc.d/vmware-guestd.sh ]; then \
- ${ECHO} "Installing ${PREFIX}/etc/rc.d/vmware-guestd.sh startup file."; \
- ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh ${PREFIX}/etc/rc.d; \
- fi
- -${PREFIX}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.mk>
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/vmware-toolbox ${X11BASE}/bin
+.if ${XFREE86_VERSION} == 3
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/configurator/XFree86-3/XF86_VMware ${X11BASE}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-3/XF86Config ${X11BASE}/etc/XF86Config_VMware
+ @${ECHO} ""
+ @${ECHO} "You have installed XFree86 3.x X Server for VMware."
+ @${ECHO} "${X11BASE}/etc/XF86Config_VMware is a sample XF86Config file."
+ @${ECHO} "Copy this file to /etc/XF86Config before starting X."
+.else
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-4/XF86Config-4 ${X11BASE}/etc/XF86Config-4_VMware
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.else
+
+do-build:
+.if defined(WITH_VMWARE_VMMEMCTL)
+ (cd ${WRKDIR}/vmmemctl-only; make)
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-guestd ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-checkvm ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh \
+ ${PREFIX}/etc/rc.d/vmware-guestd.sh.sample
+.if defined(WITH_VMWARE_VMMEMCTL)
+ ${MKDIR} ${VMWARE_KMODDIR}
+ ${INSTALL_PROGRAM} ${WRKDIR}/vmmemctl-only/vmmemctl.ko ${VMWARE_KMODDIR}
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guest_kmod.sh \
+ ${PREFIX}/etc/rc.d/vmware-guest_kmod.sh.sample
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/vmware-guestd4/distinfo b/emulators/vmware-guestd4/distinfo
new file mode 100644
index 000000000000..9a33295bd1da
--- /dev/null
+++ b/emulators/vmware-guestd4/distinfo
@@ -0,0 +1 @@
+MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
diff --git a/emulators/vmware-guestd4/files/vmware-guest_kmod.sh b/emulators/vmware-guestd4/files/vmware-guest_kmod.sh
new file mode 100644
index 000000000000..4791eda0b737
--- /dev/null
+++ b/emulators/vmware-guestd4/files/vmware-guest_kmod.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null || kldload ${PREFIX}/lib/vmware/lib/modules/vmmemctl.ko
+ echo -n ' vmware-guestkmod'
+ fi
+ ;;
+stop)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null && kldunload vmmemctl && echo -n ' vmware-guestkmod'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/emulators/vmware-guestd4/files/vmware-guestd.sh b/emulators/vmware-guestd4/files/vmware-guestd.sh
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd4/files/vmware-guestd.sh
+++ b/emulators/vmware-guestd4/files/vmware-guestd.sh
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd4/files/vmware-guestd.sh.in b/emulators/vmware-guestd4/files/vmware-guestd.sh.in
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd4/files/vmware-guestd.sh.in
+++ b/emulators/vmware-guestd4/files/vmware-guestd.sh.in
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd4/pkg-descr b/emulators/vmware-guestd4/pkg-descr
index 8a599279a757..920d9d0dbbc7 100644
--- a/emulators/vmware-guestd4/pkg-descr
+++ b/emulators/vmware-guestd4/pkg-descr
@@ -1,6 +1,7 @@
vmware-guestd daemon is for time synchronization with host OS and others.
Beware, this port is for FreeBSD _guest_ OS. You don't need to install
-this ports to FreeBSD _host_ OS.
+this ports to FreeBSD _host_ OS. This ports also installs a kernel modules
+for FreeBSD guest.
If you want to run FreeBSD as a VMware guest OS, install this port
would help you. If you want to run X, install vmware-tools too.
diff --git a/emulators/vmware-tools4/pkg-descr b/emulators/vmware-guestd4/pkg-descr.tools
index 68165f70e46f..68165f70e46f 100644
--- a/emulators/vmware-tools4/pkg-descr
+++ b/emulators/vmware-guestd4/pkg-descr.tools
diff --git a/emulators/vmware-guestd4/pkg-plist b/emulators/vmware-guestd4/pkg-plist
index 0748d2977ee2..858c18bd9250 100644
--- a/emulators/vmware-guestd4/pkg-plist
+++ b/emulators/vmware-guestd4/pkg-plist
@@ -1,3 +1,7 @@
-sbin/checkvm
+sbin/vmware-checkvm
sbin/vmware-guestd
-etc/rc.d/vmware-guestd.sh
+etc/rc.d/vmware-guestd.sh.sample
+%%VMWARE_VMMEMCTL:%%etc/rc.d/vmware-guest_kmod.sh.sample
+%%VMWARE_VMMEMCTL:%%lib/vmware-tools/modules/vmmemctl.ko
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools/modules 2>/dev/null || true
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools 2>/dev/null || true
diff --git a/emulators/vmware-guestd4/pkg-plist.tools b/emulators/vmware-guestd4/pkg-plist.tools
new file mode 100644
index 000000000000..4d614c4466f6
--- /dev/null
+++ b/emulators/vmware-guestd4/pkg-plist.tools
@@ -0,0 +1,4 @@
+bin/vmware-toolbox
+%%INSTALLXSERVER3:%%bin/XF86_VMware
+%%INSTALLXSERVER3:%%etc/XF86Config_VMware
+%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
diff --git a/emulators/vmware-guestd5/Makefile b/emulators/vmware-guestd5/Makefile
index 14197f7c5e28..9231b4c7a3d3 100644
--- a/emulators/vmware-guestd5/Makefile
+++ b/emulators/vmware-guestd5/Makefile
@@ -5,44 +5,76 @@
# $FreeBSD$
#
-PORTNAME= vmware-guestd
+PORTNAME= vmware
PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
CATEGORIES= emulators
MASTER_SITES= # bundled with VMware itself
+PKGNAMESUFFIX?= -guestd
DISTNAME= vmware-freebsd-tools
MAINTAINER= matusita@FreeBSD.org
-COMMENT=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
+COMMENT?=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
+.if defined(VMWARE_X_PORTS)
+RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+.endif
DISTDIR= ${MOUNT_PT}
IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+WRKSRC= ${WRKDIR}/vmware-tools-distrib
ONLY_FOR_ARCHS= i386
-NO_BUILD= yes
.if !defined(BATCH)
IS_INTERACTIVE= yes
.endif
+.if defined(VMWARE_X_PORTS)
+USE_X_PREFIX= yes
+NO_BUILD= yes
+.endif
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
-MOUNT_DEV?= /dev/acd0c
+MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
MOUNT= /sbin/mount
UMOUNT= /sbin/umount
-do-fetch:
- @${DO_NADA}
+.include <bsd.port.pre.mk>
+
+.if defined(VMWARE_X_PORTS)
+
+.if ${XFREE86_VERSION} == 3
+PLIST_SUB+= INSTALLXSERVER3:=""
+PLIST_SUB+= INSTALLXSERVER4:="@comment "
+.else
+PLIST_SUB+= INSTALLXSERVER3:="@comment "
+PLIST_SUB+= INSTALLXSERVER4:=""
+.endif
+
+.else
+
+.if !defined(WITHOUT_VMWARE_VMMEMCTL)
+WITH_VMWARE_VMMEMCTL=YES
+.endif
+VMWARE_KMODDIR= ${PREFIX}/lib/vmware-tools/modules
+.if defined(WITH_VMWARE_VMMEMCTL)
+PLIST_SUB+= VMWARE_VMMEMCTL:=""
+PLIST_SUB+= VMWARE_KMODDIR:="${VMWARE_KMODDIR}"
+.else
+PLIST_SUB+= VMWARE_VMMEMCTL:="@comment "
+PLIST_SUB+= VMWARE_KMODDIR:="@comment "
+.endif
+
+.endif
+
fetch-list:
@${DO_NADA}
-pre-extract:
+do-fetch:
@${ECHO} ""
@${ECHO} "========================================================================"
@${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
@@ -68,14 +100,46 @@ pre-extract:
post-extract:
${UMOUNT} ${MOUNT_PT}
+.if !defined(VMWARE_X_PORTS)
+ (cd ${WRKDIR}; ${TAR} xf ${WRKSRC}/lib/modules/source/vmmemctl.tar)
+.endif
+
+.if defined(VMWARE_X_PORTS)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-guestd ${PREFIX}/sbin
- ${INSTALL_PROGRAM} ${WRKSRC}/checkvm ${PREFIX}/sbin
- @if [ ! -f ${PREFIX}/etc/rc.d/vmware-guestd.sh ]; then \
- ${ECHO} "Installing ${PREFIX}/etc/rc.d/vmware-guestd.sh startup file."; \
- ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh ${PREFIX}/etc/rc.d; \
- fi
- -${PREFIX}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.mk>
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/vmware-toolbox ${X11BASE}/bin
+.if ${XFREE86_VERSION} == 3
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/configurator/XFree86-3/XF86_VMware ${X11BASE}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-3/XF86Config ${X11BASE}/etc/XF86Config_VMware
+ @${ECHO} ""
+ @${ECHO} "You have installed XFree86 3.x X Server for VMware."
+ @${ECHO} "${X11BASE}/etc/XF86Config_VMware is a sample XF86Config file."
+ @${ECHO} "Copy this file to /etc/XF86Config before starting X."
+.else
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-4/XF86Config-4 ${X11BASE}/etc/XF86Config-4_VMware
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.else
+
+do-build:
+.if defined(WITH_VMWARE_VMMEMCTL)
+ (cd ${WRKDIR}/vmmemctl-only; make)
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-guestd ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-checkvm ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh \
+ ${PREFIX}/etc/rc.d/vmware-guestd.sh.sample
+.if defined(WITH_VMWARE_VMMEMCTL)
+ ${MKDIR} ${VMWARE_KMODDIR}
+ ${INSTALL_PROGRAM} ${WRKDIR}/vmmemctl-only/vmmemctl.ko ${VMWARE_KMODDIR}
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guest_kmod.sh \
+ ${PREFIX}/etc/rc.d/vmware-guest_kmod.sh.sample
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/vmware-guestd5/distinfo b/emulators/vmware-guestd5/distinfo
new file mode 100644
index 000000000000..9a33295bd1da
--- /dev/null
+++ b/emulators/vmware-guestd5/distinfo
@@ -0,0 +1 @@
+MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
diff --git a/emulators/vmware-guestd5/files/vmware-guest_kmod.sh b/emulators/vmware-guestd5/files/vmware-guest_kmod.sh
new file mode 100644
index 000000000000..4791eda0b737
--- /dev/null
+++ b/emulators/vmware-guestd5/files/vmware-guest_kmod.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null || kldload ${PREFIX}/lib/vmware/lib/modules/vmmemctl.ko
+ echo -n ' vmware-guestkmod'
+ fi
+ ;;
+stop)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null && kldunload vmmemctl && echo -n ' vmware-guestkmod'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/emulators/vmware-guestd5/files/vmware-guestd.sh b/emulators/vmware-guestd5/files/vmware-guestd.sh
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd5/files/vmware-guestd.sh
+++ b/emulators/vmware-guestd5/files/vmware-guestd.sh
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd5/files/vmware-guestd.sh.in b/emulators/vmware-guestd5/files/vmware-guestd.sh.in
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd5/files/vmware-guestd.sh.in
+++ b/emulators/vmware-guestd5/files/vmware-guestd.sh.in
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd5/pkg-descr b/emulators/vmware-guestd5/pkg-descr
index 8a599279a757..920d9d0dbbc7 100644
--- a/emulators/vmware-guestd5/pkg-descr
+++ b/emulators/vmware-guestd5/pkg-descr
@@ -1,6 +1,7 @@
vmware-guestd daemon is for time synchronization with host OS and others.
Beware, this port is for FreeBSD _guest_ OS. You don't need to install
-this ports to FreeBSD _host_ OS.
+this ports to FreeBSD _host_ OS. This ports also installs a kernel modules
+for FreeBSD guest.
If you want to run FreeBSD as a VMware guest OS, install this port
would help you. If you want to run X, install vmware-tools too.
diff --git a/emulators/vmware-tools5/pkg-descr b/emulators/vmware-guestd5/pkg-descr.tools
index 68165f70e46f..68165f70e46f 100644
--- a/emulators/vmware-tools5/pkg-descr
+++ b/emulators/vmware-guestd5/pkg-descr.tools
diff --git a/emulators/vmware-guestd5/pkg-plist b/emulators/vmware-guestd5/pkg-plist
index 0748d2977ee2..858c18bd9250 100644
--- a/emulators/vmware-guestd5/pkg-plist
+++ b/emulators/vmware-guestd5/pkg-plist
@@ -1,3 +1,7 @@
-sbin/checkvm
+sbin/vmware-checkvm
sbin/vmware-guestd
-etc/rc.d/vmware-guestd.sh
+etc/rc.d/vmware-guestd.sh.sample
+%%VMWARE_VMMEMCTL:%%etc/rc.d/vmware-guest_kmod.sh.sample
+%%VMWARE_VMMEMCTL:%%lib/vmware-tools/modules/vmmemctl.ko
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools/modules 2>/dev/null || true
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools 2>/dev/null || true
diff --git a/emulators/vmware-guestd5/pkg-plist.tools b/emulators/vmware-guestd5/pkg-plist.tools
new file mode 100644
index 000000000000..4d614c4466f6
--- /dev/null
+++ b/emulators/vmware-guestd5/pkg-plist.tools
@@ -0,0 +1,4 @@
+bin/vmware-toolbox
+%%INSTALLXSERVER3:%%bin/XF86_VMware
+%%INSTALLXSERVER3:%%etc/XF86Config_VMware
+%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
diff --git a/emulators/vmware-guestd6/Makefile b/emulators/vmware-guestd6/Makefile
index 14197f7c5e28..9231b4c7a3d3 100644
--- a/emulators/vmware-guestd6/Makefile
+++ b/emulators/vmware-guestd6/Makefile
@@ -5,44 +5,76 @@
# $FreeBSD$
#
-PORTNAME= vmware-guestd
+PORTNAME= vmware
PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
CATEGORIES= emulators
MASTER_SITES= # bundled with VMware itself
+PKGNAMESUFFIX?= -guestd
DISTNAME= vmware-freebsd-tools
MAINTAINER= matusita@FreeBSD.org
-COMMENT=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
+COMMENT?=VMware time synchronization daemon for FreeBSD guest OS (for VMware 4.x)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
+.if defined(VMWARE_X_PORTS)
+RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+.endif
DISTDIR= ${MOUNT_PT}
IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+WRKSRC= ${WRKDIR}/vmware-tools-distrib
ONLY_FOR_ARCHS= i386
-NO_BUILD= yes
.if !defined(BATCH)
IS_INTERACTIVE= yes
.endif
+.if defined(VMWARE_X_PORTS)
+USE_X_PREFIX= yes
+NO_BUILD= yes
+.endif
RESTRICTED= "Not sure if we can redistribute this."
NO_PACKAGE= ${RESTRICTED}
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
+VMWARE_VER= 4.0.1
+BUILD_VER= 5289
-MOUNT_DEV?= /dev/acd0c
+MOUNT_DEV?= /dev/acd0
MOUNT_PT?= /mnt
MOUNT= /sbin/mount
UMOUNT= /sbin/umount
-do-fetch:
- @${DO_NADA}
+.include <bsd.port.pre.mk>
+
+.if defined(VMWARE_X_PORTS)
+
+.if ${XFREE86_VERSION} == 3
+PLIST_SUB+= INSTALLXSERVER3:=""
+PLIST_SUB+= INSTALLXSERVER4:="@comment "
+.else
+PLIST_SUB+= INSTALLXSERVER3:="@comment "
+PLIST_SUB+= INSTALLXSERVER4:=""
+.endif
+
+.else
+
+.if !defined(WITHOUT_VMWARE_VMMEMCTL)
+WITH_VMWARE_VMMEMCTL=YES
+.endif
+VMWARE_KMODDIR= ${PREFIX}/lib/vmware-tools/modules
+.if defined(WITH_VMWARE_VMMEMCTL)
+PLIST_SUB+= VMWARE_VMMEMCTL:=""
+PLIST_SUB+= VMWARE_KMODDIR:="${VMWARE_KMODDIR}"
+.else
+PLIST_SUB+= VMWARE_VMMEMCTL:="@comment "
+PLIST_SUB+= VMWARE_KMODDIR:="@comment "
+.endif
+
+.endif
+
fetch-list:
@${DO_NADA}
-pre-extract:
+do-fetch:
@${ECHO} ""
@${ECHO} "========================================================================"
@${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
@@ -68,14 +100,46 @@ pre-extract:
post-extract:
${UMOUNT} ${MOUNT_PT}
+.if !defined(VMWARE_X_PORTS)
+ (cd ${WRKDIR}; ${TAR} xf ${WRKSRC}/lib/modules/source/vmmemctl.tar)
+.endif
+
+.if defined(VMWARE_X_PORTS)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-guestd ${PREFIX}/sbin
- ${INSTALL_PROGRAM} ${WRKSRC}/checkvm ${PREFIX}/sbin
- @if [ ! -f ${PREFIX}/etc/rc.d/vmware-guestd.sh ]; then \
- ${ECHO} "Installing ${PREFIX}/etc/rc.d/vmware-guestd.sh startup file."; \
- ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh ${PREFIX}/etc/rc.d; \
- fi
- -${PREFIX}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.mk>
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/vmware-toolbox ${X11BASE}/bin
+.if ${XFREE86_VERSION} == 3
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/configurator/XFree86-3/XF86_VMware ${X11BASE}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-3/XF86Config ${X11BASE}/etc/XF86Config_VMware
+ @${ECHO} ""
+ @${ECHO} "You have installed XFree86 3.x X Server for VMware."
+ @${ECHO} "${X11BASE}/etc/XF86Config_VMware is a sample XF86Config file."
+ @${ECHO} "Copy this file to /etc/XF86Config before starting X."
+.else
+ ${INSTALL_DATA} ${WRKSRC}/lib/configurator/XFree86-4/XF86Config-4 ${X11BASE}/etc/XF86Config-4_VMware
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.else
+
+do-build:
+.if defined(WITH_VMWARE_VMMEMCTL)
+ (cd ${WRKDIR}/vmmemctl-only; make)
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-guestd ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/sbin/vmware-checkvm ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guestd.sh \
+ ${PREFIX}/etc/rc.d/vmware-guestd.sh.sample
+.if defined(WITH_VMWARE_VMMEMCTL)
+ ${MKDIR} ${VMWARE_KMODDIR}
+ ${INSTALL_PROGRAM} ${WRKDIR}/vmmemctl-only/vmmemctl.ko ${VMWARE_KMODDIR}
+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vmware-guest_kmod.sh \
+ ${PREFIX}/etc/rc.d/vmware-guest_kmod.sh.sample
+.endif
+ -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
+
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/emulators/vmware-guestd6/distinfo b/emulators/vmware-guestd6/distinfo
new file mode 100644
index 000000000000..9a33295bd1da
--- /dev/null
+++ b/emulators/vmware-guestd6/distinfo
@@ -0,0 +1 @@
+MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
diff --git a/emulators/vmware-guestd6/files/vmware-guest_kmod.sh b/emulators/vmware-guestd6/files/vmware-guest_kmod.sh
new file mode 100644
index 000000000000..4791eda0b737
--- /dev/null
+++ b/emulators/vmware-guestd6/files/vmware-guest_kmod.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null || kldload ${PREFIX}/lib/vmware/lib/modules/vmmemctl.ko
+ echo -n ' vmware-guestkmod'
+ fi
+ ;;
+stop)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
+ kldstat -v | grep vmmemctl >/dev/null && kldunload vmmemctl && echo -n ' vmware-guestkmod'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh b/emulators/vmware-guestd6/files/vmware-guestd.sh
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd6/files/vmware-guestd.sh
+++ b/emulators/vmware-guestd6/files/vmware-guestd.sh
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh.in b/emulators/vmware-guestd6/files/vmware-guestd.sh.in
index 10f0e0e5e31d..569be8a4121e 100644
--- a/emulators/vmware-guestd6/files/vmware-guestd.sh.in
+++ b/emulators/vmware-guestd6/files/vmware-guestd.sh.in
@@ -9,7 +9,7 @@ case "$1" in
start)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
${PREFIX}/sbin/vmware-guestd &
echo -n ' vmware-guestd'
fi
@@ -17,7 +17,7 @@ start)
stop)
exec 2>/dev/null
ulimit -c 0
- if ${PREFIX}/sbin/checkvm >/dev/null; then
+ if ${PREFIX}/sbin/vmware-checkvm >/dev/null; then
killall vmware-guestd && echo -n ' vmware-guestd'
fi
;;
diff --git a/emulators/vmware-guestd6/pkg-descr b/emulators/vmware-guestd6/pkg-descr
index 8a599279a757..920d9d0dbbc7 100644
--- a/emulators/vmware-guestd6/pkg-descr
+++ b/emulators/vmware-guestd6/pkg-descr
@@ -1,6 +1,7 @@
vmware-guestd daemon is for time synchronization with host OS and others.
Beware, this port is for FreeBSD _guest_ OS. You don't need to install
-this ports to FreeBSD _host_ OS.
+this ports to FreeBSD _host_ OS. This ports also installs a kernel modules
+for FreeBSD guest.
If you want to run FreeBSD as a VMware guest OS, install this port
would help you. If you want to run X, install vmware-tools too.
diff --git a/emulators/vmware-tools6/pkg-descr b/emulators/vmware-guestd6/pkg-descr.tools
index 68165f70e46f..68165f70e46f 100644
--- a/emulators/vmware-tools6/pkg-descr
+++ b/emulators/vmware-guestd6/pkg-descr.tools
diff --git a/emulators/vmware-guestd6/pkg-plist b/emulators/vmware-guestd6/pkg-plist
index 0748d2977ee2..858c18bd9250 100644
--- a/emulators/vmware-guestd6/pkg-plist
+++ b/emulators/vmware-guestd6/pkg-plist
@@ -1,3 +1,7 @@
-sbin/checkvm
+sbin/vmware-checkvm
sbin/vmware-guestd
-etc/rc.d/vmware-guestd.sh
+etc/rc.d/vmware-guestd.sh.sample
+%%VMWARE_VMMEMCTL:%%etc/rc.d/vmware-guest_kmod.sh.sample
+%%VMWARE_VMMEMCTL:%%lib/vmware-tools/modules/vmmemctl.ko
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools/modules 2>/dev/null || true
+%%VMWARE_VMMEMCTL:%%@unexec rmdir %D/lib/vmware-tools 2>/dev/null || true
diff --git a/emulators/vmware-guestd6/pkg-plist.tools b/emulators/vmware-guestd6/pkg-plist.tools
new file mode 100644
index 000000000000..4d614c4466f6
--- /dev/null
+++ b/emulators/vmware-guestd6/pkg-plist.tools
@@ -0,0 +1,4 @@
+bin/vmware-toolbox
+%%INSTALLXSERVER3:%%bin/XF86_VMware
+%%INSTALLXSERVER3:%%etc/XF86Config_VMware
+%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
diff --git a/emulators/vmware-tools4/Makefile b/emulators/vmware-tools4/Makefile
index 9c8e1b1d5303..6b376e402e01 100644
--- a/emulators/vmware-tools4/Makefile
+++ b/emulators/vmware-tools4/Makefile
@@ -5,90 +5,16 @@
# $FreeBSD$
#
-PORTNAME= vmware-tools
-PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
-CATEGORIES= emulators
+PORTNAME= vmware
MASTER_SITES= # bundled with VMware itself
-DISTNAME= vmware-freebsd-tools
+PKGNAMESUFFIX?= -tools
-MAINTAINER= matusita@FreeBSD.org
COMMENT=VMware tools for guest OS (for VMware 4.x, FreeBSD version)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
-RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+MASTERDIR= ${.CURDIR}/../vmware-guestd4
+DESCR= ${PKGDIR}/pkg-descr.tools
+PLIST= ${PKGDIR}/pkg-plist.tools
-DISTDIR= ${MOUNT_PT}
-IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+VMWARE_X_PORTS= YES
-ONLY_FOR_ARCHS= i386
-USE_X_PREFIX= yes
-NO_BUILD= yes
-.if !defined(BATCH)
-IS_INTERACTIVE= yes
-.endif
-
-RESTRICTED= "Not sure if we can redistribute this."
-NO_PACKAGE= ${RESTRICTED}
-
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
-
-MOUNT_DEV?= /dev/acd0c
-MOUNT_PT?= /mnt
-MOUNT= /sbin/mount
-UMOUNT= /sbin/umount
-
-.include <bsd.port.pre.mk>
-
-.if ${XFREE86_VERSION} == 3
-PLIST_SUB+= INSTALLXSERVER:=""
-.else
-PLIST_SUB+= INSTALLXSERVER:="@comment "
-.endif
-
-do-fetch:
- @${DO_NADA}
-fetch-list:
- @${DO_NADA}
-
-pre-extract:
- @${ECHO} ""
- @${ECHO} "========================================================================"
- @${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
- @${ECHO} "to connect the VM's CD-ROM drive temporarily to installation CD image."
- @${ECHO} "========================================================================"
- @${ECHO} ""
-.if !defined(BATCH)
- @${ECHO} "This port mounts ${MOUNT_DEV} to ${MOUNT_PT}."
- @${ECHO} ""
- @${ECHO} -n "Are you ready? [Y/n]: "
- @(read line; \
- case "$${line}" in \
- [Nn]*) \
- ${FALSE} ;; \
- *) \
- ${TRUE} ;; \
- esac)
-.endif
- ${MKDIR} ${MOUNT_PT}
- -${UMOUNT} ${MOUNT_PT} 2>&1 >/dev/null
- -${UMOUNT} ${MOUNT_DEV} 2>&1 >/dev/null
- ${MOUNT} -t cd9660 ${MOUNT_DEV} ${MOUNT_PT}
-
-post-extract:
- ${UMOUNT} ${MOUNT_PT}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-toolbox ${PREFIX}/bin
-.if ${XFREE86_VERSION} == 3
- ${INSTALL_PROGRAM} ${WRKSRC}/XF86_VMware ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/XF86Config.dist ${PREFIX}/etc/XF86Config_VMware
- @${ECHO} ""
- @${ECHO} "You have installed XFree86 3.x X Server for VMware."
- @${ECHO} "${PREFIX}/etc/XF86Config_VMware is a sample XF86Config file."
- @${ECHO} "Copy this file to /etc/XF86Config before starting X."
-.endif
- -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.post.mk>
+.include "${MASTERDIR}/Makefile"
diff --git a/emulators/vmware-tools4/pkg-plist b/emulators/vmware-tools4/pkg-plist
deleted file mode 100644
index 51edd7fd6855..000000000000
--- a/emulators/vmware-tools4/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/vmware-toolbox
-%%INSTALLXSERVER:%%bin/XF86_VMware
-%%INSTALLXSERVER:%%etc/XF86Config_VMware
diff --git a/emulators/vmware-tools5/Makefile b/emulators/vmware-tools5/Makefile
index 9c8e1b1d5303..6b376e402e01 100644
--- a/emulators/vmware-tools5/Makefile
+++ b/emulators/vmware-tools5/Makefile
@@ -5,90 +5,16 @@
# $FreeBSD$
#
-PORTNAME= vmware-tools
-PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
-CATEGORIES= emulators
+PORTNAME= vmware
MASTER_SITES= # bundled with VMware itself
-DISTNAME= vmware-freebsd-tools
+PKGNAMESUFFIX?= -tools
-MAINTAINER= matusita@FreeBSD.org
COMMENT=VMware tools for guest OS (for VMware 4.x, FreeBSD version)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
-RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+MASTERDIR= ${.CURDIR}/../vmware-guestd4
+DESCR= ${PKGDIR}/pkg-descr.tools
+PLIST= ${PKGDIR}/pkg-plist.tools
-DISTDIR= ${MOUNT_PT}
-IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+VMWARE_X_PORTS= YES
-ONLY_FOR_ARCHS= i386
-USE_X_PREFIX= yes
-NO_BUILD= yes
-.if !defined(BATCH)
-IS_INTERACTIVE= yes
-.endif
-
-RESTRICTED= "Not sure if we can redistribute this."
-NO_PACKAGE= ${RESTRICTED}
-
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
-
-MOUNT_DEV?= /dev/acd0c
-MOUNT_PT?= /mnt
-MOUNT= /sbin/mount
-UMOUNT= /sbin/umount
-
-.include <bsd.port.pre.mk>
-
-.if ${XFREE86_VERSION} == 3
-PLIST_SUB+= INSTALLXSERVER:=""
-.else
-PLIST_SUB+= INSTALLXSERVER:="@comment "
-.endif
-
-do-fetch:
- @${DO_NADA}
-fetch-list:
- @${DO_NADA}
-
-pre-extract:
- @${ECHO} ""
- @${ECHO} "========================================================================"
- @${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
- @${ECHO} "to connect the VM's CD-ROM drive temporarily to installation CD image."
- @${ECHO} "========================================================================"
- @${ECHO} ""
-.if !defined(BATCH)
- @${ECHO} "This port mounts ${MOUNT_DEV} to ${MOUNT_PT}."
- @${ECHO} ""
- @${ECHO} -n "Are you ready? [Y/n]: "
- @(read line; \
- case "$${line}" in \
- [Nn]*) \
- ${FALSE} ;; \
- *) \
- ${TRUE} ;; \
- esac)
-.endif
- ${MKDIR} ${MOUNT_PT}
- -${UMOUNT} ${MOUNT_PT} 2>&1 >/dev/null
- -${UMOUNT} ${MOUNT_DEV} 2>&1 >/dev/null
- ${MOUNT} -t cd9660 ${MOUNT_DEV} ${MOUNT_PT}
-
-post-extract:
- ${UMOUNT} ${MOUNT_PT}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-toolbox ${PREFIX}/bin
-.if ${XFREE86_VERSION} == 3
- ${INSTALL_PROGRAM} ${WRKSRC}/XF86_VMware ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/XF86Config.dist ${PREFIX}/etc/XF86Config_VMware
- @${ECHO} ""
- @${ECHO} "You have installed XFree86 3.x X Server for VMware."
- @${ECHO} "${PREFIX}/etc/XF86Config_VMware is a sample XF86Config file."
- @${ECHO} "Copy this file to /etc/XF86Config before starting X."
-.endif
- -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.post.mk>
+.include "${MASTERDIR}/Makefile"
diff --git a/emulators/vmware-tools5/pkg-plist b/emulators/vmware-tools5/pkg-plist
deleted file mode 100644
index 51edd7fd6855..000000000000
--- a/emulators/vmware-tools5/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/vmware-toolbox
-%%INSTALLXSERVER:%%bin/XF86_VMware
-%%INSTALLXSERVER:%%etc/XF86Config_VMware
diff --git a/emulators/vmware-tools6/Makefile b/emulators/vmware-tools6/Makefile
index 9c8e1b1d5303..6b376e402e01 100644
--- a/emulators/vmware-tools6/Makefile
+++ b/emulators/vmware-tools6/Makefile
@@ -5,90 +5,16 @@
# $FreeBSD$
#
-PORTNAME= vmware-tools
-PORTVERSION= ${VMWARE_VER}.${BUILD_VER}
-CATEGORIES= emulators
+PORTNAME= vmware
MASTER_SITES= # bundled with VMware itself
-DISTNAME= vmware-freebsd-tools
+PKGNAMESUFFIX?= -tools
-MAINTAINER= matusita@FreeBSD.org
COMMENT=VMware tools for guest OS (for VMware 4.x, FreeBSD version)
-LIB_DEPENDS= c.3:${PORTSDIR}/misc/compat3x
-RUN_DEPENDS= ${LOCALBASE}/sbin/vmware-guestd:${PORTSDIR}/emulators/vmware-guestd4
+MASTERDIR= ${.CURDIR}/../vmware-guestd4
+DESCR= ${PKGDIR}/pkg-descr.tools
+PLIST= ${PKGDIR}/pkg-plist.tools
-DISTDIR= ${MOUNT_PT}
-IGNOREFILES= ${DISTFILES}
-WRKSRC= ${WRKDIR}/vmware-freebsd-tools
+VMWARE_X_PORTS= YES
-ONLY_FOR_ARCHS= i386
-USE_X_PREFIX= yes
-NO_BUILD= yes
-.if !defined(BATCH)
-IS_INTERACTIVE= yes
-.endif
-
-RESTRICTED= "Not sure if we can redistribute this."
-NO_PACKAGE= ${RESTRICTED}
-
-VMWARE_VER= 4.0.0
-BUILD_VER= 4460
-
-MOUNT_DEV?= /dev/acd0c
-MOUNT_PT?= /mnt
-MOUNT= /sbin/mount
-UMOUNT= /sbin/umount
-
-.include <bsd.port.pre.mk>
-
-.if ${XFREE86_VERSION} == 3
-PLIST_SUB+= INSTALLXSERVER:=""
-.else
-PLIST_SUB+= INSTALLXSERVER:="@comment "
-.endif
-
-do-fetch:
- @${DO_NADA}
-fetch-list:
- @${DO_NADA}
-
-pre-extract:
- @${ECHO} ""
- @${ECHO} "========================================================================"
- @${ECHO} "Choose \"File\" -> \"Install VMware Tools...\" from the Workstation menu"
- @${ECHO} "to connect the VM's CD-ROM drive temporarily to installation CD image."
- @${ECHO} "========================================================================"
- @${ECHO} ""
-.if !defined(BATCH)
- @${ECHO} "This port mounts ${MOUNT_DEV} to ${MOUNT_PT}."
- @${ECHO} ""
- @${ECHO} -n "Are you ready? [Y/n]: "
- @(read line; \
- case "$${line}" in \
- [Nn]*) \
- ${FALSE} ;; \
- *) \
- ${TRUE} ;; \
- esac)
-.endif
- ${MKDIR} ${MOUNT_PT}
- -${UMOUNT} ${MOUNT_PT} 2>&1 >/dev/null
- -${UMOUNT} ${MOUNT_DEV} 2>&1 >/dev/null
- ${MOUNT} -t cd9660 ${MOUNT_DEV} ${MOUNT_PT}
-
-post-extract:
- ${UMOUNT} ${MOUNT_PT}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/vmware-toolbox ${PREFIX}/bin
-.if ${XFREE86_VERSION} == 3
- ${INSTALL_PROGRAM} ${WRKSRC}/XF86_VMware ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/XF86Config.dist ${PREFIX}/etc/XF86Config_VMware
- @${ECHO} ""
- @${ECHO} "You have installed XFree86 3.x X Server for VMware."
- @${ECHO} "${PREFIX}/etc/XF86Config_VMware is a sample XF86Config file."
- @${ECHO} "Copy this file to /etc/XF86Config before starting X."
-.endif
- -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end
-
-.include <bsd.port.post.mk>
+.include "${MASTERDIR}/Makefile"
diff --git a/emulators/vmware-tools6/pkg-plist b/emulators/vmware-tools6/pkg-plist
deleted file mode 100644
index 51edd7fd6855..000000000000
--- a/emulators/vmware-tools6/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/vmware-toolbox
-%%INSTALLXSERVER:%%bin/XF86_VMware
-%%INSTALLXSERVER:%%etc/XF86Config_VMware