summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2008-08-27 12:39:01 +0000
committerMarkus Ullmann <jokey@gentoo.org>2008-08-27 12:39:01 +0000
commitd2752e286f170abcbf43b5d26491a2ab3dfb69e6 (patch)
tree543ef85f00a16164b3e13a739647be2b5f9d180d /app-emulation/virtualbox-ose
parentRename from virtualbox-additions to virtualbox-ose-additions (diff)
downloadgentoo-2-d2752e286f170abcbf43b5d26491a2ab3dfb69e6.tar.gz
gentoo-2-d2752e286f170abcbf43b5d26491a2ab3dfb69e6.tar.bz2
gentoo-2-d2752e286f170abcbf43b5d26491a2ab3dfb69e6.zip
Rename from virtualbox to virtualbox-ose
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo i686)
Diffstat (limited to 'app-emulation/virtualbox-ose')
-rw-r--r--app-emulation/virtualbox-ose/ChangeLog256
-rw-r--r--app-emulation/virtualbox-ose/Manifest18
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-alsa.patch22
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-1.5.6-remove-unused.patch43
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.2-remove-unused.patch87
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-fix-missing-makefiles.patch66
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-1.6.4-remove-unused.patch87
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-config1
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-interfaces4
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose-wrapper140
-rw-r--r--app-emulation/virtualbox-ose/files/virtualbox-ose.desktop8
-rw-r--r--app-emulation/virtualbox-ose/metadata.xml18
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-1.5.6.ebuild147
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-1.6.2.ebuild165
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-1.6.4.ebuild181
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-9999.ebuild151
16 files changed, 1394 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/Manifest b/app-emulation/virtualbox-ose/Manifest
new file mode 100644
index 000000000000..00b3d9b56ee3
--- /dev/null
+++ b/app-emulation/virtualbox-ose/Manifest
@@ -0,0 +1,18 @@
+AUX virtualbox-ose-1.5.6-remove-alsa.patch 677 RMD160 c337748faf2ffa210a101e04dda56d2c9fafefc3 SHA1 367b6addcfe7f0a7ca31e9824bf26c87a45d1600 SHA256 1a6b94a5e2e1e4b42b07d6ca931bafff5c671b7c762df0d4715162b02b0cec32
+AUX virtualbox-ose-1.5.6-remove-unused.patch 1198 RMD160 61de6801f598b6c46dbb6321561330f51516ffa8 SHA1 d792689f199dc2130c3e3248099c90bb3e44a69b SHA256 bbb01d2452c1f34f39cc624d70fc5ac5ac59b66482caab185e4277c1810b41dd
+AUX virtualbox-ose-1.6.2-remove-unused.patch 2964 RMD160 ffef7f5935213c569bc941d2585c68bdac1c3b11 SHA1 d58a6a0caa6c6aca71508ddfd530aada406f2c97 SHA256 881eda1f4ae366bce257a49b399448cc182f7d355d842768a289d946c6950bcf
+AUX virtualbox-ose-1.6.4-fix-missing-makefiles.patch 2109 RMD160 601ac4f67d7c0ca56bb1e4b99c5eacc534f8b993 SHA1 8bc1cf9b7bdc2c47b6e20dc679d4c1f78440096b SHA256 618605ab134d84942fa4c6790b7f7654e9dcfbb57b9e75bb22dc068e98692f25
+AUX virtualbox-ose-1.6.4-remove-unused.patch 2964 RMD160 e84c5bfeaaaee4b986d716a27942cf72bea88152 SHA1 0322340bd71421cc55a4f134771dd2beebd281cc SHA256 58bd75c84e864456eb23cb1fd5c588f9632ae0a60dc30946e075e476ddc6f570
+AUX virtualbox-ose-config 28 RMD160 c03986f0a6ecc77c2d15382d965952bb209ae534 SHA1 43b5fd213ae08bb390ec1962ee2776d4f7fe45fd SHA256 5326f7abdd1a7c8a8a44fd4ab269977ec115286059fc8a4c2fde6805c381236f
+AUX virtualbox-ose-interfaces 218 RMD160 4639b9848cf44ac59cd12585a3c56ef53d72a6d9 SHA1 3268e5759286bdff1c5242598266e6c2a5b17e5d SHA256 50ddbfedce3afd41aad45163eb799fce0956d815948ad9da842f09163aaafd52
+AUX virtualbox-ose-wrapper 4084 RMD160 aac6eb387792c1e3a5fcaecf780d8eaa66091435 SHA1 c4a905d6fc25cd33c028e4f48d4a854a0f43c04f SHA256 6d21e67163d14f59f80241e928a74719ebc5450f20ef39e19f1df3e520fbcd4c
+AUX virtualbox-ose.desktop 198 RMD160 0e99c539851ee91ba909f1a2ba9259eac032fb07 SHA1 39cabeecd1e635f7a8f47f35303ddf3a45f66b9d SHA256 fdfbaf10c0ff7a9a3811ec2b1fb8fbc8bfe9b6706a3eb55b31ccc3943672a033
+DIST VirtualBox-1.5.6-1_OSE.tar.bz2 26720717 RMD160 b016986beeae6205f19f5f1a3c586d3c08511c2f SHA1 1cb11c012b9143e14f2eada645757cae8886d0d1 SHA256 fb4d98f932a89d914486101a22dfdda628dae34069dfae8b6cdece4fa10b9c24
+DIST VirtualBox-1.6.2-OSE.tar.bz2 35409803 RMD160 9a5fe4746b41a46403921c7a400460cc7abc3c81 SHA1 6811a580b70e651f36002f344033e1db1858fdef SHA256 f458e6ad674ae54ea67b2c8b08816c87b1c4768ec9d43ca041d64a2bcec4eb3b
+DIST VirtualBox-1.6.4-OSE.tar.bz2 35484117 RMD160 af94b774d9964757da125c4614e393396f7e892b SHA1 457ae85f2d10028ac7c56e4b35ee47028ec0208b SHA256 7e777e5f602d7b48bf5a8b1d580ee43dd6327b9037816fde484a13db8a86b422
+EBUILD virtualbox-ose-1.5.6.ebuild 4233 RMD160 3235e894b2e6b871d9df20e7d3e73bb0aa909b0a SHA1 165961973c121bbdf101d42db5babeb3911f1339 SHA256 ed555571de600f53bf1c9e5a42d053863f809cc105efad3b43f69a9165c81dd5
+EBUILD virtualbox-ose-1.6.2.ebuild 4595 RMD160 75cc8b8c00f07b4fe9b2b4546709026587542695 SHA1 2e8d9cb99d4e0d7277750d27490e1d34c72c8d16 SHA256 648fb82882c3e8fbcd3e9a9e0050360358417c0caa2c12b01ebedabd1df74a01
+EBUILD virtualbox-ose-1.6.4.ebuild 5347 RMD160 726401318ddb01ad0cfb416e092b7103e69cc40c SHA1 17cd639b9525524c3bc26f0b7ace40eba0445505 SHA256 4b4dce4e5820e5c65ebae780bd28c856961dac9f52a327ba7e94d0c06d1766a2
+EBUILD virtualbox-ose-9999.ebuild 4351 RMD160 84f1edb57e899f9f83152b49c92ab39d8bb313dd SHA1 c6592d7eb29a891986d4e459709a12a409b2f326 SHA256 7ffd7853ebf9f680fb90d0d26ad9b523ec11b7e0104c96d3b5b8d829d357e492
+MISC ChangeLog 10075 RMD160 d0246666065cd0b52c6ec39f7f857ebe478361bf SHA1 b7e0dd3a8c9e8388f9661821b0afbe35d4bea08d SHA256 a928105aed60fab9728894c733a954436fdfd1fcf86bd69f6bf2a0afbc7a8461
+MISC metadata.xml 532 RMD160 1fca6fac5f60adc258b878ecd959d2ca2adffafd SHA1 16730c1ea2b66f51e4eb6eaaa2bb570a9c56bb7d SHA256 578a25caafe911d389af1aeb097e4b732cdb48cdb33929af4ddbb1506ff09eeb
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
+}