Version bump
authorMarkus Ullmann <jokey@gentoo.org>
Fri, 16 Mar 2007 22:25:08 +0000 (22:25 +0000)
committerMarkus Ullmann <jokey@gentoo.org>
Fri, 16 Mar 2007 22:25:08 +0000 (22:25 +0000)
Package-Manager: portage-2.1.2.2

app-emulation/virtualbox-bin/ChangeLog
app-emulation/virtualbox-bin/Manifest
app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 [deleted file]
app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8 [new file with mode: 0644]
app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper [moved from app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6-wrapper with 87% similarity]
app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild [deleted file]
app-emulation/virtualbox-bin/virtualbox-bin-1.3.6.ebuild
app-emulation/virtualbox-bin/virtualbox-bin-1.3.8.ebuild [new file with mode: 0644]

index 4f18745ba44e3c8ec962a402d10be815b2d2160c..694f38c3c092cc042e548ad4c9935322f306a7aa 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for app-emulation/virtualbox-bin
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.5 2007/03/03 18:05:47 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.6 2007/03/16 22:25:08 jokey Exp $
+
+*virtualbox-bin-1.3.8 (16 Mar 2007)
+
+  16 Mar 2007; Markus Ullmann <jokey@gentoo.org>
+  -files/virtualbox-bin-1.3.6-wrapper, +files/virtualbox-bin-wrapper,
+  -virtualbox-bin-1.3.4.ebuild, virtualbox-bin-1.3.6.ebuild,
+  +virtualbox-bin-1.3.8.ebuild:
+  Version bump
 
   03 Mar 2007; Markus Ullmann <jokey@gentoo.org>
   files/digest-virtualbox-bin-1.3.6, Manifest:
index 4678f008760061a423e880dcd262e7c57b7d4579..8c8f0a18472481c77d9a056cc27872b9938fc28e 100644 (file)
@@ -1,29 +1,29 @@
-AUX virtualbox-bin-1.3.6-wrapper 1472 RMD160 c6f190c5c83bcabafb35a466e679a72937c2a697 SHA1 d8985fe6a8160c0e3c8f262ae4266c36811bc64f SHA256 83058158882692987153668dd01dfe9fa0ac3de29d4f317c2ef9f007a6f98b6d
-MD5 078b53999a0ab2db8765b08f08f7cf58 files/virtualbox-bin-1.3.6-wrapper 1472
-RMD160 c6f190c5c83bcabafb35a466e679a72937c2a697 files/virtualbox-bin-1.3.6-wrapper 1472
-SHA256 83058158882692987153668dd01dfe9fa0ac3de29d4f317c2ef9f007a6f98b6d files/virtualbox-bin-1.3.6-wrapper 1472
-DIST VirtualBox_1.3.4_Linux_x86.run 9835033 RMD160 571a315f3d22c6a01cf05921f28c34491f2ca313 SHA1 1a077cde3199ad2266d6da580f05911431c5a5a4 SHA256 c695fb4ad5d8bfcc804283839362364f9393713f4a1bcf1e06953222861e096d
+AUX virtualbox-bin-wrapper 1608 RMD160 f1f6f855c006316eec85e83e9322d2f2f4a36b1c SHA1 33000830ae98c19d565439a5c55f29621568e502 SHA256 3f4084e6e262d79fc57097fb5d49a0afa9620fd4a8f0a6928d09eb6b4a137b9b
+MD5 876d935c04ca8d2a47011bba82493490 files/virtualbox-bin-wrapper 1608
+RMD160 f1f6f855c006316eec85e83e9322d2f2f4a36b1c files/virtualbox-bin-wrapper 1608
+SHA256 3f4084e6e262d79fc57097fb5d49a0afa9620fd4a8f0a6928d09eb6b4a137b9b files/virtualbox-bin-wrapper 1608
 DIST VirtualBox_1.3.6_Linux_x86.run 12225803 RMD160 e1c34c2fe491b5b4db20c4519496a7daa9c594de SHA1 86cab9353eb00cf1ab6517d37dfe3534874a3c78 SHA256 7e49a91db66de06e7c9f49c7ee8481b781dbfdf7055a18eebf67480d124775f7
