diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-11-16 07:31:46 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-11-16 07:31:46 +0000 |
commit | 2a60e90a7b489e71ee96d1b42946eb5eab23753f (patch) | |
tree | da50e3c6963a08afcf0a8536386c2cc10bdde56c /packages | |
parent | e8bba0a628e54609a4970543a513c2d4eb1e9afb (diff) | |
download | pfsense-packages-2a60e90a7b489e71ee96d1b42946eb5eab23753f.tar.gz pfsense-packages-2a60e90a7b489e71ee96d1b42946eb5eab23753f.tar.bz2 pfsense-packages-2a60e90a7b489e71ee96d1b42946eb5eab23753f.zip |
move new open-vm-tools package here
Diffstat (limited to 'packages')
-rw-r--r-- | packages/open-vm-tools/open-vm-tools.xml | 46 | ||||
-rw-r--r-- | packages/open-vm-tools/vmware-guestd.sh | 29 | ||||
-rw-r--r-- | packages/open-vm-tools/vmware-kmod.sh | 81 |
3 files changed, 23 insertions, 133 deletions
diff --git a/packages/open-vm-tools/open-vm-tools.xml b/packages/open-vm-tools/open-vm-tools.xml index 37bc528d..5d157f09 100644 --- a/packages/open-vm-tools/open-vm-tools.xml +++ b/packages/open-vm-tools/open-vm-tools.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd"> -<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?> +<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd"> +<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?> <packagegui> <copyright> <![CDATA[ @@ -8,8 +8,12 @@ /* ========================================================================== */ /* open-vm-tools.xml - part of pfSense (http://www.pfSense.com) - Copyright (C) 2008 Scott Ullrich + part of pfSense (http://www.pfSense.org) + Copyright (C) 2008 BSD Perimeter LLC + All rights reserved. + + Based on m0n0wall (http://m0n0.ch/wall) + Copyright (C) 2003-2008 Manuel Kasper <mk@neon1.net>. All rights reserved. */ /* ========================================================================== */ @@ -42,23 +46,19 @@ <requirements>Describe your package requirements here</requirements> <faq>Currently there are no FAQ items provided.</faq> <name>open-vm-tools</name> - <version>0.1</version> - <title>open-vm-tools</title> - <additional_files_needed> - <prefix>/usr/local/etc/rc.d/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/open-vm-tools/vmware-guestd.sh</item> - </additional_files_needed> - <additional_files_needed> - <prefix>/usr/local/etc/rc.d/</prefix> - <chmod>077</chmod> - <item>http://www.pfsense.com/packages/config/open-vm-tools/vmware-kmod.sh</item> - </additional_files_needed> - <custom_php_install_command> - exec("rm /usr/local/etc/rc.d/vmware-kmod"); - exec("rm /usr/local/etc/rc.d/vmware-guestd.sh"); - </custom_php_install_command> - <custom_php_deinstall_command> - exec("rm -f /usr/local/etc/rc.d/vmware*"); - </custom_php_deinstall_command> + <version>102166_7</version> + <title>Open VM Tools</title> + <custom_add_php_command> + </custom_add_php_command> + <custom_php_install_command> + conf_mount_rw(); + config_lock(); + exec("pkg_add -r "); + conf_mount_ro(); + config_unlock(); + /usr/local/etc/rc.d/vmware-guestd.sh start + /usr/local/etc/rc.d/vmware-kmod.sh start + </custom_php_install_command> + <custom_php_deinstall_command> + </custom_php_deinstall_command> </packagegui> diff --git a/packages/open-vm-tools/vmware-guestd.sh b/packages/open-vm-tools/vmware-guestd.sh deleted file mode 100644 index 92e8df61..00000000 --- a/packages/open-vm-tools/vmware-guestd.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/emulators/open-vm-tools/files/vmware-guestd.sh.in,v 1.2 2008/05/15 17:24:29 mbr Exp $ -# - -# PROVIDE: vmware-guestd -# REQUIRE: DAEMON -# BEFORE: LOGIN - -PREFIX=/usr/local -. /etc/rc.subr - -# Global -checkvm_cmd="${PREFIX}/sbin/vmware-checkvm > /dev/null" - -# VMware guest daemon -name="vmware_guestd" -rcvar=`set_rcvar` -start_precmd="${checkvm_cmd}" -unset start_cmd -stop_precmd="${checkvm_cmd}" -unset stop_cmd -command="${PREFIX}/sbin/vmware-guestd" -command_args="--halt-command '/sbin/shutdown -p now' >/dev/null 2>&1" -pidfile="/var/run/${name}.pid" - -vmware_guestd_enable="YES" -vmware_guestd_flags="--background ${pidfile}" -run_rc_command "$1" diff --git a/packages/open-vm-tools/vmware-kmod.sh b/packages/open-vm-tools/vmware-kmod.sh deleted file mode 100644 index 947393bb..00000000 --- a/packages/open-vm-tools/vmware-kmod.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/emulators/open-vm-tools/files/vmware-kmod.sh.in,v 1.1 2008/05/15 17:24:29 mbr Exp $ -# - -# PROVIDE: vmware-kmod -# REQUIRE: FILESYSTEMS -# BEFORE: netif - -PREFIX=/usr/local -. /etc/rc.subr - -# Global -checkvm_cmd="${PREFIX}/sbin/vmware-checkvm > /dev/null" - -# Functions -vmware_guest_vmmemctl_start() -{ - echo 'Loading vmmemctl kernel module.' - kldload ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko >/dev/null 2>&1 -} -vmware_guest_vmxnet_start() -{ - echo 'Loading vmxnet kernel module.' - kldload ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko >/dev/null 2>&1 -} -vmware_guest_vmblock_start() -{ - echo 'Loading vmblock kernel module.' - kldload ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko >/dev/null 2>&1 -} -vmware_guest_vmhgfs_start() -{ - echo 'Loading vmhgfs kernel module.' - kldload ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko >/dev/null 2>&1 -} - -# VMware kernel module: vmmemctl -name="vmware_guest_vmmemctl" -rcvar=`set_rcvar` -start_precmd="${checkvm_cmd}" -start_cmd="vmware_guest_vmmemctl_start" -stop_precmd="${checkvm_cmd}" -stop_cmd=":" - -vmware_guest_vmmemctl_enable="YES" -vmware_guest_kmod_enable="YES" -run_rc_command "$1" - -# VMware kernel module: vmxnet -name="vmware_guest_vmxnet" -rcvar=`set_rcvar` -start_precmd="${checkvm_cmd}" -start_cmd="vmware_guest_vmxnet_start" -stop_precmd="${checkvm_cmd}" -stop_cmd=":" - -vmware_guest_vmxnet_enable="YES" -run_rc_command "$1" - -# VMware kernel module: vmblock -name="vmware_guest_vmblock" -rcvar=`set_rcvar` -start_precmd="${checkvm_cmd}" -start_cmd="vmware_guest_vmblock_start" -stop_precmd="${checkvm_cmd}" -stop_cmd=":" - -vmware_guest_vmblock_enable="YES" -run_rc_command "$1" - -# VMware kernel module: vmhgfs -name="vmware_guest_vmhgfs" -rcvar=`set_rcvar` -start_precmd="${checkvm_cmd}" -start_cmd="vmware_guest_vmhgfs_start" -stop_precmd="${checkvm_cmd}" -stop_cmd=":" - -vmware_guest_vmhgfs_enable="YES" -run_rc_command "$1" |