summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-03-16 22:26:48 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-03-16 22:26:48 +0000
commitacc8a3bb73332d0d0397fa29eb2a33358e58d260 (patch)
treeef446ab6f6efb61c50ec2b38268ec232c2a2b092 /app-emulation/virtualbox-bin/files
parentprepare for portage sync (diff)
downloadjokey-acc8a3bb73332d0d0397fa29eb2a33358e58d260.tar.gz
jokey-acc8a3bb73332d0d0397fa29eb2a33358e58d260.tar.bz2
jokey-acc8a3bb73332d0d0397fa29eb2a33358e58d260.zip
portage sync
svn path=/trunk/; revision=201
Diffstat (limited to 'app-emulation/virtualbox-bin/files')
-rw-r--r--app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.66
-rw-r--r--app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.86
-rw-r--r--app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper66
3 files changed, 78 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.6 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.6
new file mode 100644
index 0000000..ee8e980
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.6
@@ -0,0 +1,6 @@
+MD5 2606c576680b4b86afd37898d4244a3d VirtualBox_1.3.6_Linux_x86.run 12225803
+RMD160 e1c34c2fe491b5b4db20c4519496a7daa9c594de VirtualBox_1.3.6_Linux_x86.run 12225803
+SHA256 7e49a91db66de06e7c9f49c7ee8481b781dbfdf7055a18eebf67480d124775f7 VirtualBox_1.3.6_Linux_x86.run 12225803
+MD5 1396c7f206f7c6a69f183a0b32c07671 vditool 20884
+RMD160 3315e99113be34913790cb2d04956e29494d8551 vditool 20884
+SHA256 7612930d3a21e7b5b25ed0f6464dca3691e5d958f17df864e9f57f85c9ad966d vditool 20884
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8
new file mode 100644
index 0000000..a702223
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8
@@ -0,0 +1,6 @@
+MD5 a6b8a863ad3270f7765b47d9f33ee46e VirtualBox_1.3.8_Linux_x86.run 12236712
+RMD160 a23292bba9a4742d49715095f04b3b1b6ccd299a VirtualBox_1.3.8_Linux_x86.run 12236712
+SHA256 407b2c12450631a19739de5a66eceaeeb93239ee55709b1d2b026030812d7431 VirtualBox_1.3.8_Linux_x86.run 12236712
+MD5 1396c7f206f7c6a69f183a0b32c07671 vditool 20884
+RMD160 3315e99113be34913790cb2d04956e29494d8551 vditool 20884
+SHA256 7612930d3a21e7b5b25ed0f6464dca3691e5d958f17df864e9f57f85c9ad966d vditool 20884
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
new file mode 100644
index 0000000..79c4e3d
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+INSTALL_DIR=/opt/VirtualBox
+USER=$( whoami )
+
+SERVER_PID=$( ps -U $USER | grep VBoxSVC | awk '{ print $1 }' )
+
+if [ "$1" = shutdown ]; then
+ if [ "$SERVER_PID" != "" ]; then
+ kill -TERM $SERVER_PID
+ sleep 2
+ fi
+ exit 0
+fi
+
+[ "$VBOX_USER_HOME" = "" ] && VBOX_USER_HOME="$HOME/.VirtualBox"
+
+mkdir -p "$VBOX_USER_HOME"
+LOG="$VBOX_USER_HOME/VBoxSVC.log"
+
+if [[ -e /proc/modules && ! -e /dev/vboxdrv ]] ; then
+ echo "Error: vboxdrv kernel module is not loaded..."
+ echo "Please load the module before starting VirtualBox."
+ exit 1
+elif [ ! -w /dev/vboxdrv ]; then
+ if [ "`id | grep vboxusers`" = "" ]; then
+ echo "Error: You are not a member of the \"vboxusers\" group..."
+ echo "Please add yourself to this group before starting VirtualBox."
+ else
+ echo "Error: /dev/vboxdrv is not writable for some reason..."
+ echo "If you recently added the current user to the vboxusers group,"
+ echo "then you have to logout and re-login to take the change effect."
+ fi
+ exit 1
+fi
+
+export LD_LIBRARY_PATH="$INSTALL_DIR"
+
+if [ "$SERVER_PID" = "" ]; then
+ rm -rf /tmp/.vbox-$USER-ipc
+ [ -f "$LOG.1" ] && mv "$LOG.1" "$LOG.2"
+ [ -f "$LOG.0" ] && mv "$LOG.0" "$LOG.1"
+ [ -f "$LOG" ] && mv "$LOG" "$LOG.0"
+ /opt/VirtualBox/VBoxSVC --daemonize >"$LOG" 2>&1
+fi
+
+APP=$( which $0 )
+APP=${APP##/*/}
+case "$APP" in
+ virtualbox)
+ exec "$INSTALL_DIR/VirtualBox" "$@"
+ ;;
+ vboxmanage)
+ exec "$INSTALL_DIR/VBoxManage" "$@"
+ ;;
+ vboxsdl)
+ exec "$INSTALL_DIR/VBoxSDL" "$@"
+ ;;
+ vboxvrdp)
+ exec "$INSTALL_DIR/VBoxVRDP" "$@"
+ ;;
+ *)
+ echo "Error: Unknown application - $APP"
+ exit 1
+ ;;
+esac