+DIST VirtualBox_1.3.8_Linux_x86.run 12236712 RMD160 a23292bba9a4742d49715095f04b3b1b6ccd299a SHA1 39fa07dc14daccb46d299a6a65ffd1fd2c06d7ae SHA256 407b2c12450631a19739de5a66eceaeeb93239ee55709b1d2b026030812d7431
 DIST vditool 20884 RMD160 3315e99113be34913790cb2d04956e29494d8551 SHA1 fc175c5177f764ffca47d18d22708d69279fac98 SHA256 7612930d3a21e7b5b25ed0f6464dca3691e5d958f17df864e9f57f85c9ad966d
-EBUILD virtualbox-bin-1.3.4.ebuild 3180 RMD160 681473f6ff2ded9078736d80acb0a5446bb775fe SHA1 5431142ba0275af60469e86cf93154f807088427 SHA256 c404c2965b8853959296fb6175b4fdc5a9f3b24313cd15dbfbbe2896c9e9d407
-MD5 8a3adad6b1862e4cff5b38648779de4e virtualbox-bin-1.3.4.ebuild 3180
-RMD160 681473f6ff2ded9078736d80acb0a5446bb775fe virtualbox-bin-1.3.4.ebuild 3180
-SHA256 c404c2965b8853959296fb6175b4fdc5a9f3b24313cd15dbfbbe2896c9e9d407 virtualbox-bin-1.3.4.ebuild 3180
-EBUILD virtualbox-bin-1.3.6.ebuild 3539 RMD160 219d0a590688a8d6309192ed85b3c1cb4278156e SHA1 d4692eb936d6b411d8ed233cb1a0ee368dc21f8f SHA256 d6838c7ec50d115139b1fa4bcfbdb4df93adc5a7e706e23ae6a1141c5efadfba
-MD5 78946bb91d917f6d0f8adaecf85475a6 virtualbox-bin-1.3.6.ebuild 3539
-RMD160 219d0a590688a8d6309192ed85b3c1cb4278156e virtualbox-bin-1.3.6.ebuild 3539
-SHA256 d6838c7ec50d115139b1fa4bcfbdb4df93adc5a7e706e23ae6a1141c5efadfba virtualbox-bin-1.3.6.ebuild 3539
-MISC ChangeLog 945 RMD160 043e67f58d1c5f06e3b03637dcb3a7ea7b412652 SHA1 ec3a846810b1c66ce89e10165dc5abc1dd82bbcb SHA256 7a8de4f82ae5df03383fee0cd0a642fc02aac49a455808c086b4aa0caf75dba6
-MD5 42d7285fc227cfec98d361fe31a10ec2 ChangeLog 945
-RMD160 043e67f58d1c5f06e3b03637dcb3a7ea7b412652 ChangeLog 945
-SHA256 7a8de4f82ae5df03383fee0cd0a642fc02aac49a455808c086b4aa0caf75dba6 ChangeLog 945
+EBUILD virtualbox-bin-1.3.6.ebuild 3573 RMD160 6ef5547d6c6c3211d55981b305d713e5ef9d0ac1 SHA1 ba7b7f253551773edfe385c92a1d46034cb2fc9c SHA256 9a9f8477f57436b19a347e8c26253ba4fbf85a062c14c298c4df3e48df2c9c22
+MD5 7dbd1bca2f4cdc4302eec0d25fae89be virtualbox-bin-1.3.6.ebuild 3573
+RMD160 6ef5547d6c6c3211d55981b305d713e5ef9d0ac1 virtualbox-bin-1.3.6.ebuild 3573
+SHA256 9a9f8477f57436b19a347e8c26253ba4fbf85a062c14c298c4df3e48df2c9c22 virtualbox-bin-1.3.6.ebuild 3573
+EBUILD virtualbox-bin-1.3.8.ebuild 3573 RMD160 6ef5547d6c6c3211d55981b305d713e5ef9d0ac1 SHA1 ba7b7f253551773edfe385c92a1d46034cb2fc9c SHA256 9a9f8477f57436b19a347e8c26253ba4fbf85a062c14c298c4df3e48df2c9c22
+MD5 7dbd1bca2f4cdc4302eec0d25fae89be virtualbox-bin-1.3.8.ebuild 3573
+RMD160 6ef5547d6c6c3211d55981b305d713e5ef9d0ac1 virtualbox-bin-1.3.8.ebuild 3573
+SHA256 9a9f8477f57436b19a347e8c26253ba4fbf85a062c14c298c4df3e48df2c9c22 virtualbox-bin-1.3.8.ebuild 3573
+MISC ChangeLog 1210 RMD160 d7c826d204e93c32b5990ec6695ee608fb221474 SHA1 e8a162fc936203af0d1b74e49a61f43b94e21049 SHA256 b4bb1a3e194757cdb69e41db042af1e87331c14005c4c2bb7528fc10df5030b6
+MD5 f8f7b4af95048e9e623031a9a04b3776 ChangeLog 1210
+RMD160 d7c826d204e93c32b5990ec6695ee608fb221474 ChangeLog 1210
+SHA256 b4bb1a3e194757cdb69e41db042af1e87331c14005c4c2bb7528fc10df5030b6 ChangeLog 1210
 MISC metadata.xml 344 RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e SHA1 68b99919921f246738cce4350b77d895e7c78106 SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9
 MD5 688de6c9943189afc4fa3ab510813dbd metadata.xml 344
 RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e metadata.xml 344
 SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9 metadata.xml 344
