diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2011-08-09 10:46:53 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2011-08-09 10:46:53 +0000 |
commit | dcbecfffe471501c265a094c8f1e9ebeadadf1b6 (patch) | |
tree | 1fde670a836a725682045f928f913b3fd47ac1a7 | |
parent | Removed old versions (diff) | |
download | historical-dcbecfffe471501c265a094c8f1e9ebeadadf1b6.tar.gz historical-dcbecfffe471501c265a094c8f1e9ebeadadf1b6.tar.bz2 historical-dcbecfffe471501c265a094c8f1e9ebeadadf1b6.zip |
Removed old versions
Package-Manager: portage-2.2.0_alpha50/cvs/Linux x86_64
23 files changed, 35 insertions, 2256 deletions
diff --git a/app-emulation/virtualbox-additions/ChangeLog b/app-emulation/virtualbox-additions/ChangeLog index d2c8e2119e6f..369c44f5711a 100644 --- a/app-emulation/virtualbox-additions/ChangeLog +++ b/app-emulation/virtualbox-additions/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/virtualbox-additions # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/ChangeLog,v 1.32 2011/07/22 16:57:38 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/ChangeLog,v 1.33 2011/08/09 10:46:21 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-additions-3.2.12.ebuild, -virtualbox-additions-4.0.10.ebuild: + Removed old versions. 22 Jul 2011; Markos Chandras <hwoarang@gentoo.org> virtualbox-additions-4.0.12.ebuild: diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-3.2.12.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-3.2.12.ebuild deleted file mode 100644 index b9f7b502a0e2..000000000000 --- a/app-emulation/virtualbox-additions/virtualbox-additions-3.2.12.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-3.2.12.ebuild,v 1.2 2011/02/03 07:51:13 tomka Exp $ - -EAPI=2 - -inherit eutils - -MY_PN=VBoxGuestAdditions -MY_P=${MY_PN}_${PV} - -DESCRIPTION="CD image containing guest additions for VirtualBox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.iso" - -LICENSE="PUEL" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" -RESTRICT="mirror" - -RDEPEND="!app-emulation/virtualbox-bin - !=app-emulation/virtualbox-9999" - -src_unpack() { - return 0 -} - -src_install() { - insinto /usr/share/${PN/-additions} - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso -} diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-4.0.10.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-4.0.10.ebuild deleted file mode 100644 index 18bebce2fafa..000000000000 --- a/app-emulation/virtualbox-additions/virtualbox-additions-4.0.10.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-4.0.10.ebuild,v 1.1 2011/06/28 20:47:06 polynomial-c Exp $ - -EAPI=2 - -inherit eutils - -MY_PN=VBoxGuestAdditions -MY_P=${MY_PN}_${PV} - -DESCRIPTION="CD image containing guest additions for VirtualBox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.iso" - -LICENSE="PUEL" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="mirror" - -RDEPEND="!app-emulation/virtualbox-bin - !=app-emulation/virtualbox-9999" - -src_unpack() { - return 0 -} - -src_install() { - insinto /usr/share/${PN/-additions} - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso -} diff --git a/app-emulation/virtualbox-bin/ChangeLog b/app-emulation/virtualbox-bin/ChangeLog index 4f0b81704c34..3d2bde8456d4 100644 --- a/app-emulation/virtualbox-bin/ChangeLog +++ b/app-emulation/virtualbox-bin/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/virtualbox-bin # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.114 2011/07/22 16:57:58 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.115 2011/08/09 10:44:41 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-bin-3.2.12-r1.ebuild, -virtualbox-bin-4.0.10-r1.ebuild: + Removed old versions. 22 Jul 2011; Markos Chandras <hwoarang@gentoo.org> virtualbox-bin-4.0.12.ebuild: diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-3.2.12-r1.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-3.2.12-r1.ebuild deleted file mode 100644 index 9a75577ce691..000000000000 --- a/app-emulation/virtualbox-bin/virtualbox-bin-3.2.12-r1.ebuild +++ /dev/null @@ -1,304 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-3.2.12-r1.ebuild,v 1.5 2011/02/03 07:47:55 tomka Exp $ - -EAPI=2 - -inherit eutils fdo-mime pax-utils - -MY_PV=${PV}-68302 -SDK_PV=${MY_PV} -MY_P=VirtualBox-${MY_PV}-Linux - -DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${PV}/${MY_P}_amd64.run ) - x86? ( http://download.virtualbox.org/virtualbox/${PV}/${MY_P}_x86.run ) - sdk? ( http://download.virtualbox.org/virtualbox/${PV}/VirtualBoxSDK-${SDK_PV}.zip )" - -LICENSE="PUEL" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="+additions +chm headless python sdk vboxwebsrv rdesktop-vrdp" -RESTRICT="mirror" - -DEPEND="app-arch/unzip" - -RDEPEND="!!app-emulation/virtualbox - !app-emulation/virtualbox-additions - ~app-emulation/virtualbox-modules-${PV} - !headless? ( - x11-libs/libXcursor - media-libs/libsdl[X] - x11-libs/libXrender - x11-libs/libXfixes - media-libs/libpng - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXinerama - x11-libs/libXft - media-libs/freetype - media-libs/fontconfig - x11-libs/libXext - dev-libs/glib - chm? ( dev-libs/expat ) - ) - x11-libs/libXt - dev-libs/libxml2 - x11-libs/libXau - x11-libs/libX11 - x11-libs/libXmu - x11-libs/libSM - x11-libs/libICE - x11-libs/libXdmcp - python? ( || ( - dev-lang/python:2.7 - dev-lang/python:2.6 - dev-lang/python:2.5 - dev-lang/python:2.4 - ) )" - -S=${WORKDIR} - -QA_TEXTRELS_amd64="opt/VirtualBox/VBoxVMM.so" -QA_TEXTRELS_x86="opt/VirtualBox/VBoxGuestPropSvc.so - opt/VirtualBox/VBoxSDL.so - opt/VirtualBox/VBoxDbg.so - opt/VirtualBox/VBoxSharedFolders.so - opt/VirtualBox/VBoxDD2.so - opt/VirtualBox/VBoxOGLrenderspu.so - opt/VirtualBox/VBoxPython.so - opt/VirtualBox/VBoxPython2_3.so - opt/VirtualBox/VBoxPython2_4.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxPython2_6.so - opt/VirtualBox/VBoxPython2_7.so - opt/VirtualBox/VBoxPython3_0.so - opt/VirtualBox/VBoxPython3_1.so - opt/VirtualBox/VBoxDD.so - opt/VirtualBox/VBoxVRDP.so - opt/VirtualBox/VBoxDDU.so - opt/VirtualBox/VBoxREM64.so - opt/VirtualBox/VBoxSharedClipboard.so - opt/VirtualBox/VBoxHeadless.so - opt/VirtualBox/VBoxRT.so - opt/VirtualBox/VRDPAuth.so - opt/VirtualBox/VBoxREM.so - opt/VirtualBox/VBoxSettings.so - opt/VirtualBox/VBoxKeyboard.so - opt/VirtualBox/VBoxSharedCrOpenGL.so - opt/VirtualBox/VBoxVMM.so - opt/VirtualBox/VirtualBox.so - opt/VirtualBox/VBoxOGLhosterrorspu.so - opt/VirtualBox/components/VBoxC.so - opt/VirtualBox/components/VBoxSVCM.so - opt/VirtualBox/VBoxREM32.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxXPCOMC.so - opt/VirtualBox/VBoxOGLhostcrutil.so - opt/VirtualBox/VBoxNetDHCP.so - opt/VirtualBox/VBoxGuestControlSvc.so" -QA_PRESTRIPPED="opt/VirtualBox/VBoxDD.so - opt/VirtualBox/VBoxDD2.so - opt/VirtualBox/VBoxDDU.so - opt/VirtualBox/VBoxDbg.so - opt/VirtualBox/VBoxGuestControlSvc.so - opt/VirtualBox/VBoxGuestPropSvc.so - opt/VirtualBox/VBoxHeadless - opt/VirtualBox/VBoxHeadless.so - opt/VirtualBox/VBoxKeyboard.so - opt/VirtualBox/VBoxManage - opt/VirtualBox/VBoxNetAdpCtl - opt/VirtualBox/VBoxNetDHCP - opt/VirtualBox/VBoxNetDHCP.so - opt/VirtualBox/VBoxOGLhostcrutil.so - opt/VirtualBox/VBoxOGLhosterrorspu.so - opt/VirtualBox/VBoxOGLrenderspu.so - opt/VirtualBox/VBoxPython.so - opt/VirtualBox/VBoxPython2_3.so - opt/VirtualBox/VBoxPython2_4.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxPython2_6.so - opt/VirtualBox/VBoxPython2_7.so - opt/VirtualBox/VBoxPython3_0.so - opt/VirtualBox/VBoxPython3_1.so - opt/VirtualBox/VBoxREM.so - opt/VirtualBox/VBoxREM32.so - opt/VirtualBox/VBoxREM64.so - opt/VirtualBox/VBoxRT.so - opt/VirtualBox/VBoxSDL - opt/VirtualBox/VBoxSDL.so - opt/VirtualBox/VBoxSVC - opt/VirtualBox/VBoxSettings.so - opt/VirtualBox/VBoxSharedClipboard.so - opt/VirtualBox/VBoxSharedCrOpenGL.so - opt/VirtualBox/VBoxSharedFolders.so - opt/VirtualBox/VBoxTestOGL - opt/VirtualBox/VBoxTunctl - opt/VirtualBox/VBoxVMM.so - opt/VirtualBox/VBoxVRDP.so - opt/VirtualBox/VBoxXPCOM.so - opt/VirtualBox/VBoxXPCOMC.so - opt/VirtualBox/VBoxXPCOMIPCD - opt/VirtualBox/VRDPAuth.so - opt/VirtualBox/VirtualBox - opt/VirtualBox/VirtualBox.so - opt/VirtualBox/accessible/libqtaccessiblewidgets.so - opt/VirtualBox/components/VBoxC.so - opt/VirtualBox/components/VBoxSVCM.so - opt/VirtualBox/components/VBoxXPCOMIPCC.so - opt/VirtualBox/kchmviewer - opt/VirtualBox/libQtCoreVBox.so.4 - opt/VirtualBox/libQtGuiVBox.so.4 - opt/VirtualBox/libQtNetworkVBox.so.4 - opt/VirtualBox/libQtOpenGLVBox.so.4 - opt/VirtualBox/vboxwebsrv" - -src_unpack() { - unpack_makeself ${MY_P}_${ARCH}.run - unpack ./VirtualBox.tar.bz2 - - if use sdk; then - unpack VirtualBoxSDK-${SDK_PV}.zip - fi -} - -src_install() { - # create virtualbox configurations files - insinto /etc/vbox - newins "${FILESDIR}/${PN}-config" vbox.cfg - - if ! use headless ; then - newicon VBox.png ${PN}.png - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop - fi - - insinto /opt/VirtualBox - dodir /opt/bin - - doins UserManual.pdf - - if use sdk ; then - doins -r sdk || die - fi - - if use additions; then - doins -r additions || die - fi - - if use vboxwebsrv; then - doins vboxwebsrv || die - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv - fperms 0750 /opt/VirtualBox/vboxwebsrv - dosym /opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv - fi - - if use rdesktop-vrdp; then - doins rdesktop-vrdp || die - doins -r rdesktop-vrdp-keymaps || die - fperms 0750 /opt/VirtualBox/rdesktop-vrdp - fi - - if ! use headless && use chm; then - doins kchmviewer VirtualBox.chm || die - fowners root:vboxusers /opt/VirtualBox/kchmviewer - fperms 0750 /opt/VirtualBox/kchmviewer - fi - - if use python; then - local pyver - for pyver in 2.4 2.5 2.6 2.7 3.0 3.1 ; do - if has_version "=dev-lang/python-${pyver}*" && [ -f "${S}/VBoxPython${pyver/./_}.so" ] ; then - doins VBoxPython${pyver/./_}.so || die - fi - done - fi - - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \ - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \ - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \ - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \ - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \ - VBoxPython?_*.so - - if use headless ; then - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so - fi - - doins -r * || die - - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid) - dosym /opt/VirtualBox/VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so - dosym /opt/VirtualBox/VBoxREM.so /opt/VirtualBox/components/VBoxREM.so - dosym /opt/VirtualBox/VBoxRT.so /opt/VirtualBox/components/VBoxRT.so - dosym /opt/VirtualBox/VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so - dosym /opt/VirtualBox/VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so - - local each - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,TestOGL}; do - fowners root:vboxusers /opt/VirtualBox/${each} - fperms 0750 /opt/VirtualBox/${each} - pax-mark -m "${D}"/opt/VirtualBox/${each} - done - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case.. - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl - fperms 4750 /opt/VirtualBox/VBoxNetDHCP - - if ! use headless ; then - # Hardened build: Mark selected binaries set-user-ID-on-execution - for each in VBox{SDL,Headless} VirtualBox; do - fowners root:vboxusers /opt/VirtualBox/${each} - fperms 4510 /opt/VirtualBox/${each} - pax-mark -m "${D}"/opt/VirtualBox/${each} - done - - dosym /opt/VirtualBox/VBox.sh /opt/bin/VirtualBox - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxSDL - else - # Hardened build: Mark selected binaries set-user-ID-on-execution - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless - fperms 4510 /opt/VirtualBox/VBoxHeadless - pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless - fi - - if use rdesktop-vrdp; then - dosym /opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp - fi - - exeinto /opt/VirtualBox - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh" || die - fowners root:vboxusers /opt/VirtualBox/VBox.sh - fperms 0750 /opt/VirtualBox/VBox.sh - - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxManage - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxVRDP - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxHeadless - dosym /opt/VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl - - # set an env-variable for 3rd party tools - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox" - doenvd "${T}/90virtualbox" -} - -pkg_postinst() { - fdo-mime_desktop_database_update - elog "" - if ! use headless ; then - elog "To launch VirtualBox just type: \"VirtualBox\"" - elog "" - fi - elog "You must be in the vboxusers group to use VirtualBox." - elog "" - elog "For advanced networking setups you should emerge:" - elog "net-misc/bridge-utils and sys-apps/usermode-utilities" - elog "" - elog "Please visit http://www.virtualbox.org/wiki/Editions for" - elog "an overview about the different features of ${PN}" - elog "and virtualbox-ose" -} - -pkg_postrm() { - fdo-mime_desktop_database_update -} diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-4.0.10-r1.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-4.0.10-r1.ebuild deleted file mode 100644 index 4585f487eda5..000000000000 --- a/app-emulation/virtualbox-bin/virtualbox-bin-4.0.10-r1.ebuild +++ /dev/null @@ -1,330 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/virtualbox-bin-4.0.10-r1.ebuild,v 1.1 2011/06/30 04:11:55 polynomial-c Exp $ - -EAPI=2 - -inherit eutils fdo-mime pax-utils - -MY_PV=${PV}-72479 -SDK_PV=${MY_PV} -EXTP_PV=${PV}-72436 -MY_P=VirtualBox-${MY_PV}-Linux -EXTP_PN=Oracle_VM_VirtualBox_Extension_Pack - -DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${PV}/${MY_P}_amd64.run ) - x86? ( http://download.virtualbox.org/virtualbox/${PV}/${MY_P}_x86.run ) - sdk? ( http://download.virtualbox.org/virtualbox/${PV}/VirtualBoxSDK-${SDK_PV}.zip ) - http://download.virtualbox.org/virtualbox/${PV}/${EXTP_PN}-${EXTP_PV}.vbox-extpack -> ${EXTP_PN}-${EXTP_PV}.tar.gz" - -LICENSE="GPL-2 PUEL" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+additions +chm headless python sdk vboxwebsrv rdesktop-vrdp" -RESTRICT="mirror" - -DEPEND="app-arch/unzip" - -RDEPEND="!!app-emulation/virtualbox - !app-emulation/virtualbox-additions - ~app-emulation/virtualbox-modules-${PV} - !headless? ( - x11-libs/libXcursor - media-libs/libsdl[X] - x11-libs/libXrender - x11-libs/libXfixes - media-libs/libpng - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXinerama - x11-libs/libXft - media-libs/freetype - media-libs/fontconfig - x11-libs/libXext - dev-libs/glib - chm? ( dev-libs/expat ) - ) - x11-libs/libXt - dev-libs/libxml2 - x11-libs/libXau - x11-libs/libX11 - x11-libs/libXmu - x11-libs/libSM - x11-libs/libICE - x11-libs/libXdmcp - python? ( || ( - dev-lang/python:2.7 - dev-lang/python:2.6 - dev-lang/python:2.5 - dev-lang/python:2.4 - ) )" - -S=${WORKDIR} - -QA_TEXTRELS_amd64="opt/VirtualBox/VBoxVMM.so" -QA_TEXTRELS_x86="opt/VirtualBox/VBoxGuestPropSvc.so - opt/VirtualBox/VBoxSDL.so - opt/VirtualBox/VBoxDbg.so - opt/VirtualBox/VBoxSharedFolders.so - opt/VirtualBox/VBoxDD2.so - opt/VirtualBox/VBoxOGLrenderspu.so - opt/VirtualBox/VBoxPython.so - opt/VirtualBox/VBoxPython2_3.so - opt/VirtualBox/VBoxPython2_4.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxPython2_6.so - opt/VirtualBox/VBoxPython2_7.so - opt/VirtualBox/VBoxPython3_0.so - opt/VirtualBox/VBoxPython3_1.so - opt/VirtualBox/VBoxDD.so - opt/VirtualBox/VBoxVRDP.so - opt/VirtualBox/VBoxDDU.so - opt/VirtualBox/VBoxREM64.so - opt/VirtualBox/VBoxSharedClipboard.so - opt/VirtualBox/VBoxHeadless.so - opt/VirtualBox/VBoxRT.so - opt/VirtualBox/VRDPAuth.so - opt/VirtualBox/VBoxREM.so - opt/VirtualBox/VBoxSettings.so - opt/VirtualBox/VBoxKeyboard.so - opt/VirtualBox/VBoxSharedCrOpenGL.so - opt/VirtualBox/VBoxVMM.so - opt/VirtualBox/VirtualBox.so - opt/VirtualBox/VBoxOGLhosterrorspu.so - opt/VirtualBox/components/VBoxC.so - opt/VirtualBox/components/VBoxSVCM.so - opt/VirtualBox/VBoxREM32.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxXPCOMC.so - opt/VirtualBox/VBoxOGLhostcrutil.so - opt/VirtualBox/VBoxNetDHCP.so - opt/VirtualBox/VBoxGuestControlSvc.so" -QA_PRESTRIPPED="opt/VirtualBox/VBoxDD.so - opt/VirtualBox/VBoxDD2.so - opt/VirtualBox/VBoxDDU.so - opt/VirtualBox/VBoxDbg.so - opt/VirtualBox/VBoxGuestControlSvc.so - opt/VirtualBox/VBoxGuestPropSvc.so - opt/VirtualBox/VBoxHeadless - opt/VirtualBox/VBoxHeadless.so - opt/VirtualBox/VBoxKeyboard.so - opt/VirtualBox/VBoxManage - opt/VirtualBox/VBoxNetAdpCtl - opt/VirtualBox/VBoxNetDHCP - opt/VirtualBox/VBoxNetDHCP.so - opt/VirtualBox/VBoxOGLhostcrutil.so - opt/VirtualBox/VBoxOGLhosterrorspu.so - opt/VirtualBox/VBoxOGLrenderspu.so - opt/VirtualBox/VBoxPython.so - opt/VirtualBox/VBoxPython2_3.so - opt/VirtualBox/VBoxPython2_4.so - opt/VirtualBox/VBoxPython2_5.so - opt/VirtualBox/VBoxPython2_6.so - opt/VirtualBox/VBoxPython2_7.so - opt/VirtualBox/VBoxPython3_0.so - opt/VirtualBox/VBoxPython3_1.so - opt/VirtualBox/VBoxREM.so - opt/VirtualBox/VBoxREM32.so - opt/VirtualBox/VBoxREM64.so - opt/VirtualBox/VBoxRT.so - opt/VirtualBox/VBoxSDL - opt/VirtualBox/VBoxSDL.so - opt/VirtualBox/VBoxSVC - opt/VirtualBox/VBoxSettings.so - opt/VirtualBox/VBoxSharedClipboard.so - opt/VirtualBox/VBoxSharedCrOpenGL.so - opt/VirtualBox/VBoxSharedFolders.so - opt/VirtualBox/VBoxTestOGL - opt/VirtualBox/VBoxTunctl - opt/VirtualBox/VBoxVMM.so - opt/VirtualBox/VBoxVRDP.so - opt/VirtualBox/VBoxXPCOM.so - opt/VirtualBox/VBoxXPCOMC.so - opt/VirtualBox/VBoxXPCOMIPCD - opt/VirtualBox/VRDPAuth.so - opt/VirtualBox/VirtualBox - opt/VirtualBox/VirtualBox.so - opt/VirtualBox/accessible/libqtaccessiblewidgets.so - opt/VirtualBox/components/VBoxC.so - opt/VirtualBox/components/VBoxSVCM.so - opt/VirtualBox/components/VBoxXPCOMIPCC.so - opt/VirtualBox/kchmviewer - opt/VirtualBox/libQtCoreVBox.so.4 - opt/VirtualBox/libQtGuiVBox.so.4 - opt/VirtualBox/libQtNetworkVBox.so.4 - opt/VirtualBox/libQtOpenGLVBox.so.4 - opt/VirtualBox/vboxwebsrv" - -src_unpack() { - unpack_makeself ${MY_P}_${ARCH}.run - unpack ./VirtualBox.tar.bz2 - - mkdir "${S}"/${EXTP_PN} || die - pushd "${S}"/${EXTP_PN} &>/dev/null || die - unpack ${EXTP_PN}-${EXTP_PV}.tar.gz - popd &>/dev/null || die - - if use sdk; then - unpack VirtualBoxSDK-${SDK_PV}.zip - fi -} - -src_install() { - # create virtualbox configurations files - insinto /etc/vbox - newins "${FILESDIR}/${PN}-config" vbox.cfg - - if ! use headless ; then - newicon VBox.png ${PN}.png - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop - fi - - pushd "${S}"/${EXTP_PN} &>/dev/null || die - insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN} - doins -r linux.${ARCH} - doins ExtPack* PXE-Intel.rom - popd &>/dev/null || die - rm -rf "${S}"/${EXTP_PN} - - insinto /opt/VirtualBox - dodir /opt/bin - - doins UserManual.pdf - - if use sdk ; then - doins -r sdk || die - fi - - if use additions; then - doins -r additions || die - fi - - if use vboxwebsrv; then - doins vboxwebsrv || die - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv - fperms 0750 /opt/VirtualBox/vboxwebsrv - dosym /opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv - fi - - if use rdesktop-vrdp; then - doins rdesktop-vrdp || die - doins -r rdesktop-vrdp-keymaps || die - fperms 0750 /opt/VirtualBox/rdesktop-vrdp - dosym /opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp - fi - - if ! use headless && use chm; then - doins kchmviewer VirtualBox.chm || die - fowners root:vboxusers /opt/VirtualBox/kchmviewer - fperms 0750 /opt/VirtualBox/kchmviewer - fi - - if use python; then - local pyver - for pyver in 2.4 2.5 2.6 2.7 3.0 3.1 ; do - if has_version "=dev-lang/python-${pyver}*" && [ -f "${S}/VBoxPython${pyver/./_}.so" ] ; then - doins VBoxPython${pyver/./_}.so || die - fi - done - fi - - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \ - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \ - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \ - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \ - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \ - VBoxPython?_*.so - - if use headless ; then - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so - fi - - doins -r * || die - - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid) - dosym /opt/VirtualBox/VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so - dosym /opt/VirtualBox/VBoxREM.so /opt/VirtualBox/components/VBoxREM.so - dosym /opt/VirtualBox/VBoxRT.so /opt/VirtualBox/components/VBoxRT.so - dosym /opt/VirtualBox/VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so - dosym /opt/VirtualBox/VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so - - local each - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,TestOGL,ExtPackHelperApp}; do - fowners root:vboxusers /opt/VirtualBox/${each} - fperms 0750 /opt/VirtualBox/${each} - pax-mark -m "${D}"/opt/VirtualBox/${each} - done - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case.. - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl - fperms 4750 /opt/VirtualBox/VBoxNetDHCP - - if ! use headless ; then - # Hardened build: Mark selected binaries set-user-ID-on-execution - for each in VBox{SDL,Headless} VirtualBox; do - fowners root:vboxusers /opt/VirtualBox/${each} - fperms 4510 /opt/VirtualBox/${each} - pax-mark -m "${D}"/opt/VirtualBox/${each} - done - - dosym /opt/VirtualBox/VBox.sh /opt/bin/VirtualBox - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxSDL - else - # Hardened build: Mark selected binaries set-user-ID-on-execution - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless - fperms 4510 /opt/VirtualBox/VBoxHeadless - pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless - fi - - exeinto /opt/VirtualBox - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh" || die - fowners root:vboxusers /opt/VirtualBox/VBox.sh - fperms 0750 /opt/VirtualBox/VBox.sh - - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxManage - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxVRDP - dosym /opt/VirtualBox/VBox.sh /opt/bin/VBoxHeadless - dosym /opt/VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl - - # set an env-variable for 3rd party tools - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox" - doenvd "${T}/90virtualbox" - - insinto /lib/udev/rules.d - doins "${FILESDIR}"/10-virtualbox.rules - # move udev scripts into /lib/udev (bug #372491) - mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"/lib/udev - fperms 0750 /lib/udev/VBoxCreateUSBNode.sh -} - -pkg_postinst() { - fdo-mime_desktop_database_update - - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb - - elog "" - if ! use headless ; then - elog "To launch VirtualBox just type: \"VirtualBox\"" - elog "" - fi - elog "You must be in the vboxusers group to use VirtualBox." - elog "" - elog "For advanced networking setups you should emerge:" - elog "net-misc/bridge-utils and sys-apps/usermode-utilities" - elog "" - elog "Please visit http://www.virtualbox.org/wiki/Editions for" - elog "an overview about the different features of ${PN}" - elog "and virtualbox-ose" - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then - elog "" - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\"" - elog "or else USB in ${PN} won't work." - fi -} - -pkg_postrm() { - fdo-mime_desktop_database_update -} diff --git a/app-emulation/virtualbox-extpack-oracle/ChangeLog b/app-emulation/virtualbox-extpack-oracle/ChangeLog index 7515198d3051..6552f19e6a48 100644 --- a/app-emulation/virtualbox-extpack-oracle/ChangeLog +++ b/app-emulation/virtualbox-extpack-oracle/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/virtualbox-extpack-oracle # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/ChangeLog,v 1.10 2011/07/24 00:25:28 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/ChangeLog,v 1.11 2011/08/09 10:46:53 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-extpack-oracle-4.0.10.ebuild: + Removed old version. 24 Jul 2011; Lars Wendler <polynomial-c@gentoo.org> virtualbox-extpack-oracle-4.0.12.ebuild: diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.0.10.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.0.10.ebuild deleted file mode 100644 index bc059886fcb1..000000000000 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.0.10.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.0.10.ebuild,v 1.1 2011/06/28 20:47:31 polynomial-c Exp $ - -EAPI=2 - -inherit eutils - -MY_BUILD="72436" -MY_PN="Oracle_VM_VirtualBox_Extension_Pack" -MY_P="${MY_PN}-${PV}-${MY_BUILD}" - -DESCRIPTION="PUEL extensions for VirtualBox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz" - -LICENSE="PUEL" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="mirror strip" - -RDEPEND="~app-emulation/virtualbox-${PV}" - -src_install() { - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN} - doins -r linux.${ARCH} - doins ExtPack* PXE-Intel.rom -} diff --git a/app-emulation/virtualbox-guest-additions/ChangeLog b/app-emulation/virtualbox-guest-additions/ChangeLog index 4a6b61f34d26..bcc1c68663f9 100644 --- a/app-emulation/virtualbox-guest-additions/ChangeLog +++ b/app-emulation/virtualbox-guest-additions/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/virtualbox-guest-additions # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.75 2011/07/22 16:58:25 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/ChangeLog,v 1.76 2011/08/09 10:44:06 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-guest-additions-3.2.12.ebuild, + -virtualbox-guest-additions-4.0.10.ebuild: + Removed old versions. 22 Jul 2011; Markos Chandras <hwoarang@gentoo.org> virtualbox-guest-additions-4.0.12.ebuild: diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-3.2.12.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-3.2.12.ebuild deleted file mode 100644 index 92505ed55132..000000000000 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-3.2.12.ebuild +++ /dev/null @@ -1,193 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-3.2.12.ebuild,v 1.7 2011/07/08 10:56:36 ssuominen Exp $ - -inherit eutils linux-mod - -MY_P=VirtualBox-${PV}-OSE -DESCRIPTION="VirtualBox kernel modules and user-space tools for Linux guests" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="X" - -RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV} - ~x11-drivers/xf86-input-virtualbox-${PV} - x11-apps/xrandr - x11-apps/xrefresh - x11-libs/libXmu - x11-libs/libX11 - x11-libs/libXt - x11-libs/libXext - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libSM - x11-libs/libICE )" -DEPEND="${RDEPEND} - >=dev-util/kbuild-0.1.5-r1 - >=dev-lang/yasm-0.6.2 - sys-devel/bin86 - sys-devel/dev86 - sys-libs/pam - sys-power/iasl - X? ( x11-proto/renderproto ) - !X? ( x11-proto/xproto )" - -BUILD_TARGETS="all" -BUILD_TARGET_ARCH="${ARCH}" -MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest) - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)" - -S=${WORKDIR}/${MY_P/-OSE/_OSE} - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" - enewgroup vboxguest - enewuser vboxguest -1 /bin/sh /var/run/vboxguest vboxguest -} - -src_unpack() { - unpack ${A} - - # Create and unpack a tarball with the sources of the Linux guest - # kernel modules, to include all the needed files - "${MY_P/-OSE/_OSE}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz" - unpack ./vbox-kmod.tar.gz - - if kernel_is -ge 2 6 33 ; then - # evil patch for new kernels - header moved - grep -lR linux/autoconf.h * | xargs sed -i -e \ - 's:<linux/autoconf.h>:<generated/autoconf.h>:' - fi - - # PaX fixes (see bug #298988) - epatch "${FILESDIR}"/vboxguest-log-use-c99.patch - - # Remove shipped binaries (kBuild,yasm), see bug #232775 - cd "${S}" - rm -rf kBuild/bin tools - - # Disable things unused or splitted into separate ebuilds - cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk - - # stupid new header references... - for vboxheader in {product,revision}-generated.h ; do - for mdir in vbox{guest,sf} ; do - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \ - "${WORKDIR}/${mdir}/${vboxheader}" - done - done -} - -src_compile() { - # build the user-space tools, warnings are harmless - ./configure --nofatal \ - --disable-xpcom \ - --disable-sdl-ttf \ - --disable-pulse \ - --disable-alsa \ - --build-headless || die "configure failed" - source ./env.sh - - for each in /src/VBox/{Runtime,Additions/common} \ - /src/VBox/Additions/linux/{sharedfolders,daemon} ; do - cd "${S}"${each} - MAKE="kmk" emake TOOL_YASM_AS=yasm \ - KBUILD_PATH="${S}/kBuild" \ - || die "kmk VBoxControl failed" - done - - if use X; then - cd "${S}"/src/VBox/Additions/x11/VBoxClient - MAKE="kmk" emake TOOL_YASM_AS=yasm \ - KBUILD_PATH="${S}/kBuild" \ - || die "kmk VBoxClient failed" - fi - - # Now creating the kernel modules. We must do this _after_ - # we compiled the user-space tools as we need two of the - # automatically generated header files. (>=3.2.0) - linux-mod_src_compile -} - -src_install() { - linux-mod_src_install - - cd "${S}"/out/linux.${ARCH}/release/bin/additions - - insinto /sbin - newins mount.vboxsf mount.vboxsf - fperms 4755 /sbin/mount.vboxsf - - newinitd "${FILESDIR}"/${PN}-7.initd ${PN} - - insinto /usr/sbin/ - newins VBoxService vboxguest-service - fperms 0755 /usr/sbin/vboxguest-service - - insinto /usr/bin - doins VBoxControl - fperms 0755 /usr/bin/VBoxControl - - # VBoxClient user service and xrandr wrapper - if use X; then - doins VBoxClient - fperms 0755 /usr/bin/VBoxClient - cd "${S}"/src/VBox/Additions/x11/Installer - newins 98vboxadd-xclient VBoxClient-all - fperms 0755 /usr/bin/VBoxClient-all - fi - - # udev rule for vboxdrv - dodir /etc/udev/rules.d - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules" - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules" - - # VBoxClient autostart file - insinto /etc/xdg/autostart - doins "${FILESDIR}"/vboxclient.desktop - - # sample xorg.conf - insinto /usr/share/doc/${PF} - doins "${FILESDIR}"/xorg.conf.vbox -} - -pkg_postinst() { - linux-mod_pkg_postinst - if ! use X ; then - elog "use flag X is off, enable it to install the" - elog "X Window System input and video drivers" - fi - elog "" - elog "Please add users to the \"vboxguest\" group so they can" - elog "benefit from seamless mode, auto-resize and clipboard." - elog "" - elog "Please add:" - elog "/etc/init.d/${PN}" - elog "to the default runlevel in order to start" - elog "needed services." - elog "To use the VirtualBox X drivers, use the following" - elog "file as your /etc/X11/xorg.conf:" - elog " /usr/share/doc/${PF}/xorg.conf.xorg" - elog "" - elog "Also make sure you use the Mesa library for OpenGL:" - elog " eselect opengl set xorg-x11" - elog "" - elog "An autostart .desktop file has been installed to start" - elog "VBoxClient in desktop sessions." - elog "" - elog "You can mount shared folders with:" - elog " mount -t vboxsf <shared_folder_name> <mount_point>" - elog "" - elog "Warning:" - elog "this ebuild is only needed if you are running gentoo" - elog "inside a VirtualBox Virtual Machine, you don't need" - elog "it to run VirtualBox itself." - elog "" -} diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.10.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.10.ebuild deleted file mode 100644 index 50873840a8c5..000000000000 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.10.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-4.0.10.ebuild,v 1.2 2011/07/08 10:56:36 ssuominen Exp $ - -EAPI=2 - -inherit eutils linux-mod - -MY_P=VirtualBox-${PV} -DESCRIPTION="VirtualBox kernel modules and user-space tools for Linux guests" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="X" - -RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV} - ~x11-drivers/xf86-input-virtualbox-${PV} - x11-apps/xrandr - x11-apps/xrefresh - x11-libs/libXmu - x11-libs/libX11 - x11-libs/libXt - x11-libs/libXext - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libSM - x11-libs/libICE )" -DEPEND="${RDEPEND} - >=dev-util/kbuild-0.1.5-r1 - >=dev-lang/yasm-0.6.2 - sys-devel/bin86 - sys-devel/dev86 - sys-libs/pam - sys-power/iasl - X? ( x11-proto/renderproto ) - !X? ( x11-proto/xproto )" - -BUILD_TARGETS="all" -BUILD_TARGET_ARCH="${ARCH}" -MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest) - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)" - -S="${WORKDIR}/${MY_P}_OSE" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" - enewgroup vboxguest - enewuser vboxguest -1 /bin/sh /var/run/vboxguest vboxguest -} - -src_unpack() { - unpack ${A} - - # Create and unpack a tarball with the sources of the Linux guest - # kernel modules, to include all the needed files - "${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz" - unpack ./vbox-kmod.tar.gz - - # Remove shipped binaries (kBuild,yasm), see bug #232775 - cd "${S}" - rm -rf kBuild/bin tools -} - -src_prepare() { - # PaX fixes (see bug #298988) - pushd "${WORKDIR}" &>/dev/null || die - epatch "${FILESDIR}"/vboxguest-log-use-c99.patch - popd &>/dev/null || die - - # Disable things unused or splitted into separate ebuilds - cp "${FILESDIR}/${PN}-3-localconfig" LocalConfig.kmk - - # stupid new header references... - for vboxheader in {product,revision}-generated.h ; do - for mdir in vbox{guest,sf} ; do - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \ - "${WORKDIR}/${mdir}/${vboxheader}" - done - done -} - -src_compile() { - # build the user-space tools, warnings are harmless - ./configure --nofatal \ - --disable-xpcom \ - --disable-sdl-ttf \ - --disable-pulse \ - --disable-alsa \ - --build-headless || die "configure failed" - source ./env.sh - - for each in /src/VBox/{Runtime,Additions/common} \ - /src/VBox/Additions/linux/{sharedfolders,daemon} ; do - cd "${S}"${each} - MAKE="kmk" emake TOOL_YASM_AS=yasm \ - KBUILD_PATH="${S}/kBuild" \ - || die "kmk VBoxControl failed" - done - - if use X; then - cd "${S}"/src/VBox/Additions/x11/VBoxClient - MAKE="kmk" emake TOOL_YASM_AS=yasm \ - KBUILD_PATH="${S}/kBuild" \ - || die "kmk VBoxClient failed" - fi - - # Now creating the kernel modules. We must do this _after_ - # we compiled the user-space tools as we need two of the - # automatically generated header files. (>=3.2.0) - linux-mod_src_compile -} - -src_install() { - linux-mod_src_install - - cd "${S}"/out/linux.${ARCH}/release/bin/additions - - insinto /sbin - newins mount.vboxsf mount.vboxsf - fperms 4755 /sbin/mount.vboxsf - - newinitd "${FILESDIR}"/${PN}-7.initd ${PN} - - insinto /usr/sbin/ - newins VBoxService vboxguest-service - fperms 0755 /usr/sbin/vboxguest-service - - insinto /usr/bin - doins VBoxControl - fperms 0755 /usr/bin/VBoxControl - - # VBoxClient user service and xrandr wrapper - if use X; then - doins VBoxClient - fperms 0755 /usr/bin/VBoxClient - - cd "${S}"/src/VBox/Additions/x11/Installer - newins 98vboxadd-xclient VBoxClient-all - fperms 0755 /usr/bin/VBoxClient-all - fi - - # udev rule for vboxdrv - dodir /lib/udev/rules.d - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \ - || die - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \ - >> "${D}/lib/udev/rules.d/60-virtualbox-guest-additions.rules" \ - || die - - # VBoxClient autostart file - insinto /etc/xdg/autostart - doins "${FILESDIR}"/vboxclient.desktop - - # sample xorg.conf - insinto /usr/share/doc/${PF} - doins "${FILESDIR}"/xorg.conf.vbox -} - -pkg_postinst() { - linux-mod_pkg_postinst - if ! use X ; then - elog "use flag X is off, enable it to install the" - elog "X Window System input and video drivers" - fi - elog "" - elog "Please add users to the \"vboxguest\" group so they can" - elog "benefit from seamless mode, auto-resize and clipboard." - elog "" - elog "Please add:" - elog "/etc/init.d/${PN}" - elog "to the default runlevel in order to start" - elog "needed services." - elog "To use the VirtualBox X drivers, use the following" - elog "file as your /etc/X11/xorg.conf:" - elog " /usr/share/doc/${PF}/xorg.conf.xorg" - elog "" - elog "Also make sure you use the Mesa library for OpenGL:" - elog " eselect opengl set xorg-x11" - elog "" - elog "An autostart .desktop file has been installed to start" - elog "VBoxClient in desktop sessions." - elog "" - elog "You can mount shared folders with:" - elog " mount -t vboxsf <shared_folder_name> <mount_point>" - elog "" - elog "Warning:" - elog "this ebuild is only needed if you are running gentoo" - elog "inside a VirtualBox Virtual Machine, you don't need" - elog "it to run VirtualBox itself." - elog "" -} diff --git a/app-emulation/virtualbox-modules/ChangeLog b/app-emulation/virtualbox-modules/ChangeLog index 166fed07d4e5..b082bf0ca158 100644 --- a/app-emulation/virtualbox-modules/ChangeLog +++ b/app-emulation/virtualbox-modules/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/virtualbox-modules # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.87 2011/08/07 11:18:29 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.88 2011/08/09 10:45:42 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-modules-3.2.12.ebuild, -virtualbox-modules-4.0.10.ebuild, + -virtualbox-modules-4.1.0.ebuild: + Removed old versions. *virtualbox-modules-4.1.0-r1 (07 Aug 2011) diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-3.2.12.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-3.2.12.ebuild deleted file mode 100644 index 432f0b89191c..000000000000 --- a/app-emulation/virtualbox-modules/virtualbox-modules-3.2.12.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-3.2.12.ebuild,v 1.4 2011/02/03 07:44:43 tomka Exp $ - -# XXX: the tarball here is just the kernel modules split out of the binary -# package that comes from virtualbox-bin - -EAPI=2 - -inherit eutils linux-mod - -MY_P=vbox-kernel-module-src-${PV} -DESCRIPTION="Kernel Modules for Virtualbox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -RDEPEND="!=app-emulation/virtualbox-9999" - -S=${WORKDIR} - -BUILD_TARGETS="all" -BUILD_TARGET_ARCH="${ARCH}" -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S})" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" - enewgroup vboxusers -} - -src_prepare() { - if kernel_is -ge 2 6 33 ; then - # evil patch for new kernels - header moved - grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' - fi -} - -src_install() { - linux-mod_src_install - - # udev rule for vboxdrv - dodir /etc/udev/rules.d - echo '#SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0644"' \ - > "${D}/etc/udev/rules.d/10-virtualbox.rules" - echo '#SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0644"' \ - >> "${D}/etc/udev/rules.d/10-virtualbox.rules" -} - -pkg_postinst() { - linux-mod_pkg_postinst - elog "Starting with the 3.x release new kernel modules were added," - elog "be sure to load all the needed modules." - elog "" - elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:" - if has_version sys-apps/openrc; then - elog "/etc/conf.d/modules" - else - elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" - fi - elog "" - elog "If you are experiencing problems on your guests" - elog "with USB support and app-emulation/virtualbox-bin," - elog "uncomment the udev rules placed in:" - elog "" - elog "/etc/udev/rules.d/10-virtualbox.rules" - elog "" -} diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.0.10.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.0.10.ebuild deleted file mode 100644 index 3f94a17c3b67..000000000000 --- a/app-emulation/virtualbox-modules/virtualbox-modules-4.0.10.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.0.10.ebuild,v 1.1 2011/06/28 20:41:58 polynomial-c Exp $ - -# XXX: the tarball here is just the kernel modules split out of the binary -# package that comes from virtualbox-bin - -EAPI=2 - -inherit eutils linux-mod - -MY_P=vbox-kernel-module-src-${PV} -DESCRIPTION="Kernel Modules for Virtualbox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="!=app-emulation/virtualbox-9999" - -S=${WORKDIR} - -BUILD_TARGETS="all" -BUILD_TARGET_ARCH="${ARCH}" -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S})" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" - enewgroup vboxusers -} - -src_prepare() { - if kernel_is -ge 2 6 33 ; then - # evil patch for new kernels - header moved - grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' - fi -} - -src_install() { - linux-mod_src_install -} - -pkg_postinst() { - linux-mod_pkg_postinst - elog "Starting with the 3.x release new kernel modules were added," - elog "be sure to load all the needed modules." - elog "" - elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:" - if has_version sys-apps/openrc; then - elog "/etc/conf.d/modules" - else - elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" - fi -} diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.1.0.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.0.ebuild deleted file mode 100644 index 035306eb5ba7..000000000000 --- a/app-emulation/virtualbox-modules/virtualbox-modules-4.1.0.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.1.0.ebuild,v 1.1 2011/07/19 22:24:49 polynomial-c Exp $ - -# XXX: the tarball here is just the kernel modules split out of the binary -# package that comes from virtualbox-bin - -EAPI=2 - -inherit eutils linux-mod - -MY_P=vbox-kernel-module-src-${PV} -DESCRIPTION="Kernel Modules for Virtualbox" -HOMEPAGE="http://www.virtualbox.org/" -SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="!=app-emulation/virtualbox-9999" - -S=${WORKDIR} - -BUILD_TARGETS="all" -BUILD_TARGET_ARCH="${ARCH}" -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" - enewgroup vboxusers -} - -src_prepare() { - if kernel_is -ge 2 6 33 ; then - # evil patch for new kernels - header moved - grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' - fi -} - -src_install() { - linux-mod_src_install -} - -pkg_postinst() { - linux-mod_pkg_postinst - elog "Starting with the 3.x release new kernel modules were added," - elog "be sure to load all the needed modules." - elog "" - elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:" - if has_version sys-apps/openrc; then - elog "/etc/conf.d/modules" - else - elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" - fi -} diff --git a/app-emulation/virtualbox/ChangeLog b/app-emulation/virtualbox/ChangeLog index 254110520909..d9851a42b0f7 100644 --- a/app-emulation/virtualbox/ChangeLog +++ b/app-emulation/virtualbox/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-emulation/virtualbox # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.80 2011/07/25 08:34:19 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.81 2011/08/09 10:45:15 polynomial-c Exp $ + + 09 Aug 2011; Lars Wendler <polynomial-c@gentoo.org> + -virtualbox-3.2.12-r4.ebuild, -files/virtualbox-ose-3-localconfig, + -files/virtualbox-4.0.4-gcc46.patch, -virtualbox-4.0.10.ebuild, + -files/virtualbox-4-vnc.patch, -files/virtualbox-ose-asneeded.patch, + -files/virtualbox-ose-vnc.patch: + Removed old versions. 25 Jul 2011; Lars Wendler <polynomial-c@gentoo.org> virtualbox-4.0.10.ebuild, virtualbox-4.0.12.ebuild, virtualbox-4.1.0.ebuild: diff --git a/app-emulation/virtualbox/files/virtualbox-4-vnc.patch b/app-emulation/virtualbox/files/virtualbox-4-vnc.patch deleted file mode 100644 index 76e2c68524b7..000000000000 --- a/app-emulation/virtualbox/files/virtualbox-4-vnc.patch +++ /dev/null @@ -1,101 +0,0 @@ ---- configure.old 2011-02-18 20:22:18.879463002 +0100 -+++ configure 2011-02-18 20:30:22.355463011 +0100 -@@ -88,6 +88,7 @@ - WITH_OPENGL=1 - WITH_HARDENING=1 - WITH_VDE=0 -+WITH_VNC=0 - WITH_DOCS=1 - BUILD_LIBXML2= - BUILD_LIBXSLT= -@@ -123,6 +124,8 @@ - MESA="-lGL" - INCZ="" - LIBZ="-lz" -+INCVNCSERVER="" -+LIBVNCSERVER="-lvncserver" - CXX_FLAGS="" - if [ "$OS" = "freebsd" ]; then - INCCURL="-I/usr/local/include" -@@ -956,6 +959,47 @@ - } - - # -+# Check for libvncserver, needed for VNC in OSE -+# -+check_vncserver() -+{ -+ test_header libvncserver -+ cat > $ODIR.tmp_src.cc <<EOF -+#include <cstdio> -+#include <rfb/rfbconfig.h> -+ -+extern "C" int main() -+{ -+ const char* v=LIBVNCSERVER_VERSION; -+ unsigned int major = 0, minor = 0, micro = 0; -+ -+ for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0'; -+ if (*v == '.') v++; -+ for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0'; -+ if (*v == '.') v++; -+ for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0'; -+ -+ printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION); -+ if (major*10000 + minor*100 + micro >= 907) -+ { -+ printf(", OK.\n"); -+ return 0; -+ } -+ else -+ { -+ printf(", expected version 0.9.7 or higher\n"); -+ return 1; -+ } -+} -+EOF -+ if test_compile "$LIBVNCSERVER $INCVNCSERVER" libvncserver libvncserver; then -+ if test_execute; then -+ cnf_append "VBOX_WITH_VNC" "1" -+ fi -+ fi -+} -+ -+# - # Check for libcurl, needed by S3 - # - check_curl() -@@ -2115,6 +2159,7 @@ - [ $WITH_KMODS -eq 1 ] && echo " --disable-kmods don't build Linux kernel modules (host and guest)" - [ $WITH_OPENGL -eq 1 ] && echo " --disable-opengl disable OpenGL support (2D & 3D)" - [ $WITH_GSOAP -eq 0 ] && echo " --enable-webservice enable the webservice stuff" -+[ $OSE -eq 1 ] && echo " --enable-vnc enable the VNC server" - [ $WITH_DOCS -eq 1 ] && echo " --disable-docs don't build the documentation" - [ "$OS" = "linux" -o "$OS" = "freebsd" ] && echo " --enable-vde enable VDE networking" - cat << EOF -@@ -2280,6 +2325,9 @@ - --enable-webservice) - [ $WITH_GSOAP -eq 0 ] && WITH_GSOAP=1 - ;; -+ --enable-vnc) -+ WITH_VNC=1 -+ ;; - --disable-hardening) - WITH_HARDENING=0 - ;; -@@ -2553,6 +2601,15 @@ - cnf_append "VBOX_WITH_DOCS_PACKING" "" - fi - -+# VNC server support -+if [ $OSE -ge 1 ]; then -+ if [ $WITH_VNC = 1 ]; then -+ check_vncserver -+ else -+ cnf_append "VBOX_WITH_VNC" "" -+ fi -+fi -+ - # success! - echo - echo "Successfully generated '$CNF' and '$ENV'." diff --git a/app-emulation/virtualbox/files/virtualbox-4.0.4-gcc46.patch b/app-emulation/virtualbox/files/virtualbox-4.0.4-gcc46.patch deleted file mode 100644 index a9f8077e69e5..000000000000 --- a/app-emulation/virtualbox/files/virtualbox-4.0.4-gcc46.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- VirtualBox-4.0.4_OSE.orig/configure 2011-02-18 00:30:48.000000000 +0800 -+++ VirtualBox-4.0.4_OSE.orig/configure 2011-04-10 13:37:42.513743178 +0800 -@@ -409,9 +409,9 @@ check_gcc() - elif [ $cc_maj -lt 3 \ - -o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \ - -o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \ -- -o \( $cc_maj -eq 4 -a $cc_min -gt 5 \) \ -+ -o \( $cc_maj -eq 4 -a $cc_min -gt 6 \) \ - -o $cc_maj -gt 4 ]; then -- log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<5" -+ log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<=6" - fail really - else - log_success "found version $cc_ver" diff --git a/app-emulation/virtualbox/files/virtualbox-ose-3-localconfig b/app-emulation/virtualbox/files/virtualbox-ose-3-localconfig deleted file mode 100644 index 5138d9252698..000000000000 --- a/app-emulation/virtualbox/files/virtualbox-ose-3-localconfig +++ /dev/null @@ -1,45 +0,0 @@ -# -*- Makefile -*- -# -# Overwrite some default kBuild settings -# - -# -# Copyright (C) 2006-2008 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 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. -# - -# shut up wine complaining about unknown locale -EXEC_X86_WIN32 := wine - -# don't build testcases to save time, they are not needed for the package -VBOX_WITH_TESTCASES := -VBOX_WITH_TESTSUITE := -VBOX_DOCBOOK_WITH_LATEX := 1 - -KBUILD_MSG_STYLE := brief - -## paths, origin, hardening -VBOX_WITH_HARDENING := 1 -VBOX_WITH_ORIGIN := -VBOX_PATH_APP_PRIVATE_ARCH := /usr/MY_LIBDIR/virtualbox -VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH) -VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH) -VBOX_PATH_APP_PRIVATE := /usr/share/virtualbox -VBOX_PATH_APP_DOCS = $(VBOX_PATH_PACKAGE_DOCS) - -## don't build unwanted/splitted stuff -VBOX_WITHOUT_ADDITIONS := 1 -VBOX_WITH_VBOXDRV := -VBOX_WITH_VBOXBFE := -VBOX_WITH_KCHMVIEWER := - -## don't build with -Werror -VBOX_WITH_WARNINGS_AS_ERRORS := - diff --git a/app-emulation/virtualbox/files/virtualbox-ose-asneeded.patch b/app-emulation/virtualbox/files/virtualbox-ose-asneeded.patch deleted file mode 100644 index 2eee12598042..000000000000 --- a/app-emulation/virtualbox/files/virtualbox-ose-asneeded.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- src/libs/xpcom18a4/Makefile.kmk -+++ src/libs/xpcom18a4/Makefile.kmk -@@ -469,9 +469,10 @@ - libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags) - libIDL_config_libs := $(shell $(VBOX_LIBIDL_CONFIG) --libs) - xpidl_CFLAGS = \ -- $(libIDL_config_cflags) -- xpidl_LDFLAGS = \ -- $(libIDL_config_libs) -+ $(shell pkg-config --cflags libIDL-2.0) -+ xpidl_LDFLAGS = $(shell pkg-config --libs-only-L libIDL-2.0) -+ xpidl_LIBS.linux = $(shell pkg-config --libs-only-l libIDL-2.0 | sed -e 's/-l//g') -+ - endif - - # diff --git a/app-emulation/virtualbox/files/virtualbox-ose-vnc.patch b/app-emulation/virtualbox/files/virtualbox-ose-vnc.patch deleted file mode 100644 index b8a2088e27f9..000000000000 --- a/app-emulation/virtualbox/files/virtualbox-ose-vnc.patch +++ /dev/null @@ -1,101 +0,0 @@ ---- configure.orig 2010-11-20 20:35:43.399739771 +0100 -+++ configure 2010-11-20 22:04:15.523490599 +0100 -@@ -87,6 +87,7 @@ - WITH_OPENGL=1 - WITH_HARDENING=1 - WITH_VDE=0 -+WITH_VNC=0 - BUILD_LIBXML2= - BUILD_LIBXSLT= - BUILD_LIBCURL= -@@ -122,6 +123,8 @@ - LIBZ="-lz" - INCPNG="" - LIBPNG="-lpng" -+INCVNCSERVER="" -+LIBVNCSERVER="-lvncserver" - CXX_FLAGS="" - if [ "$OS" = "freebsd" ]; then - INCCURL="-I/usr/local/include" -@@ -949,6 +952,47 @@ - } - - # -+# Check for libvncserver, needed for VNC in OSE -+# -+check_vncserver() -+{ -+ test_header libvncserver -+ cat > $ODIR.tmp_src.cc <<EOF -+#include <cstdio> -+#include <rfb/rfbconfig.h> -+ -+extern "C" int main() -+{ -+ const char* v=LIBVNCSERVER_VERSION; -+ unsigned int major = 0, minor = 0, micro = 0; -+ -+ for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0'; -+ if (*v == '.') v++; -+ for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0'; -+ if (*v == '.') v++; -+ for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0'; -+ -+ printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION); -+ if (major*10000 + minor*100 + micro >= 907) -+ { -+ printf(", OK.\n"); -+ return 0; -+ } -+ else -+ { -+ printf(", expected version 0.9.7 or higher\n"); -+ return 1; -+ } -+} -+EOF -+ if test_compile "$LIBVNCSERVER $INCVNCSERVER" libvncserver libvncserver; then -+ if test_execute; then -+ cnf_append "VBOX_WITH_VNC" "1" -+ fi -+ fi -+} -+ -+# - # Check for libcurl, needed by S3 - # - check_curl() -@@ -2063,6 +2107,7 @@ - [ $WITH_KMODS -eq 1 ] && echo " --disable-kmods don't build Linux kernel modules (host and guest)" - [ $WITH_OPENGL -eq 1 ] && echo " --disable-opengl disable OpenGL support (2D & 3D)" - [ $WITH_GSOAP -eq 0 ] && echo " --enable-webservice enable the webservice stuff" -+[ $OSE -eq 1 ] && echo " --enable-vnc enable the VNC server" - [ "$OS" = "linux" -o "$OS" = "freebsd" ] && echo " --enable-vde enable VDE networking" - cat << EOF - --disable-hardening don't be strict about /dev/vboxdrv access -@@ -2224,6 +2269,9 @@ - --enable-webservice) - [ $WITH_GSOAP -eq 0 ] && WITH_GSOAP=1 - ;; -+ --enable-vnc) -+ WITH_VNC=1 -+ ;; - --disable-hardening) - WITH_HARDENING=0 - ;; -@@ -2484,6 +2532,15 @@ - fi - fi - -+# VNC server support -+if [ $OSE -ge 1 ]; then -+ if [ $WITH_VNC = 1 ]; then -+ check_vncserver -+ else -+ cnf_append "VBOX_WITH_VNC" "" -+ fi -+fi -+ - # success! - echo - echo "Successfully generated '$CNF' and '$ENV'." diff --git a/app-emulation/virtualbox/virtualbox-3.2.12-r4.ebuild b/app-emulation/virtualbox/virtualbox-3.2.12-r4.ebuild deleted file mode 100644 index 92dc4582d369..000000000000 --- a/app-emulation/virtualbox/virtualbox-3.2.12-r4.ebuild +++ /dev/null @@ -1,302 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-3.2.12-r4.ebuild,v 1.5 2011/02/03 07:50:14 tomka Exp $ - -EAPI=2 - -inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4-r2 toolchain-funcs - -if [[ ${PV} == "9999" ]] ; then - # XXX: should finish merging the -9999 ebuild into this one ... - ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk" - inherit linux-mod subversion -else - MY_P=VirtualBox-${PV}-OSE - SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" - S=${WORKDIR}/${MY_P/-OSE/_OSE} -fi - -DESCRIPTION="Software family of powerful x86 virtualization" -HOMEPAGE="http://www.virtualbox.org/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="+additions alsa headless pulseaudio +opengl python +qt4 sdk vboxwebsrv vnc" - -RDEPEND="!app-emulation/virtualbox-bin - ~app-emulation/virtualbox-modules-${PV} - dev-libs/libIDL - >=dev-libs/libxslt-1.1.19 - net-misc/curl - !headless? ( - qt4? ( - x11-libs/qt-gui:4 - x11-libs/qt-core:4 - opengl? ( x11-libs/qt-opengl:4 ) - ) - opengl? ( virtual/opengl media-libs/freeglut ) - x11-libs/libXcursor - media-libs/libsdl[X,video] - x11-libs/libXt - ) - headless? ( x11-libs/libX11 ) - vnc? ( >=net-libs/libvncserver-0.9.7 )" -DEPEND="${RDEPEND} - >=dev-util/kbuild-0.1.5-r1 - >=dev-lang/yasm-0.6.2 - sys-devel/bin86 - sys-devel/dev86 - sys-power/iasl - media-libs/libpng - sys-libs/libcap - dev-util/pkgconfig - alsa? ( >=media-libs/alsa-lib-1.0.13 ) - !headless? ( x11-libs/libXinerama ) - pulseaudio? ( media-sound/pulseaudio ) - python? ( >=dev-lang/python-2.3[threads] ) - vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )" -PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )" - -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so - usr/lib/virtualbox-ose/VBoxSDL.so - usr/lib/virtualbox-ose/VBoxSharedFolders.so - usr/lib/virtualbox-ose/VBoxDD2.so - usr/lib/virtualbox-ose/VBoxOGLrenderspu.so - usr/lib/virtualbox-ose/VBoxPython.so - usr/lib/virtualbox-ose/VBoxDD.so - usr/lib/virtualbox-ose/VBoxDDU.so - usr/lib/virtualbox-ose/VBoxREM64.so - usr/lib/virtualbox-ose/VBoxSharedClipboard.so - usr/lib/virtualbox-ose/VBoxHeadless.so - usr/lib/virtualbox-ose/VBoxRT.so - usr/lib/virtualbox-ose/VBoxREM.so - usr/lib/virtualbox-ose/VBoxSettings.so - usr/lib/virtualbox-ose/VBoxKeyboard.so - usr/lib/virtualbox-ose/VBoxSharedCrOpenGL.so - usr/lib/virtualbox-ose/VBoxVMM.so - usr/lib/virtualbox-ose/VirtualBox.so - usr/lib/virtualbox-ose/VBoxOGLhosterrorspu.so - usr/lib/virtualbox-ose/components/VBoxC.so - usr/lib/virtualbox-ose/components/VBoxSVCM.so - usr/lib/virtualbox-ose/components/VBoxDDU.so - usr/lib/virtualbox-ose/components/VBoxRT.so - usr/lib/virtualbox-ose/components/VBoxREM.so - usr/lib/virtualbox-ose/components/VBoxVMM.so - usr/lib/virtualbox-ose/VBoxREM32.so - usr/lib/virtualbox-ose/VBoxPython2_4.so - usr/lib/virtualbox-ose/VBoxPython2_5.so - usr/lib/virtualbox-ose/VBoxPython2_6.so - usr/lib/virtualbox-ose/VBoxPython2_7.so - usr/lib/virtualbox-ose/VBoxXPCOMC.so - usr/lib/virtualbox-ose/VBoxOGLhostcrutil.so - usr/lib/virtualbox-ose/VBoxNetDHCP.so" - -pkg_setup() { - if ! use headless && ! use qt4 ; then - einfo "No USE=\"qt4\" selected, this build will not include" - einfo "any Qt frontend." - elif use headless && use qt4 ; then - einfo "You selected USE=\"headless qt4\", defaulting to" - einfo "USE=\"headless\", this build will not include any X11/Qt frontend." - fi - - if ! use opengl ; then - einfo "No USE=\"opengl\" selected, this build will lack" - einfo "the OpenGL feature." - fi -} - -src_prepare() { - # Remove shipped binaries (kBuild,yasm), see bug #232775 - rm -rf kBuild/bin tools - - # Disable things unused or split into separate ebuilds - sed -e "s/MY_LIBDIR/$(get_libdir)/" \ - "${FILESDIR}"/${PN}-ose-3-localconfig > LocalConfig.kmk || die - - # unset useless/problematic mesa checks in configure - epatch "${FILESDIR}/${PN}-ose-3.2.8-mesa-check.patch" - - # fix build with --as-needed (bug #249295) - epatch "${FILESDIR}/${PN}-ose-asneeded.patch" - - # add the --enable-vnc option to configure script (bug #348204) - epatch "${FILESDIR}/${PN}-ose-vnc.patch" -} - -src_configure() { - local myconf - use alsa || myconf+=" --disable-alsa" - use opengl || myconf+=" --disable-opengl" - use pulseaudio || myconf+=" --disable-pulse" - use python || myconf+=" --disable-python" - use vboxwebsrv && myconf+=" --enable-webservice" - use vnc && myconf+=" --enable-vnc" - if ! use headless ; then - use qt4 || myconf+=" --disable-qt4" - else - myconf+=" --build-headless --disable-opengl" - fi - - # bug #339914 - #gcc-spec-pie && append-flags "-nopie" - - # not an autoconf script - ./configure \ - --with-gcc="$(tc-getCC)" \ - --with-g++="$(tc-getCXX)" \ - --disable-kmods \ - --disable-dbus \ - ${myconf} \ - || die "configure failed" -} - -src_compile() { - 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}" \ - TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ - all || die "kmk failed" -} - -src_install() { - cd "${S}"/out/linux.${ARCH}/release/bin || die - - # Create configuration files - insinto /etc/vbox - newins "${FILESDIR}/${PN}-ose-3-config" vbox.cfg - - # Set the right libdir - sed -i \ - -e "s/MY_LIBDIR/$(get_libdir)/" \ - "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" - - # Symlink binaries to the shipped wrapper - exeinto /usr/$(get_libdir)/${PN} - newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox - fperms 0750 /usr/$(get_libdir)/${PN}/VBox - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless - dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl - - # Install binaries and libraries - insinto /usr/$(get_libdir)/${PN} - doins -r components || die - - if use sdk ; then - doins -r sdk || die - fi - - if use vboxwebsrv ; then - doins vboxwebsrv || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv - fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv - fi - - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP} *so *r0 *gc ; do - doins $each || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} - fperms 0750 /usr/$(get_libdir)/${PN}/${each} - done - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case.. - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP - # bug #335500 - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP} ; do - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} - done - - if ! use headless ; then - for each in VBox{SDL,Headless} ; do - doins $each || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} - fperms 4750 /usr/$(get_libdir)/${PN}/${each} - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} - done - - if use opengl && use qt4 ; then - doins VBoxTestOGL || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL - fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxTestOGL - fi - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL - - if use qt4 ; then - doins VirtualBox || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox - fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox - fi - - newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop - else - doins VBoxHeadless || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless - fi - - # Install EFI Firmware files (bug #320757) - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die - for fwfile in VBoxEFI{32,64}.fd ; do - doins ${fwfile} || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die - done - popd &>/dev/null || die - - insinto /usr/share/${PN} - if ! use headless && use qt4 ; then - doins -r nls - fi - - # set an env-variable for 3rd party tools - echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox" - doenvd "${T}/90virtualbox" -} - -pkg_postinst() { - fdo-mime_desktop_database_update - if ! use headless && use qt4 ; then - elog "To launch VirtualBox just type: \"VirtualBox\"" - fi - elog "You must be in the vboxusers group to use VirtualBox." - elog "" - elog "The latest user manual is available for download at:" - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" - elog "" - elog "For advanced networking setups you should emerge:" - elog "net-misc/bridge-utils and sys-apps/usermode-utilities" - elog "" - elog "IMPORTANT!" - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run" - elog "\"env-update\" as root and logout and relogin as the user you wish" - elog "to run ${PN} as." - elog "" - elog "Please visit http://www.virtualbox.org/wiki/Editions for" - elog "an overview about the different features of ${PN}" - elog "and virtualbox-bin" -} - -pkg_postrm() { - fdo-mime_desktop_database_update -} diff --git a/app-emulation/virtualbox/virtualbox-4.0.10.ebuild b/app-emulation/virtualbox/virtualbox-4.0.10.ebuild deleted file mode 100644 index 1a15af17ca66..000000000000 --- a/app-emulation/virtualbox/virtualbox-4.0.10.ebuild +++ /dev/null @@ -1,367 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.10.ebuild,v 1.3 2011/07/25 08:25:48 polynomial-c Exp $ - -EAPI=4 - -inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4-r2 toolchain-funcs java-pkg-opt-2 - -if [[ ${PV} == "9999" ]] ; then - # XXX: should finish merging the -9999 ebuild into this one ... - ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk" - inherit linux-mod subversion -else - MY_P=VirtualBox-${PV} - SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" - S="${WORKDIR}/${MY_P}_OSE" -fi - -DESCRIPTION="Software family of powerful x86 virtualization" -HOMEPAGE="http://www.virtualbox.org/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+additions alsa doc extensions headless java pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" - -RDEPEND="!app-emulation/virtualbox-bin - ~app-emulation/virtualbox-modules-${PV} - dev-libs/libIDL - >=dev-libs/libxslt-1.1.19 - net-misc/curl - dev-libs/openssl - dev-libs/libxml2 - sys-libs/zlib - !headless? ( - qt4? ( - x11-libs/qt-gui:4 - x11-libs/qt-core:4 - opengl? ( x11-libs/qt-opengl:4 ) - x11-libs/libXinerama - ) - opengl? ( virtual/opengl media-libs/freeglut ) - x11-libs/libX11 - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXmu - x11-libs/libXt - media-libs/libsdl[X,video] - ) - vnc? ( >=net-libs/libvncserver-0.9.7 ) - java? ( >=virtual/jre-1.5 )" -DEPEND="${RDEPEND} - >=dev-util/kbuild-0.1.5-r1 - >=dev-lang/yasm-0.6.2 - sys-devel/bin86 - sys-devel/dev86 - sys-power/iasl - media-libs/libpng - sys-libs/pam - sys-libs/libcap - doc? ( - dev-texlive/texlive-basic - dev-texlive/texlive-latex - dev-texlive/texlive-latexrecommended - dev-texlive/texlive-latexextra - dev-texlive/texlive-fontsrecommended - dev-texlive/texlive-fontsextra - ) - java? ( >=virtual/jdk-1.5 ) - dev-util/pkgconfig - alsa? ( >=media-libs/alsa-lib-1.0.13 ) - !headless? ( x11-libs/libXinerama ) - pulseaudio? ( media-sound/pulseaudio ) - python? ( >=dev-lang/python-2.3[threads] ) - vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )" -PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} ) - extensions? ( ~app-emulation/virtualbox-extpack-oracle-${PV} )" - -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so - usr/lib/virtualbox/VBoxSDL.so - usr/lib/virtualbox/VBoxSharedFolders.so - usr/lib/virtualbox/VBoxDD2.so - usr/lib/virtualbox/VBoxOGLrenderspu.so - usr/lib/virtualbox/VBoxPython.so - usr/lib/virtualbox/VBoxDD.so - usr/lib/virtualbox/VBoxDDU.so - usr/lib/virtualbox/VBoxREM64.so - usr/lib/virtualbox/VBoxSharedClipboard.so - usr/lib/virtualbox/VBoxHeadless.so - usr/lib/virtualbox/VBoxRT.so - usr/lib/virtualbox/VBoxREM.so - usr/lib/virtualbox/VBoxSettings.so - usr/lib/virtualbox/VBoxKeyboard.so - usr/lib/virtualbox/VBoxSharedCrOpenGL.so - usr/lib/virtualbox/VBoxVMM.so - usr/lib/virtualbox/VirtualBox.so - usr/lib/virtualbox/VBoxOGLhosterrorspu.so - usr/lib/virtualbox/components/VBoxC.so - usr/lib/virtualbox/components/VBoxSVCM.so - usr/lib/virtualbox/components/VBoxDDU.so - usr/lib/virtualbox/components/VBoxRT.so - usr/lib/virtualbox/components/VBoxREM.so - usr/lib/virtualbox/components/VBoxVMM.so - usr/lib/virtualbox/VBoxREM32.so - usr/lib/virtualbox/VBoxPython2_4.so - usr/lib/virtualbox/VBoxPython2_5.so - usr/lib/virtualbox/VBoxPython2_6.so - usr/lib/virtualbox/VBoxPython2_7.so - usr/lib/virtualbox/VBoxXPCOMC.so - usr/lib/virtualbox/VBoxOGLhostcrutil.so - usr/lib/virtualbox/VBoxNetDHCP.so" - -REQUIRED_USE="java? ( sdk ) python? ( sdk )" - -pkg_setup() { - if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv -E "hardenednopie|vanilla"; then - eerror "The PIE feature provided by the \"hardened\" compiler is incompatible with ${PF}." - eerror "You must use gcc-config to select a profile without this feature. You may" - eerror "choose either \"hardenednopie\", \"hardenednopiessp\" or \"vanilla\" profile;" - eerror "however, \"hardenednopie\" is preferred because it gives the most hardening." - eerror "Remember to run \"source /etc/profile\" before continuing. See bug #339914." - die - fi - - if ! use headless && ! use qt4 ; then - einfo "No USE=\"qt4\" selected, this build will not include" - einfo "any Qt frontend." - elif use headless && use qt4 ; then - einfo "You selected USE=\"headless qt4\", defaulting to" - einfo "USE=\"headless\", this build will not include any X11/Qt frontend." - fi - - if ! use opengl ; then - einfo "No USE=\"opengl\" selected, this build will lack" - einfo "the OpenGL feature." - fi - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - # Remove shipped binaries (kBuild,yasm), see bug #232775 - rm -rf kBuild/bin tools - - # Disable things unused or split into separate ebuilds - sed -e "s/MY_LIBDIR/$(get_libdir)/" \ - "${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die - - # unset useless/problematic checks in configure - epatch "${FILESDIR}/${PN}-ose-3.2.8-mesa-check.patch" \ - "${FILESDIR}/${PN}-4-makeself-check.patch" \ - "${FILESDIR}/${PN}-4-mkisofs-check.patch" - - # fix build with --as-needed (bug #249295 and bug #350907) - epatch "${FILESDIR}/${PN}-4-asneeded.patch" - - # Respect LDFLAGS - sed -e "s/_LDFLAGS\.${ARCH}*.*=/& ${LDFLAGS}/g" \ - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die - - # We still want to use ${HOME}/.VirtualBox/Machines as machines dir. - epatch "${FILESDIR}/${PN}-4.0.2-restore_old_machines_dir.patch" - - # add correct java path - if use java ; then - sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \ - -i "${S}"/Config.kmk || die - fi - java-pkg-opt-2_src_prepare -} - -src_configure() { - local myconf - use alsa || myconf+=" --disable-alsa" - use opengl || myconf+=" --disable-opengl" - use pulseaudio || myconf+=" --disable-pulse" - use python || myconf+=" --disable-python" - use java || myconf+=" --disable-java" - use vboxwebsrv && myconf+=" --enable-webservice" - use vnc && myconf+=" --enable-vnc" - use doc || myconf+=" --disable-docs" - if ! use headless ; then - use qt4 || myconf+=" --disable-qt4" - else - myconf+=" --build-headless --disable-opengl" - fi - # not an autoconf script - ./configure \ - --with-gcc="$(tc-getCC)" \ - --with-g++="$(tc-getCXX)" \ - --disable-kmods \ - --disable-dbus \ - ${myconf} \ - || die "configure failed" -} - -src_compile() { - source ./env.sh - - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) - # and strip all flags - # strip-flags - - MAKE="kmk" emake \ - VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'-Gentoo \ - 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}" \ - VBOX_GCC_OPT="${CXXFLAGS}" \ - TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ - all || die "kmk failed" -} - -src_install() { - cd "${S}"/out/linux.${ARCH}/release/bin || die - - # Create configuration files - insinto /etc/vbox - newins "${FILESDIR}/${PN}-4-config" vbox.cfg - - # Set the right libdir - sed -i \ - -e "s/MY_LIBDIR/$(get_libdir)/" \ - "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" - - # Symlink binaries to the shipped wrapper - exeinto /usr/$(get_libdir)/${PN} - newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox - fperms 0750 /usr/$(get_libdir)/${PN}/VBox - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless - dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl - - # Install binaries and libraries - insinto /usr/$(get_libdir)/${PN} - doins -r components || die - - if use sdk ; then - doins -r sdk || die - fi - - if use vboxwebsrv ; then - doins vboxwebsrv || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv - fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv - fi - - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,ExtPackHelperApp} *so *r0 *gc ; do - doins $each || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} - fperms 0750 /usr/$(get_libdir)/${PN}/${each} - done - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case.. - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP - - if ! use headless ; then - for each in VBox{SDL,Headless} ; do - doins $each || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} - fperms 4750 /usr/$(get_libdir)/${PN}/${each} - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} - done - - if use opengl && use qt4 ; then - doins VBoxTestOGL || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL - fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL - fi - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL - - if use qt4 ; then - doins VirtualBox || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox - fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox - - dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox - - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop - fi - - newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png - else - doins VBoxHeadless || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless - fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless - pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless - fi - - # Install EFI Firmware files (bug #320757) - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die - for fwfile in VBoxEFI{32,64}.fd ; do - doins ${fwfile} || die - fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die - done - popd &>/dev/null || die - - # New way of handling USB device nodes for VBox (bug #356215) - insinto /lib/udev - doins VBoxCreateUSBNode.sh - fowners root:vboxusers /lib/udev/VBoxCreateUSBNode.sh - fperms 0750 /lib/udev/VBoxCreateUSBNode.sh - insinto /lib/udev/rules.d - doins "${FILESDIR}"/10-virtualbox.rules - - insinto /usr/share/${PN} - if ! use headless && use qt4 ; then - doins -r nls - fi - - # VRDPAuth only works with this (bug #351949) - dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so - - # set an env-variable for 3rd party tools - echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox" - doenvd "${T}/90virtualbox" - - if use java ; then - java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar" - java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so" - fi -} - -pkg_postinst() { - fdo-mime_desktop_database_update - - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb - - if ! use headless && use qt4 ; then - elog "To launch VirtualBox just type: \"VirtualBox\"." - fi - elog "You must be in the vboxusers group to use VirtualBox." - elog "" - elog "The latest user manual is available for download at:" - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" - elog "" - elog "For advanced networking setups you should emerge:" - elog "net-misc/bridge-utils and sys-apps/usermode-utilities" - elog "" - elog "IMPORTANT!" - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run" - elog "\"env-update\" as root and logout and relogin as the user you wish" - elog "to run ${PN} as." - elog "" - elog "Starting with version 4.0.0, ${PN} has USB-1 support." - elog "For PXE-boot ability and VRDP support please emerge" - elog "app-emulation/virtualbox-extpack-oracle package." - elog "Unfortunately USB2 support is still not available." - elog "See https://bugs.gentoo.org/364717 for the reasons." - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then - elog "" - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\"" - elog "or else USB in ${PN} won't work." - fi -} - -pkg_postrm() { - fdo-mime_desktop_database_update -} |