diff options
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/vmware-guestd4/Makefile | 10 | ||||
-rw-r--r-- | emulators/vmware-guestd4/files/vmware-guestd.sh | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd4/files/vmware-guestd.sh.in | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd4/pkg-plist | 6 | ||||
-rw-r--r-- | emulators/vmware-guestd5/Makefile | 10 | ||||
-rw-r--r-- | emulators/vmware-guestd5/files/vmware-guestd.sh | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd5/files/vmware-guestd.sh.in | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd5/pkg-plist | 6 | ||||
-rw-r--r-- | emulators/vmware-guestd6/Makefile | 10 | ||||
-rw-r--r-- | emulators/vmware-guestd6/files/vmware-guestd.sh | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd6/files/vmware-guestd.sh.in | 2 | ||||
-rw-r--r-- | emulators/vmware-guestd6/pkg-plist | 6 |
12 files changed, 48 insertions, 12 deletions
diff --git a/emulators/vmware-guestd4/Makefile b/emulators/vmware-guestd4/Makefile index 8f55d35..320d4f3 100644 --- a/emulators/vmware-guestd4/Makefile +++ b/emulators/vmware-guestd4/Makefile @@ -7,7 +7,7 @@ PORTNAME= vmware PORTVERSION= ${VMWARE_VER}.${BUILD_VER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= # bundled with VMware itself PKGNAMESUFFIX?= -guestd @@ -116,6 +116,8 @@ post-patch: ${REINPLACE_CMD} -e 's|vmmemctl1.o||' ${WRKDIR}/vmmemctl-only/Makefile ${ECHO_CMD} "OBJS+=vmmemctl1.o" >> ${WRKDIR}/vmmemctl-only/Makefile .endif + ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + ${WRKSRC}/sbin/vmware-checkvm .if defined(VMWARE_X_PORTS) @@ -153,7 +155,11 @@ do-install: ${FILESDIR}/vmware-guestd.sh > ${WRKDIR}/vmware-guestd.sh @${INSTALL_SCRIPT} ${WRKDIR}/vmware-guestd.sh ${RC_SCRIPT} -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end - .endif + ${MKDIR} ${PREFIX}/share/vmware-tools + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweroff-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweron-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/suspend-vm-default + ${LN} -sfh ${PREFIX}/share/vmware-tools /etc/vmware-tools .include <bsd.port.post.mk> diff --git a/emulators/vmware-guestd4/files/vmware-guestd.sh b/emulators/vmware-guestd4/files/vmware-guestd.sh index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd4/files/vmware-guestd.sh +++ b/emulators/vmware-guestd4/files/vmware-guestd.sh @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd4/files/vmware-guestd.sh.in b/emulators/vmware-guestd4/files/vmware-guestd.sh.in index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd4/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd4/files/vmware-guestd.sh.in @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd4/pkg-plist b/emulators/vmware-guestd4/pkg-plist index c27ee79..088fe9a 100644 --- a/emulators/vmware-guestd4/pkg-plist +++ b/emulators/vmware-guestd4/pkg-plist @@ -4,3 +4,9 @@ etc/rc.d/vmware-guestd.sh %%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 +share/vmware-tools/poweroff-vm-default +share/vmware-tools/poweron-vm-default +share/vmware-tools/suspend-vm-default +@dirrm share/vmware-tools +@cwd / +etc/vmware-tools diff --git a/emulators/vmware-guestd5/Makefile b/emulators/vmware-guestd5/Makefile index 8f55d35..320d4f3 100644 --- a/emulators/vmware-guestd5/Makefile +++ b/emulators/vmware-guestd5/Makefile @@ -7,7 +7,7 @@ PORTNAME= vmware PORTVERSION= ${VMWARE_VER}.${BUILD_VER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= # bundled with VMware itself PKGNAMESUFFIX?= -guestd @@ -116,6 +116,8 @@ post-patch: ${REINPLACE_CMD} -e 's|vmmemctl1.o||' ${WRKDIR}/vmmemctl-only/Makefile ${ECHO_CMD} "OBJS+=vmmemctl1.o" >> ${WRKDIR}/vmmemctl-only/Makefile .endif + ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + ${WRKSRC}/sbin/vmware-checkvm .if defined(VMWARE_X_PORTS) @@ -153,7 +155,11 @@ do-install: ${FILESDIR}/vmware-guestd.sh > ${WRKDIR}/vmware-guestd.sh @${INSTALL_SCRIPT} ${WRKDIR}/vmware-guestd.sh ${RC_SCRIPT} -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end - .endif + ${MKDIR} ${PREFIX}/share/vmware-tools + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweroff-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweron-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/suspend-vm-default + ${LN} -sfh ${PREFIX}/share/vmware-tools /etc/vmware-tools .include <bsd.port.post.mk> diff --git a/emulators/vmware-guestd5/files/vmware-guestd.sh b/emulators/vmware-guestd5/files/vmware-guestd.sh index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd5/files/vmware-guestd.sh +++ b/emulators/vmware-guestd5/files/vmware-guestd.sh @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd5/files/vmware-guestd.sh.in b/emulators/vmware-guestd5/files/vmware-guestd.sh.in index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd5/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd5/files/vmware-guestd.sh.in @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd5/pkg-plist b/emulators/vmware-guestd5/pkg-plist index c27ee79..088fe9a 100644 --- a/emulators/vmware-guestd5/pkg-plist +++ b/emulators/vmware-guestd5/pkg-plist @@ -4,3 +4,9 @@ etc/rc.d/vmware-guestd.sh %%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 +share/vmware-tools/poweroff-vm-default +share/vmware-tools/poweron-vm-default +share/vmware-tools/suspend-vm-default +@dirrm share/vmware-tools +@cwd / +etc/vmware-tools diff --git a/emulators/vmware-guestd6/Makefile b/emulators/vmware-guestd6/Makefile index 8f55d35..320d4f3 100644 --- a/emulators/vmware-guestd6/Makefile +++ b/emulators/vmware-guestd6/Makefile @@ -7,7 +7,7 @@ PORTNAME= vmware PORTVERSION= ${VMWARE_VER}.${BUILD_VER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= # bundled with VMware itself PKGNAMESUFFIX?= -guestd @@ -116,6 +116,8 @@ post-patch: ${REINPLACE_CMD} -e 's|vmmemctl1.o||' ${WRKDIR}/vmmemctl-only/Makefile ${ECHO_CMD} "OBJS+=vmmemctl1.o" >> ${WRKDIR}/vmmemctl-only/Makefile .endif + ${REINPLACE_CMD} "`${PRINTF} 's|\0152\013\0350|\0152\\\n\0350|g'`" \ + ${WRKSRC}/sbin/vmware-checkvm .if defined(VMWARE_X_PORTS) @@ -153,7 +155,11 @@ do-install: ${FILESDIR}/vmware-guestd.sh > ${WRKDIR}/vmware-guestd.sh @${INSTALL_SCRIPT} ${WRKDIR}/vmware-guestd.sh ${RC_SCRIPT} -${LOCALBASE}/sbin/vmware-guestd --cmd toolinstall.end - .endif + ${MKDIR} ${PREFIX}/share/vmware-tools + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweroff-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/poweron-vm-default + ${LN} -sfh /usr/bin/true ${PREFIX}/share/vmware-tools/suspend-vm-default + ${LN} -sfh ${PREFIX}/share/vmware-tools /etc/vmware-tools .include <bsd.port.post.mk> diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh b/emulators/vmware-guestd6/files/vmware-guestd.sh index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd6/files/vmware-guestd.sh +++ b/emulators/vmware-guestd6/files/vmware-guestd.sh @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh.in b/emulators/vmware-guestd6/files/vmware-guestd.sh.in index 47ceb24..2bdeddc 100644 --- a/emulators/vmware-guestd6/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd6/files/vmware-guestd.sh.in @@ -41,7 +41,7 @@ unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="${PREFIX}/sbin/vmware-guestd" -command_args=">/dev/null 2>&1" +command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/emulators/vmware-guestd6/pkg-plist b/emulators/vmware-guestd6/pkg-plist index c27ee79..088fe9a 100644 --- a/emulators/vmware-guestd6/pkg-plist +++ b/emulators/vmware-guestd6/pkg-plist @@ -4,3 +4,9 @@ etc/rc.d/vmware-guestd.sh %%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 +share/vmware-tools/poweroff-vm-default +share/vmware-tools/poweron-vm-default +share/vmware-tools/suspend-vm-default +@dirrm share/vmware-tools +@cwd / +etc/vmware-tools |