-MD5 a5653cf2dad530a06d2fbee1586ed2f7 files/digest-virtualbox-bin-1.3.4 274
-RMD160 06d376ac58b3d6ffcedcde87ca4351e88f30a664 files/digest-virtualbox-bin-1.3.4 274
-SHA256 5129f448b55275504da55f10cbd7b1eae8d79db825ac3360dd6903f75fe95890 files/digest-virtualbox-bin-1.3.4 274
 MD5 5575ac5752dde2af447ffd11c4394964 files/digest-virtualbox-bin-1.3.6 476
 RMD160 7fa471182895532701729ccc5e2d9e296dde5194 files/digest-virtualbox-bin-1.3.6 476
 SHA256 c0c37cb437c71c60f2e076717054da14101e719f33c4da8b6f333d3304404bdc files/digest-virtualbox-bin-1.3.6 476
+MD5 3b4f4fe4310a3dd5e6a7eebc00cff3bc files/digest-virtualbox-bin-1.3.8 476
+RMD160 7338768b7130a7aed62fe70dd08b66ffcdf3488b files/digest-virtualbox-bin-1.3.8 476
+SHA256 e89db085615561e5add8e13ccd1d825e5dd6b3234b278ba20f2dcd88fcb05aa7 files/digest-virtualbox-bin-1.3.8 476
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4
deleted file mode 100644 (file)
index 8b18ca1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 2fa2f38d3fc9f367804934817de83a4b VirtualBox_1.3.4_Linux_x86.run 9835033
-RMD160 571a315f3d22c6a01cf05921f28c34491f2ca313 VirtualBox_1.3.4_Linux_x86.run 9835033
-SHA256 c695fb4ad5d8bfcc804283839362364f9393713f4a1bcf1e06953222861e096d VirtualBox_1.3.4_Linux_x86.run 9835033
diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.8
new file mode 100644 (file)
index 0000000..a702223
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 a6b8a863ad3270f7765b47d9f33ee46e VirtualBox_1.3.8_Linux_x86.run 12236712
+RMD160 a23292bba9a4742d49715095f04b3b1b6ccd299a VirtualBox_1.3.8_Linux_x86.run 12236712
+SHA256 407b2c12450631a19739de5a66eceaeeb93239ee55709b1d2b026030812d7431 VirtualBox_1.3.8_Linux_x86.run 12236712
+MD5 1396c7f206f7c6a69f183a0b32c07671 vditool 20884
+RMD160 3315e99113be34913790cb2d04956e29494d8551 vditool 20884
+SHA256 7612930d3a21e7b5b25ed0f6464dca3691e5d958f17df864e9f57f85c9ad966d vditool 20884
similarity index 87%
rename from app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6-wrapper
rename to app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
index 1d8c3b22cfc37c98a1f14430420d9fd08f46f8b8..79c4e3d3df534d115cdfd231d9cba1bc815d436a 100644 (file)
@@ -47,8 +47,17 @@ fi
 APP=$( which $0 )
 APP=${APP##/*/}
 case "$APP" in
-       VirtualBox|VBoxManage|VBoxSDL|VBoxVRDP)
-               exec "$INSTALL_DIR/$APP" "$@"
+       virtualbox)
+               exec "$INSTALL_DIR/VirtualBox" "$@"
+               ;;
+       vboxmanage)
+               exec "$INSTALL_DIR/VBoxManage" "$@"
+               ;;
+       vboxsdl)
+               exec "$INSTALL_DIR/VBoxSDL" "$@"
+               ;;
+       vboxvrdp)
+               exec "$INSTALL_DIR/VBoxVRDP" "$@"
                ;;
        *)
                echo "Error: Unknown application - $APP"
diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild
deleted file mode 100644 (file)
index 2b8420e..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header $
-
-inherit eutils linux-mod qt3
-
-MY_P=VirtualBox_${PV}_Linux_x86.run
-
-DESCRIPTION="Softwarefamily of powerful x86 virtualization"
-HOMEPAGE="http://www.virtualbox.org/"
-SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}"
-
-LICENSE="PUEL"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="additions doc"
-
-DEPEND=">=sys-libs/glibc-2.3.5"
-RDEPEND="!app-emulation/virtualbox
-       amd64? (
-               >=app-emulation/emul-linux-x86-baselibs-2.5.5-r3
-               >=app-emulation/emul-linux-x86-qtlibs-3.4.4
-               app-emulation/emul-linux-x86-compat
-               app-emulation/emul-linux-x86-xlibs
-               app-emulation/emul-linux-x86-sdl )
-       x86? (
-               virtual/xft
-               x11-libs/libX11
-               x11-libs/libXtst
-               x11-libs/libXext
-               x11-libs/libXt
-               x11-libs/libICE
-               x11-libs/libSM
-               x11-libs/libXrender
-               =virtual/libstdc++-3.3
-               x11-libs/libXcursor
-               media-libs/libsdl
-               $(qt_min_version 3.3.5) )"
-
-S=${WORKDIR}
-
-RESTRICT="primaryuri"
-
-BUILD_TARGETS="all"
-MODULE_NAMES="vboxdrv(misc:${S}/src)"
-
-pkg_setup() {
-       linux-mod_pkg_setup
-       BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
-       check_license
-}
-
-src_unpack() {
-       unpack_makeself ${A}
-       unpack ./VirtualBox.tar.bz2
-}
-
-src_install() {
-       linux-mod_src_install
-       cd "${S}"
-
-       # desktop entry
-       insinto /usr/share/pixmaps
-       newins VBox.png virtualbox.png
-       insinto /usr/share/applications
-       newins VirtualBox.desktop virtualbox.desktop
-       dosed -e "10d" /usr/share/applications/virtualbox.desktop
-       dosed -e "5d" /usr/share/applications/virtualbox.desktop
-       dosed -e "s/VirtualBox/virtualbox/" /usr/share/applications/virtualbox.desktop
-       dosed -e "s/VBox.png/virtualbox.png/" /usr/share/applications/virtualbox.desktop
-
-       insinto /opt/VirtualBox
-       doins UserManual.pdf
-       if use additions; then
-               doins -r additions
-       fi
-
-       rm -rf src sdk tst* UserManual.pdf rdesktop-vrdp.tar.gz deffiles install.sh routines.sh runlevel.sh \
-       vboxdrv.sh VBox.png additions VirtualBox.desktop VirtualBox.tar.bz2 LICENSE
-
-       doins -r *
-       for each in VBox{Manage,SDL,SVC,XPCOMIPCD} VirtualBox ; do
-               fperms 0755 /opt/VirtualBox/${each}
-       done
-
-       make_wrapper vboxsvc "./VBoxSVC" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-       make_wrapper virtualbox "./VirtualBox" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-       make_wrapper vboxmanage "./VBoxManage" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-       make_wrapper vboxsdl "./VBoxSDL" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-       make_wrapper vboxvrdp "./VBoxVRDP" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
-
-       # udev rule for vboxdrv
-       dodir /etc/udev/rules.d
-       echo 'KERNEL=="vboxdrv", GROUP="vboxusers" MODE=660' >> "${D}/etc/udev/rules.d/60-virtualbox.rules"
-}
-
-pkg_preinst() {
-       enewgroup vboxusers
-}
-
-pkg_postinst() {
-       if use amd64; then
-               elog ""
-               elog "To avoid the nmi_watchdog bug and load the vboxdrv module"
-               elog "you may need to update your bootloader configuration and pass the option:"
-               elog "nmi_watchdog=0"
-       fi
-       elog ""
-       elog "In order to launch VirtualBox you need to start VBoxSVC first,"
-       elog "this can be done with:"
-       elog "vboxsvc --daemonize && virtualbox"
-       elog ""
-       elog "You must be in the vboxusers group to use VirtualBox."
-       elog ""
-}
index abfb4bae0f79c35485be5b74ce838977fbfdec9c..a0018d3af513aef7c793dd334676c0b279546f3b 100644 (file)
@@ -14,11 +14,11 @@ SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}
 LICENSE="PUEL"
 SLOT="0"
 KEYWORDS="-amd64 ~x86"
