mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
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.
This commit is contained in:
parent
ee8a3c2a61
commit
4e3da8e744
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85531
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
${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
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.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>
|
||||
|
1
emulators/vmware-guestd4/distinfo
Normal file
1
emulators/vmware-guestd4/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
|
29
emulators/vmware-guestd4/files/vmware-guest_kmod.sh
Normal file
29
emulators/vmware-guestd4/files/vmware-guest_kmod.sh
Normal file
@ -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
|
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
4
emulators/vmware-guestd4/pkg-plist.tools
Normal file
4
emulators/vmware-guestd4/pkg-plist.tools
Normal file
@ -0,0 +1,4 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER3:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER3:%%etc/XF86Config_VMware
|
||||
%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
|
@ -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
|
||||
${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
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.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>
|
||||
|
1
emulators/vmware-guestd5/distinfo
Normal file
1
emulators/vmware-guestd5/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
|
29
emulators/vmware-guestd5/files/vmware-guest_kmod.sh
Normal file
29
emulators/vmware-guestd5/files/vmware-guest_kmod.sh
Normal file
@ -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
|
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
4
emulators/vmware-guestd5/pkg-plist.tools
Normal file
4
emulators/vmware-guestd5/pkg-plist.tools
Normal file
@ -0,0 +1,4 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER3:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER3:%%etc/XF86Config_VMware
|
||||
%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
|
@ -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
|
||||
${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
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.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>
|
||||
|
1
emulators/vmware-guestd6/distinfo
Normal file
1
emulators/vmware-guestd6/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (vmware-freebsd-tools.tar.gz) = IGNORE
|
29
emulators/vmware-guestd6/files/vmware-guest_kmod.sh
Normal file
29
emulators/vmware-guestd6/files/vmware-guest_kmod.sh
Normal file
@ -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
|
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
4
emulators/vmware-guestd6/pkg-plist.tools
Normal file
4
emulators/vmware-guestd6/pkg-plist.tools
Normal file
@ -0,0 +1,4 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER3:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER3:%%etc/XF86Config_VMware
|
||||
%%INSTALLXSERVER4:%%etc/XF86Config-4_VMware
|
@ -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"
|
||||
|
@ -1,3 +0,0 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER:%%etc/XF86Config_VMware
|
@ -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"
|
||||
|
@ -1,3 +0,0 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER:%%etc/XF86Config_VMware
|
@ -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"
|
||||
|
@ -1,3 +0,0 @@
|
||||
bin/vmware-toolbox
|
||||
%%INSTALLXSERVER:%%bin/XF86_VMware
|
||||
%%INSTALLXSERVER:%%etc/XF86Config_VMware
|
Loading…
Reference in New Issue
Block a user