summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-10-22 22:21:54 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-10-22 22:21:54 +0000
commit9b9ca328015c287489ea7511bbb226b28572d66b (patch)
tree8939a1757f8395cefaca4b5224f96d0c25c1287c /app-emulation/virtualbox-bin
parentDrop old (diff)
downloadgentoo-2-9b9ca328015c287489ea7511bbb226b28572d66b.tar.gz
gentoo-2-9b9ca328015c287489ea7511bbb226b28572d66b.tar.bz2
gentoo-2-9b9ca328015c287489ea7511bbb226b28572d66b.zip
Drop old and add new-style wrapper
(Portage version: 2.1.3.15)
Diffstat (limited to 'app-emulation/virtualbox-bin')
-rw-r--r--app-emulation/virtualbox-bin/ChangeLog8
-rw-r--r--app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.4.0-r16
-rw-r--r--app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.5.0-r15
-rw-r--r--app-emulation/virtualbox-bin/files/virtualbox-bin-config1
-rw-r--r--app-emulation/virtualbox-bin/files/virtualbox-bin-interfaces4
-rw-r--r--app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper148
-rw-r--r--app-emulation/virtualbox-bin/virtualbox-bin-1.4.0-r1.ebuild141
-rw-r--r--app-emulation/virtualbox-bin/virtualbox-bin-1.5.0-r1.ebuild145
8 files changed, 111 insertions, 347 deletions
diff --git a/app-emulation/virtualbox-bin/ChangeLog b/app-emulation/virtualbox-bin/ChangeLog
index aebb38254c05..37631214ce3c 100644
--- a/app-emulation/virtualbox-bin/ChangeLog
+++ b/app-emulation/virtualbox-bin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emulation/virtualbox-bin
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.16 2007/10/22 22:17:24 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.17 2007/10/22 22:21:53 jokey Exp $
+
+ 22 Oct 2007; Markus Ullmann <jokey@gentoo.org>
+ +files/virtualbox-bin-config, +files/virtualbox-bin-interfaces,
+ files/virtualbox-bin-wrapper, -virtualbox-bin-1.4.0-r1.ebuild,
+ -virtualbox-bin-1.5.0-r1.ebuild:
+ Drop old and add new-style wrapper
*virtualbox-bin-1.5.2 (22 Oct 2007)
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.4.0-r1 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.4.0-r1
deleted file mode 100644
index 957ad7b6602e..000000000000
--- a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.4.0-r1
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 17003e95329ea1ee4c8b7c0ff0e2bc04 VirtualBox_1.4.0_Linux_amd64.run 11766998
-RMD160 973378f363f251065044d5e6244fff84eef0ae69 VirtualBox_1.4.0_Linux_amd64.run 11766998
-SHA256 5fa13a82fe1cb333668e6dfa84005e78e9ac08a0bb4b68d8e053bde630345ff7 VirtualBox_1.4.0_Linux_amd64.run 11766998
-MD5 d796ef14caa3e3b3be10c959a14f1634 VirtualBox_1.4.0_Linux_x86.run 13631688
-RMD160 2738fe9a74edac51c884ff0dba4c6d8704488dd5 VirtualBox_1.4.0_Linux_x86.run 13631688
-SHA256 b9e9d18e2f070fdbb769292f90171cf9e91e53f800e22683a106ad185edb774c VirtualBox_1.4.0_Linux_x86.run 13631688
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.5.0-r1 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.5.0-r1
deleted file mode 100644
index e5991abc6b2f..000000000000
--- a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.5.0-r1
+++ /dev/null
@@ -1,5 +0,0 @@
-RMD160 9e8e9e3b5fa4dbefa1c65001c08c06b51e4aaafa VirtualBox_1.5.0_Linux_amd64.run 13939184
-SHA256 7b5c1774a3f2536a00805f6a8baf53b41eb9a5917090618b52c7942eec655d3d VirtualBox_1.5.0_Linux_amd64.run 13939184
-MD5 1107980b50b473406cee12ada89ab4f8 VirtualBox_1.5.0_Linux_x86.run 15491060
-RMD160 33ede7cd5e3f7697ccc2f2b1f11053af5bf95a74 VirtualBox_1.5.0_Linux_x86.run 15491060
-SHA256 74a5f34772f826761bf5ca24f3b20a5b0ceb8bdf9602bb4bfba91c05fce0c232 VirtualBox_1.5.0_Linux_x86.run 15491060
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-config b/app-emulation/virtualbox-bin/files/virtualbox-bin-config
new file mode 100644
index 000000000000..f69e73e2fcb6
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-config
@@ -0,0 +1 @@
+INSTALL_DIR=/opt/VirtualBox
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-interfaces b/app-emulation/virtualbox-bin/files/virtualbox-bin-interfaces
new file mode 100644
index 000000000000..ce2606b9d173
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-interfaces
@@ -0,0 +1,4 @@
+# This file is for registering VirtualBox permanent host networking interfaces
+# and optionally adding them to network bridges on the host.
+# Each line should be of the format <interface name> <user name> [<bridge>].
+
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
index f92b67f639cd..7ea5eca943b2 100644
--- a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
@@ -1,66 +1,116 @@
#!/bin/sh
+#
+# innotek VirtualBox
+#
+# Copyright (C) 2006-2007 innotek GmbH
+#
+# This file is part of VirtualBox Open Source Edition (OSE), as
+# available from http://www.virtualbox.org. This file is free software;
+# you can redistribute it and/or modify it under the terms of the GNU
+# General Public License as published by the Free Software Foundation,
+# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
+# distribution. VirtualBox OSE is distributed in the hope that it will
+# be useful, but WITHOUT ANY WARRANTY of any kind.
-INSTALL_DIR=/opt/VirtualBox
-USER=$( whoami )
+PATH="/usr/bin:/bin:/usr/sbin:/sbin"
+CONFIG="/etc/vbox/vbox.cfg"
-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
+if [ ! -r "$CONFIG" ]; then
+ echo "Could not find VirtualBox installation. Please reinstall."
+ exit 1
fi
+
+. "$CONFIG"
+
+# Note: This script must not fail if the module was not successfully installed
+# because the user might not want to run a VM but only change VM params!
+
+if [ "$1" = "shutdown" ]; then
+ SHUTDOWN="true"
+elif [ ! -e /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then
+ cat << EOF
+WARNING: There is no module available for the currente kernel (`uname -r`).
+ Please recompile the kernel module and install it by
+
+ sudo emerge -1 virtualbox-modules
+
+ You will not be able to start VMs until this problem is fixed.
+EOF
+elif ! lsmod|grep -q vboxdrv; then
+ cat << EOF
+WARNING: The vboxdrv kernel module is not loaded.
+ Please load the kernel by
+
+ sudo modprobe vboxdrv
+
+ You will not be able to start VMs until this problem is fixed.
+EOF
+elif [ ! -c /dev/vboxdrv ]; then
+ cat << EOF
+WARNING: The character device /dev/vboxdrv does not exist. Try
-[ -z "$VBOX_USER_HOME" ] && VBOX_USER_HOME="$HOME/.VirtualBox"
+ sudo /etc/init.d/virtualbox restart
-mkdir -p "$VBOX_USER_HOME"
-LOG="$VBOX_USER_HOME/VBoxSVC.log"
+ and if that is not successful, try to re-install the package.
-if [ -e /proc/modules -a ! -e /dev/vboxdrv ] ; then
- echo "Error: vboxdrv kernel module is not loaded..."
- echo "Please load the module before starting VirtualBox."
- exit 1
+ You will not be able to start VMs until this problem is fixed.
+EOF
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
+ if [ "`id | grep vboxusers`" = "" ]; then
+ cat << EOF
+WARNING: You are not a member of the "vboxusers" group. Please add yourself
+ to this group before starting VirtualBox.
+
+ You will not be able to start VMs until this problem is fixed.
+EOF
+ else
+ cat << EOF
+WARNING: /dev/vboxdrv not writable for some reason. If you recently added the
+ current user to the vboxusers group then you have to logout and
+ re-login to take the change effect.
+
+ You will not be able to start VMs until this problem is fixed.
+EOF
+ fi
fi
-export LD_LIBRARY_PATH="$INSTALL_DIR"
+export LD_LIBRARY_PATH="$INSTALL_DIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+SERVER_PID=`ps -U \`whoami\` | grep VBoxSVC | awk '{ print $1 }'`
if [ -z "$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
+ # Server not running yet/anymore, cleanup socket path.
+ # See IPC_GetDefaultSocketPath()!
+ if [ -n "$LOGNAME" ]; then
+ rm -rf /tmp/.vbox-$LOGNAME-ipc > /dev/null 2>&1
+ else
+ rm -rf /tmp/.vbox-$USER-ipc > /dev/null 2>&1
+ fi
+fi
+
+if [ "$SHUTDOWN" = "true" ]; then
+ if [ -n "$SERVER_PID" ]; then
+ kill -TERM $SERVER_PID
+ sleep 2
+ fi
+ exit 0
fi
-APP=$( command -v "$0" )
+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
- ;;
+ VirtualBox)
+ exec "$INSTALL_DIR/VirtualBox" "$@"
+ ;;
+ VBoxManage)
+ exec "$INSTALL_DIR/VBoxManage" "$@"
+ ;;
+ VBoxSDL)
+ exec "$INSTALL_DIR/VBoxSDL" "$@"
+ ;;
+ VBoxVRDP)
+ exec "$INSTALL_DIR/VBoxVRDP" "$@"
+ ;;
+ *)
+ echo "Unknown application - $APP"
+ ;;
esac
diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-1.4.0-r1.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-1.4.0-r1.ebuild
deleted file mode 100644
index c294da150fb1..000000000000
--- a/app-emulation/virtualbox-bin/virtualbox-bin-1.4.0-r1.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-1.4.0-r1.ebuild,v 1.2 2007/06/23 16:10:40 masterdriverz Exp $
-
-inherit eutils qt3 pax-utils
-
-MY_P=VirtualBox_${PV}_Linux_${ARCH}.run
-
-DESCRIPTION="Softwarefamily of powerful x86 virtualization"
-HOMEPAGE="http://www.virtualbox.org/"
-SRC_URI="amd64? ( http://www.virtualbox.org/download/${PV}/VirtualBox_${PV}_Linux_amd64.run )
- x86? ( http://www.virtualbox.org/download/${PV}/VirtualBox_${PV}_Linux_x86.run )"
-
-LICENSE="PUEL"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="additions nowrapper sdk"
-
-RDEPEND="!app-emulation/virtualbox
- ~app-emulation/virtualbox-modules-${PV}
- virtual/xft
- x11-libs/libXi
- x11-libs/libX11
- x11-libs/libXft
- x11-libs/libXtst
- x11-libs/libXext
- x11-libs/libXt
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libXrender
- x11-libs/libXrandr
- x11-libs/libXau
- x11-libs/libXcursor
- x11-libs/libXdmcp
- x11-libs/libXfixes
- dev-libs/libxml2
- media-libs/libsdl
- media-libs/libmng
- media-libs/jpeg
- media-libs/libpng
- media-libs/freetype
- media-libs/fontconfig
- $(qt_min_version 3.3.5)
- x86? ( =virtual/libstdc++-3.3 )
- sdk? ( dev-libs/libIDL )"
-
-S=${WORKDIR}
-
-RESTRICT="primaryuri"
-
-pkg_setup() {
- # The VBoxSDL frontend needs media-libs/libsdl compiled
- # with USE flag X enabled (bug #177335)
- if ! built_with_use media-libs/libsdl X; then
- eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
- eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
- die "media-libs/libsdl should be compiled with the \"X\" USE flag."
- fi
-
- check_license
-}
-
-src_unpack() {
- unpack_makeself ${MY_P}
- unpack ./VirtualBox.tar.bz2
-}
-
-src_install() {
- cd "${S}"
-
- # desktop entry
- insinto /usr/share/pixmaps
- newins VBox.png virtualbox.png
- insinto /usr/share/applications
- newins VirtualBox.desktop virtualbox.desktop
- dosed -e "10d" /usr/share/applications/virtualbox.desktop
- dosed -e "5d" /usr/share/applications/virtualbox.desktop
- dosed -e "s/VirtualBox/virtualbox/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/VBox.png/virtualbox.png/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/innotek virtualbox/Innotek VirtualBox/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/X-MandrivaLinux-System;//" /usr/share/applications/virtualbox.desktop
-
- insinto /opt/VirtualBox
- doins UserManual.pdf
-
- if use additions; then
- doins -r additions
- fi
- if use sdk; then
- doins -r sdk
- fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl
- fperms 0750 /opt/VirtualBox/sdk/bin/xpidl
- pax-mark -m "${D}"/opt/VirtualBox/sdk/bin/xpidl
- make_wrapper xpidl "sdk/bin/xpidl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- fi
-
- rm -rf src sdk tst* UserManual.pdf rdesktop-vrdp.tar.gz deffiles install.sh \
- routines.sh runlevel.sh vboxdrv.sh VBox.sh VBox.png kchmviewer additions \
- VirtualBox.desktop VirtualBox.chm VirtualBox.tar.bz2 vditool VBoxAddIF.sh \
- vboxnet.sh LICENSE
-
- doins -r *
- for each in VBox{Manage,SDL,SVC,XPCOMIPCD,VRDP} VirtualBox ; do
- fowners root:vboxusers /opt/VirtualBox/${each}
- fperms 0750 /opt/VirtualBox/${each}
- pax-mark -m "${D}"/opt/VirtualBox/${each}
- done
-
- if use nowrapper ; then
- make_wrapper vboxsvc "./VBoxSVC" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper virtualbox "./VirtualBox" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxmanage "./VBoxManage" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxsdl "./VBoxSDL" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxvrdp "./VBoxVRDP" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- else
- exeinto /opt/VirtualBox
- newexe "${FILESDIR}/${PN}-wrapper" "wrapper.sh"
- fowners root:vboxusers /opt/VirtualBox/wrapper.sh
- fperms 0750 /opt/VirtualBox/wrapper.sh
-
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/virtualbox
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxmanage
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxsdl
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxvrdp
- fi
-}
-
-pkg_postinst() {
- elog ""
- if use nowrapper; then
- elog "In order to launch VirtualBox you need to start the"
- elog "VirtualBox XPCom Server first, with:"
- elog "vboxsvc --daemonize && virtualbox"
- else
- elog "To launch VirtualBox just type: \"virtualbox\""
- fi
- elog ""
- elog "You must be in the vboxusers group to use VirtualBox,"
- elog "\"vditool\" is now deprecated, use \"VBoxManage\" instead."
- elog ""
-}
diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-1.5.0-r1.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-1.5.0-r1.ebuild
deleted file mode 100644
index e2490c0f4ab5..000000000000
--- a/app-emulation/virtualbox-bin/virtualbox-bin-1.5.0-r1.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-1.5.0-r1.ebuild,v 1.2 2007/10/07 22:01:12 jokey Exp $
-
-inherit eutils qt3 pax-utils
-
-MY_P=VirtualBox_${PV}_Linux_${ARCH}.run
-
-DESCRIPTION="Softwarefamily of powerful x86 virtualization"
-HOMEPAGE="http://www.virtualbox.org/"
-SRC_URI="amd64? ( http://www.virtualbox.org/download/${PV}/VirtualBox_${PV}_Linux_amd64.run )
- x86? ( http://www.virtualbox.org/download/${PV}/VirtualBox_${PV}_Linux_x86.run )"
-
-LICENSE="PUEL"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="additions nowrapper sdk"
-
-RDEPEND="!app-emulation/virtualbox
- !app-emulation/virtualbox-additions
- ~app-emulation/virtualbox-modules-${PV}
- virtual/xft
- x11-libs/libXi
- x11-libs/libX11
- x11-libs/libXft
- x11-libs/libXtst
- x11-libs/libXext
- x11-libs/libXt
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libXrender
- x11-libs/libXrandr
- x11-libs/libXau
- x11-libs/libXcursor
- x11-libs/libXdmcp
- x11-libs/libXfixes
- dev-libs/libxml2
- media-libs/libsdl
- media-libs/libmng
- media-libs/jpeg
- media-libs/libpng
- media-libs/freetype
- media-libs/fontconfig
- $(qt_min_version 3.3.5)
- x86? ( =virtual/libstdc++-3.3 )
- sdk? ( dev-libs/libIDL )"
-
-S=${WORKDIR}
-
-RESTRICT="primaryuri"
-
-pkg_setup() {
- # The VBoxSDL frontend needs media-libs/libsdl compiled
- # with USE flag X enabled (bug #177335)
- if ! built_with_use media-libs/libsdl X; then
- eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
- eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
- die "media-libs/libsdl should be compiled with the \"X\" USE flag."
- fi
-
- check_license
-}
-
-src_unpack() {
- unpack_makeself ${MY_P}
- unpack ./VirtualBox.tar.bz2
-}
-
-src_install() {
- cd "${S}"
-
- # desktop entry
- insinto /usr/share/pixmaps
- newins VBox.png virtualbox.png
- insinto /usr/share/applications
- newins VirtualBox.desktop virtualbox.desktop
- dosed -e "10d" /usr/share/applications/virtualbox.desktop
- dosed -e "5d" /usr/share/applications/virtualbox.desktop
- dosed -e "s/VirtualBox/virtualbox/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/VBox.png/virtualbox.png/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/innotek virtualbox/Innotek VirtualBox/" /usr/share/applications/virtualbox.desktop
- dosed -e "s/X-MandrivaLinux-System;//" /usr/share/applications/virtualbox.desktop
-
- insinto /opt/VirtualBox
-
- doins UserManual.pdf
-
- make_wrapper vboxtunctl "./VBoxTunctl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-
- if use additions; then
- doins -r additions
- fi
- if use sdk; then
- doins -r sdk
- fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl
- fperms 0750 /opt/VirtualBox/sdk/bin/xpidl
- pax-mark -m "${D}"/opt/VirtualBox/sdk/bin/xpidl
- make_wrapper xpidl "sdk/bin/xpidl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- fi
-
- rm -rf src sdk tst* UserManual.pdf rdesktop-vrdp.tar.gz deffiles install.sh \
- routines.sh runlevel.sh vboxdrv.sh VBox.sh VBox.png kchmviewer additions \
- VirtualBox.desktop VirtualBox.chm VirtualBox.tar.bz2 vditool VBoxAddIF.sh \
- vboxnet.sh LICENSE
-
- doins -r *
- for each in VBox{Manage,SDL,SVC,XPCOMIPCD,VRDP,Tunctl} VirtualBox ; do
- fowners root:vboxusers /opt/VirtualBox/${each}
- fperms 0750 /opt/VirtualBox/${each}
- pax-mark -m "${D}"/opt/VirtualBox/${each}
- done
-
- if use nowrapper ; then
- make_wrapper vboxsvc "./VBoxSVC" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper virtualbox "./VirtualBox" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxmanage "./VBoxManage" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxsdl "./VBoxSDL" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- make_wrapper vboxvrdp "./VBoxVRDP" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- else
- exeinto /opt/VirtualBox
- newexe "${FILESDIR}/${PN}-wrapper" "wrapper.sh"
- fowners root:vboxusers /opt/VirtualBox/wrapper.sh
- fperms 0750 /opt/VirtualBox/wrapper.sh
-
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/virtualbox
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxmanage
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxsdl
- dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxvrdp
- fi
-}
-
-pkg_postinst() {
- elog ""
- if use nowrapper; then
- elog "In order to launch VirtualBox you need to start the"
- elog "VirtualBox XPCom Server first, with:"
- elog "vboxsvc --daemonize && virtualbox"
- else
- elog "To launch VirtualBox just type: \"virtualbox\""
- fi
- elog ""
- elog "You must be in the vboxusers group to use VirtualBox,"
- elog "\"vditool\" is now deprecated, use \"VBoxManage\" instead."
- elog ""
-}