diff options
author | 2008-06-13 22:44:28 +0000 | |
---|---|---|
committer | 2008-06-13 22:44:28 +0000 | |
commit | e0ab7e0ef2a8873c9b82ced3df93871279cfa12f (patch) | |
tree | 44a46dc2d221108525b052fc64ee43f7695beaa5 /app-emulation/virtualbox-bin/files | |
parent | Version bump. (diff) | |
download | gentoo-2-e0ab7e0ef2a8873c9b82ced3df93871279cfa12f.tar.gz gentoo-2-e0ab7e0ef2a8873c9b82ced3df93871279cfa12f.tar.bz2 gentoo-2-e0ab7e0ef2a8873c9b82ced3df93871279cfa12f.zip |
copy changes from jokey's overlay to the tree as jokey requested
(Portage version: 2.1.5.5)
Diffstat (limited to 'app-emulation/virtualbox-bin/files')
4 files changed, 57 insertions, 3 deletions
diff --git a/app-emulation/virtualbox-bin/files/vboxwebsrv-confd b/app-emulation/virtualbox-bin/files/vboxwebsrv-confd new file mode 100644 index 000000000000..461add2aa1ac --- /dev/null +++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-confd @@ -0,0 +1,18 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/files/vboxwebsrv-confd,v 1.1 2008/06/13 22:44:28 cardoe Exp $ + +# The host to bind to (defaults to "localhost"). +VBOXWEBSRV_HOST="localhost" + +# Which port to on the host (defaults to 18083). +VBOXWEBSRV_PORT="18083" + +# Session timeout, in seconds. (defaults to 20). +VBOXWEBSRV_TIMEOUT=20 + +# The interval in which the webservice checks for +# timed-out clients, in seconds. Normally does not +# need to be changed (defaults to 5). +VBOXWEBSRV_INTERVAL=5 + diff --git a/app-emulation/virtualbox-bin/files/vboxwebsrv-initd b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd new file mode 100644 index 000000000000..c880aba5210e --- /dev/null +++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/files/vboxwebsrv-initd,v 1.1 2008/06/13 22:44:28 cardoe Exp $ + +depend() { + need net +} + +checkconfig() { + if [ -z "${RDATE_SERVER}" ] ; then + eerror "Please edit /etc/conf.d/rdate" + eerror "I need to know what server to use!" + return 1 + fi + return 0 +} + +start() { + #checkconfig || return $? + + ebegin "Starting VirtualBox WebService" + start-stop-daemon --start --quiet --pidfile /var/run/vboxwebsrv.pid \ + --background --make-pidfile --exec /usr/bin/vboxwebsrv \ + -- -H ${VBOXWEBSRV_HOST} -p ${VBOXWEBSRV_PORT} -t ${VBOXWEBSRV_TIMEOUT} -i ${VBOXWEBSRV_INTERVAL} + eend $? +} + +stop() { + ebegin "Stopping VirtualBox WebService" + start-stop-daemon --stop --quiet --pidfile /var/run/vboxwebsrv.pid + eend $? +} diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper index 147edc4a2d46..d88bec3ef1a2 100644 --- a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper +++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper @@ -110,8 +110,11 @@ case "$APP" in VBoxSDL) exec "$INSTALL_DIR/VBoxSDL" "$@" ;; - VBoxVRDP) - exec "$INSTALL_DIR/VBoxVRDP" "$@" + VBoxHeadless) + exec "$INSTALL_DIR/VBoxHeadless" "$@" + ;; + vboxwebsrv) + exec "$INSTALL_DIR/vboxwebsrv" "$@" ;; *) echo "Unknown application - $APP" diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin.desktop b/app-emulation/virtualbox-bin/files/virtualbox-bin.desktop index 1f009e95530d..5aa492552507 100644 --- a/app-emulation/virtualbox-bin/files/virtualbox-bin.desktop +++ b/app-emulation/virtualbox-bin/files/virtualbox-bin.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Name=Innotek VirtualBox +Name=Sun xVM VirtualBox Type=Application Comment=Run several virtual systems on a single host computer Exec=VirtualBox |