summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/virtualbox/virtualbox-9999.ebuild')
-rw-r--r--app-emulation/virtualbox/virtualbox-9999.ebuild68
1 files changed, 44 insertions, 24 deletions
diff --git a/app-emulation/virtualbox/virtualbox-9999.ebuild b/app-emulation/virtualbox/virtualbox-9999.ebuild
index 9d66566b6033..cf93f7a0c70b 100644
--- a/app-emulation/virtualbox/virtualbox-9999.ebuild
+++ b/app-emulation/virtualbox/virtualbox-9999.ebuild
@@ -11,7 +11,7 @@ ESVN_REPO_URI="http://virtualbox.org/svn/vbox/trunk"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="additions sdk"
+IUSE="additions sdk vboxbfe vditool wrapper"
RDEPEND="!app-emulation/virtualbox-bin
dev-libs/libIDL
@@ -25,18 +25,15 @@ RDEPEND="!app-emulation/virtualbox-bin
DEPEND="${RDEPEND}
sys-devel/bin86
sys-devel/dev86
- sys-power/iasl"
+ sys-power/iasl
+ alsa? ( >=media-libs/alsa-lib-1.0.13 )"
RDEPEND="${RDEPEND}
- additions? ( =app-emulation/virtualbox-additions-1.3.4 )"
+ additions? ( app-emulation/virtualbox-additions )"
+BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
BUILD_TARGETS="all"
MODULE_NAMES="vboxdrv(misc:${S}/out/linux.${ARCH}/release/bin/src:${S}/out/linux.${ARCH}/release/bin/src)"
-pkg_setup() {
- linux-mod_pkg_setup
- BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
-}
-
src_compile() {
cd "${S}"
./configure || die "configure failed"
@@ -52,22 +49,44 @@ src_install() {
insinto /opt/VirtualBox
if use sdk; then
- doins -r sdk
- make_wrapper xpidl "sdk/bin/xpidl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
- fperms 0755 /opt/VirtualBox/sdk/bin/xpidl
+ doins -r sdk
+ make_wrapper xpidl "sdk/bin/xpidl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+ fperms 0755 /opt/VirtualBox/sdk/bin/xpidl
+ fi
+ if use vditool; then
+ doins vditool
+ make_wrapper vditool "./vditool" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+ fperms 0755 /opt/VirtualBox/vditool
+ fi
+ if use vboxbfe; then
+ doins VBoxBFE
+ fperms 0755 /opt/VirtualBox/VBoxBFE
+ if use wrapper ; then
+ dosym /opt/VirtualBox/wrapper.sh /usr/bin/VBoxBFE
+ else
+ make_wrapper vboxbfe "./VBoxBFE" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+ fi
fi
- rm -rf sdk src tst* testcase additions vboxdrv.ko SUPInstall SUPUninstall
+ rm -rf sdk src tst* testcase additions VBoxBFE vditool vboxdrv.ko xpidl SUPInstall SUPUninstall
doins -r *
- for each in VBox{BFE,Manage,SDL,SVC,XPCOMIPCD} VirtualBox vditool xpidl ; do
+ for each in VBox{Manage,SDL,SVC,XPCOMIPCD} VirtualBox ; do
fperms 0755 /opt/VirtualBox/${each}
done
- 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"
+
+ if use wrapper ; then
+ exeinto /opt/VirtualBox
+ newexe "${FILESDIR}/${PN}-1.3.6-wrapper" "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
+ else
+ 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"
+ fi
# udev rule for vboxdrv
dodir /etc/udev/rules.d
@@ -86,16 +105,17 @@ pkg_preinst() {
pkg_postinst() {
if use amd64; then
- elog ""
- elog "To avoid the nmi_watchdog bug and load the vboxdrv module"
- elog "you may need to update your bootloader configuration and pass the option:"
- elog "nmi_watchdog=0"
+ elog ""
+ elog "To avoid the nmi_watchdog bug and load the vboxdrv module"
+ elog "you may need to update your bootloader configuration and pass the option:"
+ elog "nmi_watchdog=0"
fi
elog ""
- elog "In order to launch VirtualBox you need to start VBoxSVC first,"
- elog "this can be done with:"
+ elog "In order to launch VirtualBox you need to start VBoxSVC first, with:"
elog "vboxsvc --daemonize && virtualbox"
elog ""
+ elog "If you selected the useflag \"wrapper\" just type \"VirtualBox\" instead."
+ elog ""
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The last user manual is available for download at:"