-IUSE="additions sdk vditool wrapper"
+IUSE="additions nowrapper sdk vditool"
 
 DEPEND=">=sys-libs/glibc-2.3.5"
 RDEPEND="!app-emulation/virtualbox
-       =app-emulation/virtualbox-modules-${PV}
+       ~app-emulation/virtualbox-modules-${PV}
        sdk? ( dev-libs/libIDL )
        amd64? (
                >=app-emulation/emul-linux-x86-baselibs-2.5.5-r3
@@ -91,29 +91,31 @@ src_install() {
                fperms 0755 /opt/VirtualBox/${each}
        done
 
-       if use wrapper ; then
-               exeinto /opt/VirtualBox
-               newexe "${FILESDIR}/${P}-wrapper" "wrapper.sh"
-               dosym /opt/VirtualBox/wrapper.sh /usr/bin/VirtualBox
-               dosym /opt/VirtualBox/wrapper.sh /usr/bin/VBoxManage
-               dosym /opt/VirtualBox/wrapper.sh /usr/bin/VBoxSDL
-               dosym /opt/VirtualBox/wrapper.sh /usr/bin/VBoxVRDP
-       else
+       if use nowrapper ; then
                make_wrapper vboxsvc "./VBoxSVC" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
                make_wrapper virtualbox "./VirtualBox" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
                make_wrapper vboxmanage "./VBoxManage" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
                make_wrapper vboxsdl "./VBoxSDL" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
                make_wrapper vboxvrdp "./VBoxVRDP" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+       else
+               exeinto /opt/VirtualBox
+               newexe "${FILESDIR}/${PN}-wrapper" "wrapper.sh"
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/virtualbox
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxmanage
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxsdl
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxvrdp
        fi
-
 }
 
 pkg_postinst() {
        elog ""
-       elog "In order to launch VirtualBox you need to start VBoxSVC first, with:"
-       elog "vboxsvc --daemonize && virtualbox"
-       elog ""
-       elog "If you selected the useflag \"wrapper\" just type \"VirtualBox\" instead."
+       if use nowrapper; then
+               elog "In order to launch VirtualBox you need to start the"
+               elog "VirtualBox XPCom Server first, with:"
+               elog "vboxsvc --daemonize && virtualbox"
+       else
+               elog "To launch VirtualBox just type: \"virtualbox\""
+       fi
        elog ""
        elog "You must be in the vboxusers group to use VirtualBox."
        elog ""
diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-1.3.8.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-1.3.8.ebuild
new file mode 100644 (file)
index 0000000..a0018d3
--- /dev/null
@@ -0,0 +1,122 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+inherit eutils qt3
+
+MY_P=VirtualBox_${PV}_Linux_x86.run
+
+DESCRIPTION="Softwarefamily of powerful x86 virtualization"
+HOMEPAGE="http://www.virtualbox.org/"
+SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}
+       vditool? ( http://www.virtualbox.org/download/testcase/vditool )"
+
+LICENSE="PUEL"
+SLOT="0"
+KEYWORDS="-amd64 ~x86"
+IUSE="additions nowrapper sdk vditool"
+
+DEPEND=">=sys-libs/glibc-2.3.5"
+RDEPEND="!app-emulation/virtualbox
+       ~app-emulation/virtualbox-modules-${PV}
+       sdk? ( dev-libs/libIDL )
+       amd64? (
+               >=app-emulation/emul-linux-x86-baselibs-2.5.5-r3
+               >=app-emulation/emul-linux-x86-qtlibs-3.4.4
+               app-emulation/emul-linux-x86-compat
+               app-emulation/emul-linux-x86-xlibs
+               app-emulation/emul-linux-x86-sdl )
+       x86? (
+               virtual/xft
+               x11-libs/libX11
+               x11-libs/libXtst
+               x11-libs/libXext
+               x11-libs/libXt
+               x11-libs/libICE
+               x11-libs/libSM
+               x11-libs/libXrender
+               =virtual/libstdc++-3.3
+               x11-libs/libXcursor
+               media-libs/libsdl
+               $(qt_min_version 3.3.5) )"
+
+S=${WORKDIR}
+
+RESTRICT="primaryuri"
+
+pkg_setup() {
+       check_license
+}
+
+src_unpack() {
+       unpack_makeself ${MY_P}
+       unpack ./VirtualBox.tar.bz2
+}
+
+src_install() {
+       cd "${S}"
+
+       # desktop entry
+       insinto /usr/share/pixmaps
+       newins VBox.png virtualbox.png
+       insinto /usr/share/applications
+       newins VirtualBox.desktop virtualbox.desktop
+       dosed -e "10d" /usr/share/applications/virtualbox.desktop
+       dosed -e "5d" /usr/share/applications/virtualbox.desktop
+       dosed -e "s/VirtualBox/virtualbox/" /usr/share/applications/virtualbox.desktop
+       dosed -e "s/VBox.png/virtualbox.png/" /usr/share/applications/virtualbox.desktop
+
+       insinto /opt/VirtualBox
+       doins UserManual.pdf
+       if use additions; then
+               doins -r additions
+       fi
+       if use sdk; then
+               doins -r sdk
+               fperms 0755 /opt/VirtualBox/sdk/bin/xpidl
+               make_wrapper xpidl "sdk/bin/xpidl" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+       fi
+       if use vditool; then
+               doins "${DISTDIR}"/vditool
+               fperms 0755 /opt/VirtualBox/vditool
+               make_wrapper vditool "./vditool" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+       fi
+
+       rm -rf src sdk tst* UserManual.pdf rdesktop-vrdp.tar.gz deffiles install.sh \
+       routines.sh runlevel.sh vboxdrv.sh VBox.sh VBox.png kchmviewer additions \
+       VirtualBox.desktop VirtualBox.chm VirtualBox.tar.bz2 LICENSE
+
+       doins -r *
+       for each in VBox{Manage,SDL,SVC,XPCOMIPCD,VRDP} VirtualBox ; do
+               fperms 0755 /opt/VirtualBox/${each}
+       done
+
+       if use nowrapper ; then
+               make_wrapper vboxsvc "./VBoxSVC" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+               make_wrapper virtualbox "./VirtualBox" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+               make_wrapper vboxmanage "./VBoxManage" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+               make_wrapper vboxsdl "./VBoxSDL" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+               make_wrapper vboxvrdp "./VBoxVRDP" "/opt/VirtualBox" "/opt/VirtualBox" "/usr/bin"
+       else
+               exeinto /opt/VirtualBox
+               newexe "${FILESDIR}/${PN}-wrapper" "wrapper.sh"
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/virtualbox
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxmanage
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxsdl
+               dosym /opt/VirtualBox/wrapper.sh /usr/bin/vboxvrdp
+       fi
+}
+
+pkg_postinst() {
+       elog ""
+       if use nowrapper; then
+               elog "In order to launch VirtualBox you need to start the"
+               elog "VirtualBox XPCom Server first, with:"
+               elog "vboxsvc --daemonize && virtualbox"
+       else
+               elog "To launch VirtualBox just type: \"virtualbox\""
+       fi
+       elog ""
+       elog "You must be in the vboxusers group to use VirtualBox."
+       elog ""
+}