diff options
author | Markus Ullmann <jokey@gentoo.org> | 2008-08-27 12:39:01 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2008-08-27 12:39:01 +0000 |
commit | fdb1a0faecbb756b7e240e7bd925d28f5366df34 (patch) | |
tree | cd25b47e0c49702732dea68cbf54d88eb87590c0 /app-emulation | |
parent | Rename from virtualbox-additions to virtualbox-ose-additions (diff) | |
download | historical-fdb1a0faecbb756b7e240e7bd925d28f5366df34.tar.gz historical-fdb1a0faecbb756b7e240e7bd925d28f5366df34.tar.bz2 historical-fdb1a0faecbb756b7e240e7bd925d28f5366df34.zip |
Rename from virtualbox to virtualbox-ose
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26-gentoo i686
Diffstat (limited to 'app-emulation')
15 files changed, 1376 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-ose/ChangeLog b/app-emulation/virtualbox-ose/ChangeLog new file mode 100644 index 000000000000..6cbd772966da --- /dev/null +++ b/app-emulation/virtualbox-ose/ChangeLog @@ -0,0 +1,256 @@ +# ChangeLog for app-emulation/virtualbox +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.1 2008/08/27 12:39:00 jokey Exp $ + +*virtualbox-ose-9999 (27 Aug 2008) +*virtualbox-ose-1.6.4 (27 Aug 2008) +*virtualbox-ose-1.6.2 (27 Aug 2008) +*virtualbox-ose-1.5.6 (27 Aug 2008) + + 27 Aug 2008; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-ose-1.5.6-remove-alsa.patch, + +files/virtualbox-ose-1.5.6-remove-unused.patch, + +files/virtualbox-ose-1.6.2-remove-unused.patch, + +files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch, + +files/virtualbox-ose-1.6.4-remove-unused.patch, + +files/virtualbox-ose.desktop, +files/virtualbox-ose-config, + +files/virtualbox-ose-interfaces, +files/virtualbox-ose-wrapper, + +metadata.xml, +virtualbox-ose-1.5.6.ebuild, +virtualbox-ose-1.6.2.ebuild, + +virtualbox-ose-1.6.4.ebuild, +virtualbox-ose-9999.ebuild: + Rename from virtualbox to virtualbox-ose + +*virtualbox-1.6.4 (10 Aug 2008) + + 10 Aug 2008; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.6.4-fix-missing-makefiles.patch, + +files/virtualbox-1.6.4-remove-unused.patch, files/virtualbox-wrapper, + +virtualbox-1.6.4.ebuild: + Add version bump from my overlay wrt bug #233683 + + 28 Jul 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + + 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> virtualbox-1.5.2-r1.ebuild, + virtualbox-1.5.4.ebuild, virtualbox-1.5.4-r1.ebuild, + virtualbox-1.5.6.ebuild, virtualbox-1.6.2.ebuild, virtualbox-9999.ebuild: + QA: Get rid of deprecated qt_min_version(). + +*virtualbox-1.6.2 (13 Jun 2008) + + 13 Jun 2008; Doug Goldstein <cardoe@gentoo.org> + +files/virtualbox-1.6.2-remove-unused.patch, files/virtualbox.desktop, + files/virtualbox-wrapper, +virtualbox-1.6.2.ebuild: + copy changes from jokey's overlay to the tree as jokey requested + + 02 May 2008; Tristan Heaven <nyhm@gentoo.org> virtualbox-1.5.6.ebuild: + Fix virtualbox-modules dependency so 1.5.7 can be installed, bug #218198 + + 06 Mar 2008; Christoph Mende <angelos@gentoo.org> + virtualbox-1.5.4-r1.ebuild: + Stable on amd64, bug #208905 + + 04 Mar 2008; Markus Ullmann <jokey@gentoo.org> virtualbox-1.5.4-r1.ebuild: + Stable on x86 wrt bug #208905 + + 26 Feb 2008; Diego Pettenò <flameeyes@gentoo.org> + virtualbox-1.5.6.ebuild: + Fix patch naming. + +*virtualbox-1.5.6 (25 Feb 2008) + + 25 Feb 2008; Diego Pettenò <flameeyes@gentoo.org> + +virtualbox-1.5.6.ebuild: + Version bump, as requested by the proxy-maintainer Alessio Cassibba. + + 13 Jan 2008; Markus Ullmann <jokey@gentoo.org> virtualbox-9999.ebuild: + Drop keywords in live ebuild + +*virtualbox-1.5.4-r1 (13 Jan 2008) + + 13 Jan 2008; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.5.4-remove-unused.patch, +virtualbox-1.5.4-r1.ebuild: + Version bump to prevent building of guest additions, thanks to x-drum for + providing the patch + + 06 Jan 2008; Markus Ullmann <jokey@gentoo.org> virtualbox-1.5.4.ebuild, + virtualbox-9999.ebuild: + Add libXt dependency wrt bug #204674 + +*virtualbox-1.5.4 (05 Jan 2008) + + 05 Jan 2008; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.5.4-remove-alsa.patch, +virtualbox-1.5.4.ebuild, + virtualbox-9999.ebuild: + Version bump wrt bug #203893 thanks to x-drum + + 03 Jan 2008; Alessio Cassibba (X-Drum) <swapon@gmail.com> + virtualbox-1.5.4.ebuild, virtualbox-9999.ebuild: + remove redundant cd statements + + 02 Jan 2008; Alessio Cassibba (X-Drum) <swapon@gmail.com> + -virtualbox-1.5.2.ebuild, -files/virtualbox-1.5.2-remove-alsa.patch, + -files/virtualbox-1.5.2-remove-splitted-stuff.patch, + +virtualbox-1.5.4.ebuild, +files/virtualbox-1.5.4-remove-alsa.patch, + virtualbox-9999.ebuild, files/virtualbox.desktop: + version bump; add pulseaudio use flag; fix remove alsa patch; drop unneeded + files; disable vboxdrv kernel module compilation + + 05 Dec 2007; Markus Ullmann <jokey@gentoo.org> files/virtualbox.desktop, + virtualbox-1.5.2-r1.ebuild: + Some cosmetics to desktop file, thanks to betelgeuse in bug #196832 + +*virtualbox-1.5.2-r1 (03 Nov 2007) + + 03 Nov 2007; Markus Ullmann <jokey@gentoo.org> files/virtualbox-wrapper, + -virtualbox-1.4.0.ebuild, -virtualbox-1.5.2.ebuild, + +virtualbox-1.5.2-r1.ebuild: + Fix desktop entry for bug #196832, typo in wrapper and HAL warning. Thanks + to Alessio for providing needed modifications + + 29 Oct 2007; Dawid Węgliński <cla@gentoo.org> virtualbox-1.5.2.ebuild: + Stable on x86 + +*virtualbox-1.5.2 (22 Oct 2007) + + 22 Oct 2007; Markus Ullmann <jokey@gentoo.org> + -files/virtualbox-1.5.0-remove-alsa.patch, + -files/virtualbox-1.5.0-remove-splitted-stuff.patch, + +files/virtualbox-1.5.2-remove-alsa.patch, + +files/virtualbox-1.5.2-remove-splitted-stuff.patch, + +files/virtualbox-config, +files/virtualbox-interfaces, + files/virtualbox-wrapper, -virtualbox-1.5.0-r1.ebuild, + +virtualbox-1.5.2.ebuild, virtualbox-9999.ebuild: + Version bump wrt bug #196424 thanks to Alessio for the ebuilds + + 07 Oct 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-9999.ebuild: + add blockers for virtualbox-additions bug #194183, thanks to Alessio + +*virtualbox-1.5.0-r1 (17 Sep 2007) + + 17 Sep 2007; Markus Ullmann <jokey@gentoo.org> + files/virtualbox-1.5.0-remove-alsa.patch, + files/virtualbox-1.5.0-remove-splitted-stuff.patch, + -virtualbox-1.5.0.ebuild, +virtualbox-1.5.0-r1.ebuild, + virtualbox-9999.ebuild: + Revbump to fix HAL mess and fix permissions for VBoxTunctl, bug #191473 + + 04 Sep 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-9999.ebuild: + fix group creation, bug #184504 + +*virtualbox-1.5.0 (04 Sep 2007) + + 04 Sep 2007; Markus Ullmann <jokey@gentoo.org> + -files/virtualbox-1.3.8-remove-alsa.patch, + -files/virtualbox-1.3.8-remove-splitted-stuff.patch, + +files/virtualbox-1.5.0-remove-alsa.patch, + +files/virtualbox-1.5.0-remove-splitted-stuff.patch, + -virtualbox-1.3.8.ebuild, +virtualbox-1.5.0.ebuild: + Version bump wrt bug #191142 + + 23 Jun 2007; Charlie Shepherd <masterdriverz@gentoo.org> + virtualbox-1.3.8.ebuild, virtualbox-1.4.0.ebuild, virtualbox-9999.ebuild: + Port fixes from jokey's overay; thanks to x-drum: remove USE flag additions, + there are no matching additions available for the live ebuild, remove + vditool, fix headers + + 22 Jun 2007; Charlie Shepherd <masterdriverz@gentoo.org> + files/virtualbox.desktop, virtualbox-1.3.8.ebuild, + virtualbox-1.4.0.ebuild: + Port changes from jokey's overlay; thanks to x-drum: minor changes to + desktop entry; fix missing fperms; adjust perms for VirtualBox's + executables; remove virtual/libstdc++ from DEPEND, no longer required by + kBuild; fix USE flag hal in src_compile + + 06 Jun 2007; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.4.0-remove-alsa.patch, + +files/virtualbox-1.4.0-remove-splitted-stuff.patch: + Required patches not added + +*virtualbox-1.4.0 (06 Jun 2007) + + 06 Jun 2007; Markus Ullmann <jokey@gentoo.org> +virtualbox-1.4.0.ebuild: + Version bump, thanks to Alessio + + 03 Jun 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-9999.ebuild: + Fix hal use dep bug #180565 + + 31 May 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-1.3.8.ebuild, + virtualbox-9999.ebuild: + Apply build fix from dev overlay, thanks to x-drum :) + + 13 May 2007; Markus Ullmann <jokey@gentoo.org> + -files/virtualbox-1.3.6-remove-alsa.patch, + -files/virtualbox-1.3.6-wrapper, -virtualbox-1.3.6-r1.ebuild, + virtualbox-1.3.8.ebuild, virtualbox-9999.ebuild: + Fix for sdl useflag bug #177335 + + 21 Apr 2007; Raúl Porcel <armin76@gentoo.org> virtualbox-1.3.8.ebuild: + x86 stable + +*virtualbox-1.3.8 (16 Mar 2007) +*virtualbox-1.3.6-r1 (16 Mar 2007) + + 16 Mar 2007; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.3.8-remove-alsa.patch, + +files/virtualbox-1.3.8-remove-splitted-stuff.patch, + +files/virtualbox-wrapper, -virtualbox-1.3.4-r1.ebuild, + -virtualbox-1.3.4-r2.ebuild, -virtualbox-1.3.6.ebuild, + +virtualbox-1.3.6-r1.ebuild, +virtualbox-1.3.8.ebuild: + Version bump and minor bugfixes + + 11 Mar 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-9999.ebuild: + Missing IUSE, thanks jakub + +*virtualbox-1.3.6 (28 Feb 2007) +*virtualbox-1.3.4-r2 (28 Feb 2007) + + 28 Feb 2007; Markus Ullmann <jokey@gentoo.org> + +files/virtualbox-1.3.6-remove-alsa.patch, + +files/virtualbox-1.3.6-wrapper, +virtualbox-1.3.4-r2.ebuild, + +virtualbox-1.3.6.ebuild, virtualbox-9999.ebuild: + Version bump, thanks to x-drum for the hard work + + 25 Feb 2007; <genstef@gentoo.org> virtualbox-1.3.4-r1.ebuild, + virtualbox-9999.ebuild: + use KV_DIR only after linux-mod_pkg_setup, bug 168051 + + 21 Feb 2007; Simon Stelling <blubb@gentoo.org> virtualbox-9999.ebuild: + re-keyword ~amd64 per bug 167001 comment #6 + + 16 Feb 2007; Markus Ullmann <jokey@gentoo.org> -virtualbox-1.3.4.ebuild, + virtualbox-1.3.4-r1.ebuild, virtualbox-9999.ebuild: + Fix ROOT + + 16 Feb 2007; Simon Stelling <blubb@gentoo.org> virtualbox-1.3.4.ebuild, + virtualbox-1.3.4-r1.ebuild, virtualbox-9999.ebuild: + mark -amd64; bug 167001 + + 16 Feb 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-1.3.4.ebuild, + virtualbox-1.3.4-r1.ebuild, virtualbox-9999.ebuild: + Fix typo bug #167134 + +*virtualbox-1.3.4-r1 (15 Feb 2007) + + 15 Feb 2007; Markus Ullmann <jokey@gentoo.org> +files/virtualbox.desktop, + metadata.xml, +virtualbox-1.3.4-r1.ebuild, virtualbox-9999.ebuild: + Lots of improvements such as creating groups, adding vbox iso and more. Thanks + To Alessio Cassibba for the good work + + 12 Feb 2007; Markus Ullmann <jokey@gentoo.org> virtualbox-1.3.4.ebuild, + virtualbox-9999.ebuild: + Incorportage amd64 fixes from bug #163930 thanks to raphael@neo-tix.com + +*virtualbox-1.3.4 (12 Feb 2007) + + 12 Feb 2007; Markus Ullmann <jokey@gentoo.org> +virtualbox-1.3.4.ebuild: + Add released version + + 16 Jan 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog: + latest libxslt is needed, fixing dep + +*virtualbox-9999 (15 Jan 2007) + + 15 Jan 2007; Markus Ullmann <jokey@gentoo.org> +metadata.xml, + +virtualbox-9999.ebuild: + Inital ebuild for virtual box, live one as there is no snapshot file currently + diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-alsa.patch b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-alsa.patch new file mode 100644 index 000000000000..570b9e63c1c5 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-alsa.patch @@ -0,0 +1,22 @@ +--- Config.kmk.orig 2008-01-02 17:21:25.000000000 +0100 ++++ Config.kmk 2008-01-02 17:24:20.000000000 +0100 +@@ -208,7 +208,7 @@ + # Enable the ISCSI feature. + VBOX_WITH_ISCSI = 1 + # Enable ALSA support for Linux +-VBOX_WITH_ALSA = 1 ++#VBOX_WITH_ALSA = 1 + # Enable Pulse support for Linux + VBOX_WITH_PULSE = 1 + # Disable WINMM support for Windows (not implemented) +--- configure.orig 2008-01-02 17:21:37.000000000 +0100 ++++ configure 2008-01-02 17:24:42.000000000 +0100 +@@ -1526,7 +1526,7 @@ + cnf_append "VBOX_WITH_VBOXDRV" "" + cnf_append "VBOX_WITH_LINUX_ADDITIONS_32BIT_R0" "" + fi +- check_alsa ++# check_alsa + if [ $WITH_PULSE -eq 1 ]; then + check_pulse + else diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-unused.patch b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-unused.patch new file mode 100644 index 000000000000..d7864b629fcf --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-unused.patch @@ -0,0 +1,43 @@ +--- Config.kmk.orig 2008-01-07 23:00:24.000000000 +0100 ++++ Config.kmk 2008-01-07 23:16:32.000000000 +0100 +@@ -134,7 +134,7 @@ + + # Build linux / win32 additions. + ifeq ($(BUILD_TARGET),linux) +- VBOX_WITH_LINUX_ADDITIONS = 1 ++# VBOX_WITH_LINUX_ADDITIONS = 1 + VBOX_WITH_WIN32_ADDITIONS = 1 + endif + ifeq ($(BUILD_TARGET),l4) +@@ -186,7 +186,7 @@ + # the SDL based GUI + VBOX_WITH_VBOXSDL = 1 + # the basic frontend (w/o Main) +-VBOX_WITH_VBOXBFE = 1 ++#BOX_WITH_VBOXBFE = 1 + # the Qt GUI + VBOX_WITH_QTGUI = 1 + ## the Direct Framebuffer GUI +--- configure.orig 2008-01-07 23:00:20.000000000 +0100 ++++ configure 2008-01-07 23:03:23.000000000 +0100 +@@ -1471,14 +1471,14 @@ + # some things are not available in for OSE + if [ $OSE -ge 1 ]; then + cnf_append "VBOX_OSE" "1" +- cnf_append "VBOX_WITH_TESTSUITE" "" ++# cnf_append "VBOX_WITH_TESTSUITE" "" + cnf_append "VBOX_WITH_WIN32_ADDITIONS" "" + +- if [ "$OS" = "linux" ]; then +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" +- else +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" +- fi ++# if [ "$OS" = "linux" ]; then ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" ++# else ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" ++# fi + echo >> $CNF + fi + diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.2-remove-unused.patch b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.2-remove-unused.patch new file mode 100644 index 000000000000..6f072d2c41a2 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.2-remove-unused.patch @@ -0,0 +1,87 @@ +--- Config.kmk.orig 2008-06-06 17:14:01.000000000 +0200 ++++ Config.kmk 2008-06-06 17:15:47.000000000 +0200 +@@ -132,26 +132,26 @@ + + # This indicates that additions (of some kind or another) is being _built_. + # VBOX_WITHOUT_ADDITIONS overrides it. +-if1of ($(KBUILD_TARGET),l4 linux os2 solaris win) +- VBOX_WITH_ADDITIONS = 1 +-else ifdef VBOX_WITH_WIN32_ADDITIONS # for ssh cross builds -remove later! +- VBOX_WITH_ADDITIONS = 1 +-else ifdef VBOX_WITH_LINUX_ADDITIONS # for ssh cross builds - remove later! +- VBOX_WITH_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux os2 solaris win) ++# VBOX_WITH_ADDITIONS = 1 ++#else ifdef VBOX_WITH_WIN32_ADDITIONS # for ssh cross builds -remove later! ++# VBOX_WITH_ADDITIONS = 1 ++#else ifdef VBOX_WITH_LINUX_ADDITIONS # for ssh cross builds - remove later! ++# VBOX_WITH_ADDITIONS = 1 ++#endif + # Build the optional ring-0 part of the additions for syntax checking. + # (Ignored ifndef VBOX_WITH_ADDITIONS. Hack for 32/64 linux issues.) +-VBOX_WITH_ADDITION_DRIVERS = 1 ++#VBOX_WITH_ADDITION_DRIVERS = 1 + # Build win32 additions (cross building them on linux and l4 using wine). +-if1of ($(KBUILD_TARGET),l4 linux win) +- VBOX_WITH_WIN32_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux win) ++# VBOX_WITH_WIN32_ADDITIONS = 1 ++#endif + # Build linux additions. + # Note! VBOX_WITH_LINUX_ADDITIONS will be removed later and only + # VBOX_WITH_WIN32_ADDITIONS will be kept around for cross building. +-if1of ($(KBUILD_TARGET),l4 linux) +- VBOX_WITH_LINUX_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux) ++# VBOX_WITH_LINUX_ADDITIONS = 1 ++#endif + # Build X11 additions. Can be disabled separately. + ifndef VBOX_WITH_X11_ADDITIONS + ifdef VBOX_WITH_LINUX_ADDITIONS +@@ -207,7 +207,7 @@ + # The SDL based GUI. + VBOX_WITH_VBOXSDL = 1 + # The basic frontend (w/o Main). +-VBOX_WITH_VBOXBFE = 1 ++#VBOX_WITH_VBOXBFE = 1 + # The Qt GUI. + VBOX_WITH_QTGUI = 1 + # The Qt 4 GUI (experimental). +@@ -243,9 +243,9 @@ + # Enable the kchmviewer + VBOX_WITH_KCHMVIEWER = 1 + # Build the testsuite. +-VBOX_WITH_TESTSUITE = 1 ++#VBOX_WITH_TESTSUITE = 1 + # Build the testcases. +-VBOX_WITH_TESTCASES = 1 ++#VBOX_WITH_TESTCASES = 1 + # Set this to not use COM or XPCOM in places where it can be avoided. + #VBOX_WITHOUT_COM = 1 + # Set this to skip installing the redistributable compiler runtime. +--- configure.orig 2008-06-06 17:14:06.000000000 +0200 ++++ configure 2008-06-06 17:15:32.000000000 +0200 +@@ -1785,14 +1785,14 @@ + # some things are not available in for OSE + if [ $OSE -ge 1 ]; then + cnf_append "VBOX_OSE" "1" +- cnf_append "VBOX_WITH_TESTSUITE" "" ++# cnf_append "VBOX_WITH_TESTSUITE" "" + cnf_append "VBOX_WITH_WIN32_ADDITIONS" "" + +- if [ "$OS" = "linux" ]; then +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" +- else +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" +- fi ++# if [ "$OS" = "linux" ]; then ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" ++# else ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" ++# fi + echo >> $CNF + fi + diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch new file mode 100644 index 000000000000..dda4b0f886c1 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch @@ -0,0 +1,66 @@ +--- src/apps/Makefile.kmk 1970-01-01 01:00:00.000000000 +0100 ++++ src/apps/Makefile.kmk 2008-08-02 16:06:11.358197514 +0200 +@@ -0,0 +1,28 @@ ++# $Id: virtualbox-ose-1.6.4-fix-missing-makefiles.patch,v 1.1 2008/08/27 12:39:00 jokey Exp $ ++## @file ++# Sub-Makefile for the external apps. ++# ++ ++# ++# Copyright (C) 2006-2007 Sun Microsystems, Inc. ++# ++# Sun Microsystems, Inc. confidential ++# All rights reserved ++# ++ ++DEPTH = ../.. ++include $(KBUILD_PATH)/subheader.kmk ++ ++ifdef VBOX_WITH_KCHMVIEWER ++ ifneq ($(wildcard $(PATH_SUB_CURRENT)/kchmviewer-2.6),) ++ include $(PATH_SUB_CURRENT)/kchmviewer-2.6/Makefile.kmk ++ endif ++endif ++ifneq ($(wildcard $(PATH_SUB_CURRENT)/tunctl),) ++ ifeq ($(KBUILD_TARGET),linux) ++ include $(PATH_SUB_CURRENT)/tunctl/Makefile.kmk ++ endif ++endif ++ ++include $(KBUILD_PATH)/subfooter.kmk ++ +--- src/apps/tunctl/Makefile.kmk 1970-01-01 01:00:00.000000000 +0100 ++++ src/apps/tunctl/Makefile.kmk 2008-08-02 16:06:37.447936207 +0200 +@@ -0,0 +1,32 @@ ++# $Id: virtualbox-ose-1.6.4-fix-missing-makefiles.patch,v 1.1 2008/08/27 12:39:00 jokey Exp $ ++## @file ++# Sub-Makefile for VBoxTunctl ++# ++# VBoxTunctl is identical to tunctl from Usermode Linux except for the name. ++# ++ ++# ++# Copyright (C) 2006-2007 Sun Microsystems, Inc. ++# ++# 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 (GPL) 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. ++# ++# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa ++# Clara, CA 95054 USA or visit http://www.sun.com if you need ++# additional information or have any questions. ++# ++ ++DEPTH = ../../.. ++include $(KBUILD_PATH)/subheader.kmk ++ ++PROGRAMS.linux += VBoxTunctl ++VBoxTunctl_TEMPLATE = VBOXR3EXE ++VBoxTunctl_SOURCES = tunctl.c ++ ++include $(KBUILD_PATH)/subfooter.kmk ++ diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-remove-unused.patch b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-remove-unused.patch new file mode 100644 index 000000000000..e9b6696f3776 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-remove-unused.patch @@ -0,0 +1,87 @@ +--- Config.kmk.orig 2008-08-04 01:11:59.000000000 +0200 ++++ Config.kmk 2008-08-04 01:15:23.000000000 +0200 +@@ -134,26 +134,26 @@ + + # This indicates that additions (of some kind or another) is being _built_. + # VBOX_WITHOUT_ADDITIONS overrides it. +-if1of ($(KBUILD_TARGET),l4 linux os2 solaris win) +- VBOX_WITH_ADDITIONS = 1 +-else ifdef VBOX_WITH_WIN32_ADDITIONS # for ssh cross builds -remove later! +- VBOX_WITH_ADDITIONS = 1 +-else ifdef VBOX_WITH_LINUX_ADDITIONS # for ssh cross builds - remove later! +- VBOX_WITH_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux os2 solaris win) ++# VBOX_WITH_ADDITIONS = 1 ++#else ifdef VBOX_WITH_WIN32_ADDITIONS # for ssh cross builds -remove later! ++# VBOX_WITH_ADDITIONS = 1 ++#else ifdef VBOX_WITH_LINUX_ADDITIONS # for ssh cross builds - remove later! ++# VBOX_WITH_ADDITIONS = 1 ++#endif + # Build the optional ring-0 part of the additions for syntax checking. + # (Ignored ifndef VBOX_WITH_ADDITIONS. Hack for 32/64 linux issues.) +-VBOX_WITH_ADDITION_DRIVERS = 1 ++#VBOX_WITH_ADDITION_DRIVERS = 1 + # Build win32 additions (cross building them on linux and l4 using wine). +-if1of ($(KBUILD_TARGET),l4 linux win) +- VBOX_WITH_WIN32_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux win) ++# VBOX_WITH_WIN32_ADDITIONS = 1 ++#endif + # Build linux additions. + # Note! VBOX_WITH_LINUX_ADDITIONS will be removed later and only + # VBOX_WITH_WIN32_ADDITIONS will be kept around for cross building. +-if1of ($(KBUILD_TARGET),l4 linux) +- VBOX_WITH_LINUX_ADDITIONS = 1 +-endif ++#if1of ($(KBUILD_TARGET),l4 linux) ++# VBOX_WITH_LINUX_ADDITIONS = 1 ++#endif + # Build X11 additions. Can be disabled separately. + ifndef VBOX_WITH_X11_ADDITIONS + ifdef VBOX_WITH_LINUX_ADDITIONS +@@ -209,7 +209,7 @@ + # The SDL based GUI. + VBOX_WITH_VBOXSDL = 1 + # The basic frontend (w/o Main). +-VBOX_WITH_VBOXBFE = 1 ++#VBOX_WITH_VBOXBFE = 1 + # The Qt GUI. + VBOX_WITH_QTGUI = 1 + # The Qt 4 GUI (experimental). +@@ -245,9 +245,9 @@ + # Enable the kchmviewer + VBOX_WITH_KCHMVIEWER = 1 + # Build the testsuite. +-VBOX_WITH_TESTSUITE = 1 ++#VBOX_WITH_TESTSUITE = 1 + # Build the testcases. +-VBOX_WITH_TESTCASES = 1 ++#VBOX_WITH_TESTCASES = 1 + # Set this to not use COM or XPCOM in places where it can be avoided. + #VBOX_WITHOUT_COM = 1 + # Set this to skip installing the redistributable compiler runtime. +--- configure.orig 2008-08-04 01:12:11.000000000 +0200 ++++ configure 2008-08-04 01:16:04.000000000 +0200 +@@ -1785,14 +1785,14 @@ + # some things are not available in for OSE + if [ $OSE -ge 1 ]; then + cnf_append "VBOX_OSE" "1" +- cnf_append "VBOX_WITH_TESTSUITE" "" ++# cnf_append "VBOX_WITH_TESTSUITE" "" + cnf_append "VBOX_WITH_WIN32_ADDITIONS" "" + +- if [ "$OS" = "linux" ]; then +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" +- else +- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" +- fi ++# if [ "$OS" = "linux" ]; then ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" ++# else ++# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" ++# fi + echo >> $CNF + fi + diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-config b/app-emulation/virtualbox-ose/files/virtualbox-ose-config new file mode 100644 index 000000000000..f69e73e2fcb6 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-config @@ -0,0 +1 @@ +INSTALL_DIR=/opt/VirtualBox diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose-interfaces b/app-emulation/virtualbox-ose/files/virtualbox-ose-interfaces new file mode 100644 index 000000000000..ce2606b9d173 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-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-ose/files/virtualbox-ose-wrapper b/app-emulation/virtualbox-ose/files/virtualbox-ose-wrapper new file mode 100644 index 000000000000..7caf24f1cc40 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose-wrapper @@ -0,0 +1,140 @@ +#!/bin/sh +# +# Sun xVM VirtualBox +# +# Copyright (C) 2006-2007 Sun Microsystems, Inc. +# +# 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 (GPL) 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. +# +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa +# Clara, CA 95054 USA or visit http://www.sun.com if you need +# additional information or have any questions. +# + +PATH="/usr/bin:/bin:/usr/sbin:/sbin" +CONFIG="/etc/vbox/vbox.cfg" + +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 current kernel (`uname -r`). + Please recompile the kernel module and install it by: + + sudo emerge -1 app-emulation/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 module 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. + Please try to reload the kernel module by: + + sudo rmmod vboxdrv; sleep 2; sudo modprobe vboxdrv + + and if that is not successful, try to re-install the package by: + + sudo emerge -1 app-emulation/virtualbox-modules + + You will not be able to start VMs until this problem is fixed. +EOF +elif [ ! -w /dev/vboxdrv ]; then + 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 +elif [ ! -e /usr/lib/libhal.so ]; then + cat << EOF +WARNING: libhal was not found on this system. + This can create several side effects thus problems, + when accessing host resources (eg: Cd/Dvd readers). + + The use of "sys-apps/hal" is still recommended, please install it + to meet this requirement by: + + sudo emerge sys-apps/hal +EOF +fi + +export LD_LIBRARY_PATH="$INSTALL_DIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" +export VBOX_LOG_DEST="nofile" + +SERVER_PID=`ps -U \`whoami\` | grep VBoxSVC | awk '{ print $1 }'` +if [ -z "$SERVER_PID" ]; then + # 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=`which $0` +APP=`basename $APP` +APP=${APP##/*/} +case "$APP" in + VirtualBox) + exec "$INSTALL_DIR/VirtualBox" "$@" + ;; + VBoxManage) + exec "$INSTALL_DIR/VBoxManage" "$@" + ;; + VBoxSDL) + exec "$INSTALL_DIR/VBoxSDL" "$@" + ;; + VBoxVRDP) + exec "$INSTALL_DIR/VBoxHeadless" "$@" + ;; + VBoxHeadless) + exec "$INSTALL_DIR/VBoxHeadless" "$@" + ;; + *) + echo "Unknown application - $APP" + ;; +esac diff --git a/app-emulation/virtualbox-ose/files/virtualbox-ose.desktop b/app-emulation/virtualbox-ose/files/virtualbox-ose.desktop new file mode 100644 index 000000000000..5aa492552507 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/virtualbox-ose.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Sun xVM VirtualBox +Type=Application +Comment=Run several virtual systems on a single host computer +Exec=VirtualBox +TryExec=VirtualBox +Icon=virtualbox +Categories=System;Emulator; diff --git a/app-emulation/virtualbox-ose/metadata.xml b/app-emulation/virtualbox-ose/metadata.xml new file mode 100644 index 000000000000..1cd9f9b41c37 --- /dev/null +++ b/app-emulation/virtualbox-ose/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>jokey@gentoo.org</email> + <name>Markus Ullmann</name> +</maintainer> +<maintainer> + <email>swapon@gmail.com</email> + <name>Alessio Cassibba</name> +</maintainer> +<use> + <flag name='additions'>Install Guest System Tools ISO</flag> + <flag name='headless'>Build without any graphic frontend</flag> + <flag name='sdk'>Enable building of SDK</flag> +</use> +</pkgmetadata> diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-1.5.6.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-1.5.6.ebuild new file mode 100644 index 000000000000..cace32dcb27c --- /dev/null +++ b/app-emulation/virtualbox-ose/virtualbox-ose-1.5.6.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.5.6.ebuild,v 1.1 2008/08/27 12:39:00 jokey Exp $ + +EAPI=1 + +inherit eutils fdo-mime flag-o-matic qt3 toolchain-funcs + +MY_P=VirtualBox-${PV}-1_OSE +DESCRIPTION="Softwarefamily of powerful x86 virtualization" +HOMEPAGE="http://www.virtualbox.org/" +SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="additions alsa pulseaudio sdk" + +RDEPEND="!app-emulation/virtualbox-bin + =app-emulation/virtualbox-modules-1.5.7 + dev-libs/libIDL + >=dev-libs/libxslt-1.1.19 + dev-libs/xalan-c + dev-libs/xerces-c + media-libs/libsdl + x11-libs/libXcursor + x11-libs/libXt + x11-libs/qt:3" +DEPEND="${RDEPEND} + sys-devel/bin86 + sys-devel/dev86 + sys-power/iasl + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + pulseaudio? ( media-sound/pulseaudio )" +# sys-apps/hal is required at runtime (bug #197541) +RDEPEND="${RDEPEND} + additions? ( ~app-emulation/virtualbox-ose-additions-${PV} ) + sys-apps/usermode-utilities + net-misc/bridge-utils + sys-apps/hal" + +S=${WORKDIR}/${MY_P/-1_/_} + +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 +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Don't build things unused or splitted into separate ebuilds (eg: additions) + epatch "${FILESDIR}/${P}-remove-unused.patch" + # Don't build the Alsa audio driver and remove Alsa checks in configure + # when Alsa is not selected (bug #167739) + use alsa || epatch "${FILESDIR}/${P}-remove-alsa.patch" +} + +src_compile() { + + local myconf + # Don't build vboxdrv kernel module + myconf="--disable-kmods" + + if ! use pulseaudio; then + myconf="${myconf} --disable-pulse" + fi + + ./configure \ + ${myconf} || die "configure failed" + source ./env.sh + + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) + # and strip all flags + strip-flags + + MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ + all || die "kmk failed" +} + +src_install() { + cd "${S}"/out/linux.${ARCH}/release/bin + + # create virtualbox configurations files + insinto /etc/vbox + newins "${FILESDIR}/${PN}-config" vbox.cfg + newins "${FILESDIR}/${PN}-interfaces" interfaces + + insinto /opt/VirtualBox + if use sdk; then + doins -r sdk + fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl + fperms 0750 /opt/VirtualBox/sdk/bin/xpidl + fi + + rm -rf sdk src tst* testcase xpidl SUPInstall SUPUninstall VBox.png \ + VBoxBFE vditool VBoxSysInfo.sh + + doins -r * + for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl} VirtualBox ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + + exeinto /opt/VirtualBox + newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBox.sh + fperms 0750 /opt/VirtualBox/VBox.sh + newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh + fperms 0750 /opt/VirtualBox/VBoxAddIF.sh + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL + dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF + + # desktop entry + newicon "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png + domenu "${FILESDIR}"/${PN}.desktop +} + +pkg_postinst() { + fdo-mime_desktop_database_update + elog "" + elog "To launch VirtualBox just type: \"VirtualBox\"" + elog "You must be in the vboxusers group to use VirtualBox." + elog "" + elog "The last user manual is available for download at:" + elog "http://www.virtualbox.org/download/UserManual.pdf" + elog "" +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-1.6.2.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-1.6.2.ebuild new file mode 100644 index 000000000000..6f4c55683277 --- /dev/null +++ b/app-emulation/virtualbox-ose/virtualbox-ose-1.6.2.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.2.ebuild,v 1.1 2008/08/27 12:39:00 jokey Exp $ + +EAPI=1 + +inherit eutils fdo-mime flag-o-matic qt3 toolchain-funcs + +MY_P=VirtualBox-${PV}-OSE +DESCRIPTION="Softwarefamily of powerful x86 virtualization" +HOMEPAGE="http://www.virtualbox.org/" +SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="additions alsa headless pulseaudio sdk" + +RDEPEND="!app-emulation/virtualbox-bin + ~app-emulation/virtualbox-modules-${PV} + dev-libs/libIDL + >=dev-libs/libxslt-1.1.19 + dev-libs/xalan-c + dev-libs/xerces-c + !headless? ( + x11-libs/qt:3 + x11-libs/libXcursor + media-libs/libsdl + x11-libs/libXt )" +DEPEND="${RDEPEND} + sys-devel/bin86 + sys-devel/dev86 + sys-power/iasl + media-libs/libpng + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + pulseaudio? ( media-sound/pulseaudio )" +# sys-apps/hal is required at runtime (bug #197541) +RDEPEND="${RDEPEND} + additions? ( ~app-emulation/virtualbox-ose-additions-${PV} ) + sys-apps/usermode-utilities + net-misc/bridge-utils + sys-apps/hal" + +S=${WORKDIR}/${MY_P/-OSE/} + +pkg_setup() { + # The VBoxSDL frontend needs media-libs/libsdl compiled + # with USE flag X enabled (bug #177335) + if ! use headless; then + 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 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Don't build things unused or splitted into separate ebuilds (eg: additions) + epatch "${FILESDIR}/${P}-remove-unused.patch" +} + +src_compile() { + + local myconf + # Don't build vboxdrv kernel module + myconf="--disable-kmods" + + if ! use pulseaudio; then + myconf="${myconf} --disable-pulse" + fi + if ! use alsa; then + myconf="${myconf} --disable-alsa" + fi + if use headless; then + myconf="${myconf} --build-headless" + fi + + ./configure \ + ${myconf} || die "configure failed" + source ./env.sh + + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) + # and strip all flags + strip-flags + + MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ + all || die "kmk failed" +} + +src_install() { + cd "${S}"/out/linux.${ARCH}/release/bin + + # create virtualbox configurations files + insinto /etc/vbox + newins "${FILESDIR}/${PN}-config" vbox.cfg + newins "${FILESDIR}/${PN}-interfaces" interfaces + + insinto /opt/VirtualBox + if use sdk; then + doins -r sdk + fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl + fperms 0750 /opt/VirtualBox/sdk/bin/xpidl + fi + + rm -rf sdk src tst* testcase xpidl SUPInstall SUPUninstall VBox.png \ + VBoxBFE vditool VBoxSysInfo.sh vboxkeyboard.tar.gz + + doins -r * + + if ! use headless; then + for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl,Headless} VirtualBox ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL + + newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png + domenu "${FILESDIR}"/${PN}.desktop + else + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,Headless} ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + fi + + exeinto /opt/VirtualBox + newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBox.sh + fperms 0750 /opt/VirtualBox/VBox.sh + newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh + fperms 0750 /opt/VirtualBox/VBoxAddIF.sh + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxHeadless + dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF +} + +pkg_postinst() { + fdo-mime_desktop_database_update + elog "" + if ! use headless; then + elog "To launch VirtualBox just type: \"VirtualBox\"" + fi + elog "You must be in the vboxusers group to use VirtualBox." + elog "" + elog "The last user manual is available for download at:" + elog "http://www.virtualbox.org/download/UserManual.pdf" + elog "" +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-1.6.4.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-1.6.4.ebuild new file mode 100644 index 000000000000..75f07691aca5 --- /dev/null +++ b/app-emulation/virtualbox-ose/virtualbox-ose-1.6.4.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-1.6.4.ebuild,v 1.1 2008/08/27 12:39:00 jokey Exp $ + +EAPI=1 + +inherit eutils fdo-mime flag-o-matic qt3 toolchain-funcs + +MY_P=VirtualBox-${PV}-OSE +DESCRIPTION="Softwarefamily of powerful x86 virtualization" +HOMEPAGE="http://www.virtualbox.org/" +SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="additions alsa headless pulseaudio sdk" + +RDEPEND="!app-emulation/virtualbox-bin + ~app-emulation/virtualbox-modules-${PV} + dev-libs/libIDL + >=dev-libs/libxslt-1.1.19 + dev-libs/xalan-c + dev-libs/xerces-c + !headless? ( + x11-libs/qt:3 + x11-libs/libXcursor + media-libs/libsdl + x11-libs/libXt )" +DEPEND="${RDEPEND} + sys-devel/bin86 + sys-devel/dev86 + sys-power/iasl + media-libs/libpng + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + pulseaudio? ( media-sound/pulseaudio )" +# sys-apps/hal is required at runtime (bug #197541) +RDEPEND="${RDEPEND} + additions? ( ~app-emulation/virtualbox-ose-additions-${PV} ) + sys-apps/usermode-utilities + net-misc/bridge-utils + sys-apps/hal" + +S=${WORKDIR}/${MY_P/-OSE/} + +pkg_setup() { + # known problems with gcc 4.3 and the recompiler + # http://www.virtualbox.org/ticket/936 + if [[ "$(gcc-major-version)$(gcc-minor-version)" == "43" ]]; then + eerror "there are known problems with gcc 4.3 and the virtualbox" + eerror "recompiler stuff. Please use at least a version of gcc < 4.3" + die "gcc 4.3 cannot build the virtualbox recompiler" + fi + + # The VBoxSDL frontend needs media-libs/libsdl compiled + # with USE flag X enabled (bug #177335) + if ! use headless; then + 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 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Don't build things unused or splitted into separate ebuilds (eg: additions) + epatch "${FILESDIR}/${P}-remove-unused.patch" + # Fix missing makefiles + epatch "${FILESDIR}/${P}-fix-missing-makefiles.patch" +} + +src_compile() { + + local myconf + # Don't build vboxdrv kernel module + myconf="--disable-kmods" + + if ! use pulseaudio; then + myconf="${myconf} --disable-pulse" + fi + if ! use alsa; then + myconf="${myconf} --disable-alsa" + fi + if use headless; then + myconf="${myconf} --build-headless" + fi + + ./configure --with-gcc="$(tc-getCC)" --with-g++="$(tc-getCXX)" \ + ${myconf} || die "configure failed" + source ./env.sh + + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) + # and strip all flags + strip-flags + + MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ + all || die "kmk failed" +} + +src_install() { + cd "${S}"/out/linux.${ARCH}/release/bin + + # create virtualbox configurations files + insinto /etc/vbox + newins "${FILESDIR}/${PN}-config" vbox.cfg + newins "${FILESDIR}/${PN}-interfaces" interfaces + + insinto /opt/VirtualBox + if use sdk; then + doins -r sdk + fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl + fperms 0750 /opt/VirtualBox/sdk/bin/xpidl + fi + + rm -rf sdk src tst* testcase xpidl SUPInstall SUPUninstall VBox.png \ + VBoxBFE vditool VBoxSysInfo.sh vboxkeyboard.tar.gz + + doins -r * + + if ! use headless; then + for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl,Headless} VirtualBox ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL + + newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png + domenu "${FILESDIR}"/${PN}.desktop + else + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,Headless} ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + fi + + exeinto /opt/VirtualBox + newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBox.sh + fperms 0750 /opt/VirtualBox/VBox.sh + newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh + fperms 0750 /opt/VirtualBox/VBoxAddIF.sh + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxVRDP + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxHeadless + dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF +} + +pkg_postinst() { + fdo-mime_desktop_database_update + elog "" + if ! use headless; then + elog "To launch VirtualBox just type: \"VirtualBox\"" + fi + elog "You must be in the vboxusers group to use VirtualBox." + elog "" + elog "The last user manual is available for download at:" + elog "http://www.virtualbox.org/download/UserManual.pdf" + elog "" + elog "Warning:" + elog "Due to a bug which can cause a large amount of logging" + elog "data to be written to your home directory, logging is" + elog "disabled by default in this release, see bug #233683" + elog "" +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild new file mode 100644 index 000000000000..d57b57fbd966 --- /dev/null +++ b/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild,v 1.1 2008/08/27 12:39:00 jokey Exp $ + +EAPI=1 + +inherit eutils fdo-mime flag-o-matic linux-mod qt3 subversion toolchain-funcs + +DESCRIPTION="Softwarefamily of powerful x86 virtualization" +HOMEPAGE="http://www.virtualbox.org/" +ESVN_REPO_URI="http://virtualbox.org/svn/vbox/trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="pulseaudio sdk" + +RDEPEND="!app-emulation/virtualbox-bin + !app-emulation/virtualbox-ose-additions + !app-emulation/virtualbox-modules + dev-libs/libIDL + >=dev-libs/libxslt-1.1.19 + dev-libs/xalan-c + dev-libs/xerces-c + media-libs/libsdl + x11-libs/libXcursor + x11-libs/libXt + x11-libs/qt:3" +DEPEND="${RDEPEND} + sys-devel/bin86 + sys-devel/dev86 + sys-power/iasl + >=media-libs/alsa-lib-1.0.13 + pulseaudio? ( media-sound/pulseaudio )" +# sys-apps/hal is required at runtime (bug #197541) +RDEPEND="${RDEPEND} + sys-apps/usermode-utilities + net-misc/bridge-utils + sys-apps/hal" + +BUILD_TARGETS="all" +MODULE_NAMES="vboxdrv(misc:${S}/out/linux.${ARCH}/release/bin/src:${S}/out/linux.${ARCH}/release/bin/src)" + +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 + + linux-mod_pkg_setup + BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" + + # Add the vboxusers group before src_install + # see (bug #184504) + enewgroup vboxusers +} + +src_compile() { + + local myconf + if ! use pulseaudio; then + myconf="${myconf} --disable-pulse" + fi + + ./configure \ + ${myconf} || die "configure failed" + source ./env.sh + + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) + # and strip all flags + strip-flags + + MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ + all || die "kmk failed" + + linux-mod_src_compile +} + +src_install() { + linux-mod_src_install + + cd "${S}"/out/linux.${ARCH}/release/bin + insinto /opt/VirtualBox + + if use sdk; then + doins -r sdk + fowners root:vboxusers /opt/VirtualBox/sdk/bin/xpidl + fperms 0750 /opt/VirtualBox/sdk/bin/xpidl + fi + + rm -rf sdk src tst* testcase additions VBoxBFE vditool vboxdrv.ko xpidl SUPInstall \ + SUPUninstall VBox.png + + doins -r * + for each in VBox{Manage,SDL,SVC,XPCOMIPCD,Tunctl} VirtualBox ; do + fowners root:vboxusers /opt/VirtualBox/${each} + fperms 0750 /opt/VirtualBox/${each} + done + + exeinto /opt/VirtualBox + newexe "${FILESDIR}/${PN}-wrapper" "VBox.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBox.sh + fperms 0750 /opt/VirtualBox/VBox.sh + newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF.sh" || die + fowners root:vboxusers /opt/VirtualBox/VBoxAddIF.sh + fperms 0750 /opt/VirtualBox/VBoxAddIF.sh + + dosym /opt/VirtualBox/VBox.sh /usr/bin/VirtualBox + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxManage + dosym /opt/VirtualBox/VBox.sh /usr/bin/VBoxSDL + dosym /opt/VirtualBox/VBoxTunctl /usr/bin/VBoxTunctl + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxAddIF + dosym /opt/VirtualBox/VBoxAddIF.sh /usr/bin/VBoxDeleteIF + + # udev rule for vboxdrv + dodir /etc/udev/rules.d + echo 'KERNEL=="vboxdrv", GROUP="vboxusers" MODE=660' >> "${D}/etc/udev/rules.d/60-virtualbox.rules" + + # create virtualbox configurations files + insinto /etc/vbox + newins "${FILESDIR}/${PN}-config" vbox.cfg + newins "${FILESDIR}/${PN}-interfaces" interfaces + + # desktop entry + newicon "${S}"/src/VBox/Frontends/VirtualBox/images/ico32x01.png ${PN}.png + domenu "${FILESDIR}"/${PN}.desktop +} + +pkg_postinst() { + linux-mod_pkg_postinst + fdo-mime_desktop_database_update + elog "To launch VirtualBox just type: \"VirtualBox\"" + elog "You must be in the vboxusers group to use VirtualBox." + elog "" + elog "The last user manual is available for download at:" + elog "http://www.virtualbox.org/download/UserManual.pdf" + elog "" + elog "Due to the nature of the build process, there are not" + elog "additions available for the live ebuild" + elog "" +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} |