diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-10-24 04:44:29 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-10-24 04:44:29 +0000 |
commit | 99a9668416ff0a753ffa66b377767ef650ef5546 (patch) | |
tree | caddaff69b166a243228c092998ec0a08be3253b /app-emulation/virtualbox-bin | |
parent | Disable PaX memory protection only when USE=orc (bug #421579, requested by Ma... (diff) | |
download | historical-99a9668416ff0a753ffa66b377767ef650ef5546.tar.gz historical-99a9668416ff0a753ffa66b377767ef650ef5546.tar.bz2 historical-99a9668416ff0a753ffa66b377767ef650ef5546.zip |
Bump #439366
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/virtualbox-bin')
-rw-r--r-- | app-emulation/virtualbox-bin/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/virtualbox-bin/Manifest | 7 | ||||
-rw-r--r-- | app-emulation/virtualbox-bin/virtualbox-bin-4.2.2.ebuild | 346 |
3 files changed, 358 insertions, 2 deletions
diff --git a/app-emulation/virtualbox-bin/ChangeLog b/app-emulation/virtualbox-bin/ChangeLog index b1289c7f0fc3..a1e3b8bb4c71 100644 --- a/app-emulation/virtualbox-bin/ChangeLog +++ b/app-emulation/virtualbox-bin/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/virtualbox-bin # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.141 2012/09/18 05:33:38 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.142 2012/10/24 04:41:40 patrick Exp $ + +*virtualbox-bin-4.2.2 (24 Oct 2012) + + 24 Oct 2012; Patrick Lauer <patrick@gentoo.org> +virtualbox-bin-4.2.2.ebuild: + Bump #439366 18 Sep 2012; Lars Wendler <polynomial-c@gentoo.org> -virtualbox-bin-4.1.12.ebuild, -virtualbox-bin-4.1.18.ebuild: diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest index 55e3206a26c1..16d147e48d1f 100644 --- a/app-emulation/virtualbox-bin/Manifest +++ b/app-emulation/virtualbox-bin/Manifest @@ -6,13 +6,18 @@ AUX virtualbox-bin-config 28 SHA256 5326f7abdd1a7c8a8a44fd4ab269977ec115286059fc AUX virtualbox-bin.desktop-2 205 SHA256 5dd74e2f4d1717633aa44e909305c6995a20f03a5f1271fcd1c92b0803ab18ca SHA512 7e9555aaa317e1cb551e5ff591b9d20bbb76a738f9e923c13d206e02c1e6bfc8f4eb17b498b235ac0aa2062e4acbd5f24d2522de2da3cff2e12c264875bc476d WHIRLPOOL 134cecd8c614f6c1b63a929bb1f1a3460f8aa3c1308b17e970c80f7b47c0c9bc78eb74c24c9298c7ed43c66134fb69ebb1f16d4f3226b3d2528134009b0bcb07 DIST Oracle_VM_VirtualBox_Extension_Pack-4.1.22-80657.tar.gz 10778079 SHA256 837ea30834b7c80e2ae114bb62becac4745ad2878658239cc8eb13ff54cea75f SHA512 1dc1aa1d57a51b05e01004cabbdd40b2b5ff410d3f514cb499c50d847f8830610108bde225a6156a0d9c0c03a7ab96c4d767a7c7a6a5616191cbc1fb46486cca WHIRLPOOL 6758b41ac4d2169b618fbaff6f759ba0b5a3595c77025f61c74ef57ee180ba49c31a9d7ce2b65d37de3e921c2d734878a6deaa00741603e3d5717d203510838d DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.tar.gz 10828566 SHA256 18055795fa95d3a49ac00fd7e5009113d871a0c87a5e0f864f88c4eeb3222218 SHA512 ef637feea9041bcd68e5937a5bcc092b99862e2b9baa95263630f5ae2c1999c0cd2522b83707fb462d7a32af6ab1dcc2bf9275fd15ac94947cc5189b92c3b64e WHIRLPOOL b0696b319dff29a050ca5520e39625fb0d956e45309a2c773f1b77ad2fab83f9d7fbef4adb3a27be9ddd50068a45e4df155013cf7b6c879a9caa9e34ecf8a7aa +DIST Oracle_VM_VirtualBox_Extension_Pack-4.2.2-81494.tar.gz 11008309 SHA256 2a0824a7f6b93842feb13fe15de16a1bb33c9221116d62ce759eed6878169c2b SHA512 1f1ef106959d342303abbc5e15f07e63ce01335c3f05d525e1d9ba1e21309f2d51bf855b3f7bb0dac62a1d9b57bb8422425a45c313e232795b2e342f0c9ffe7e WHIRLPOOL 071053f6337da7a749c49c945d383b852e6d8d669e59c36e528966d278c2f99b58760977d6c59eaa41965472a2a787268492dfdea9f8321ef4370cdff2a37359 DIST VirtualBox-4.1.22-80657-Linux_amd64.run 78693841 SHA256 d53a5cc2d1b9431d4f9443462b84549678e943be1d8b4a714d7844c741507c76 SHA512 cdd2920099c0c0349bc6750ab7cad67f23cfba109db62297ad8bede1e7a5658781a29ea1111c8ae1b07cf1eeaf2394baf419be1b9b174575f3c10c13aa9d9b68 WHIRLPOOL c532b3b48c9a0b8057c65db4cbd6e31f17e93a88a4bb5842f9b8c821e8f102d4e2b1bcbfd081ec6a1ecc95b697d8f7914542e8aefcebeb9b2137ad8edf267696 DIST VirtualBox-4.1.22-80657-Linux_x86.run 78632398 SHA256 a18a2b7723bc8c325149b5581ae36208211c7d8651269516d366db9cdafcd0ae SHA512 0f9dd4fc25828cec3ac3d2961b925a57dd88e0af1c3cf75c9199428b4090790ebd439015700b63def6c53b5acc94135e7766f36f29d6befcb03339d563fac054 WHIRLPOOL 76d06e577f2ee3d9ec0eea0b9800b618af97205ac9b036fe3f1c73b7ecccfbf6f57e49ddc224e9963eb048c5fe6e88cfedf9743b8af2df97137feb03e89fac36 DIST VirtualBox-4.2.0-80737-Linux_amd64.run 80342468 SHA256 04030998f15b656e9b76064cde3e6cb43c5a41b1e25e700f123f5a629578fe5e SHA512 12230b1910cbf7d3ef7942fa262d96caeb0a5d97cc21b344933c2b21feb0883785d51134c2d14f904972595ca4655034408d57f2327024ba7c95abbc7e2c4152 WHIRLPOOL 2a92948b86514b684cf7116d9cf4ae880cb9b559ea5379ae7c7c1dbd652549a431ace9c77704fd7a916cafab18f5f3fec88383cea7164dfc18788e1802eb8585 DIST VirtualBox-4.2.0-80737-Linux_x86.run 80158144 SHA256 d859981312c2b6ed9e596375fc180378763b09e5a3cf0d6dd61bc252789006c4 SHA512 755aa7efbe75e4bd83b04bd950955516d2a5462fd8b398092dbb8854cbba54ce22d8072b885abba883fc8c751a41ee7670c021ef72f530b726466fa3bddbbf0d WHIRLPOOL 101492d5e9b85ee7634d2b3b5cbd9f1aff258b12c951455ee969b2fe48768f48e90956a5dbcfaf8c83be6cf10f601fad6633c56a471a34762f8079f52db8a72d +DIST VirtualBox-4.2.2-81494-Linux_amd64.run 81960401 SHA256 a4d1d1f3047fb3e242338dbaa59d781b189d58021a04d29aac0a3f8ab7b54733 SHA512 8d807c05e3e47ff5613c76356a50a522b1a8dc3d665ed0f7c7f24db47f0495278e5877aa8a0057a50f0c7dac14d5b1f4aa18fb54dc61b2f4dc9d9f91b99320b0 WHIRLPOOL df48a91e981f0edc34b3e1e52691a8efe768107a02459423c740b977aae90f55e1540ee17b40f696b3d325a589eba29feeed7ef69a517b256e9a8f270298e84b +DIST VirtualBox-4.2.2-81494-Linux_x86.run 81694157 SHA256 c9f1609d9df2f467e1b79ce483e21a912dc3a1431219d5e7528815517de1c175 SHA512 2a593d6ab7d77c60ce1743e86edc6a5d50ec6e07a65dada1bb13c8a3dd7c2e5c2f454f94f32502297746615a09b08f3ffdf27b3e362ac3762fed80dfcdfe556a WHIRLPOOL 15ccffe8ebf00c8acc811911b84d1413c74b36cff1893772aa1cdaac9627c8bbefe84162b6175956bf365dc88a5efc54b924a2acaff953ff3bbc154d3410e98b DIST VirtualBoxSDK-4.1.22-80657.zip 8805310 SHA256 89f221ae08863342e7a8da3186135796430614e5792d7f8eae284b1360f669d2 SHA512 e488f6099f814174555112bccb06710d1dd782943c01ae4afb6f907328f28b198caf992f6c142751223b71cff02cdaca206fddd5f61b00c4c010ed84f922f94d WHIRLPOOL 69d9c3c1e44e5657d88b1d6b6da0deb8b65d0f88656eea895249fb610bdc0c0539b0c6daadaf04185296fbc2553873acf86308d26725d3292760ff395bf3390d DIST VirtualBoxSDK-4.2.0-80737.zip 9718188 SHA256 cf1bca71340d78b474c5c74eadf97d66121b39a6fa575b156f2f1e1f8a8db24d SHA512 699d01933d65fde33ebd60f7b4928801641c5ae2432fee0693da84cffe3271012a09ed7021d71381bd6894d4457e90ed02fac14dcb8b58dea396dbf990344db5 WHIRLPOOL c407867a4b4d68844553c33d012b79bbd80f2cad59e94435c451486518aca1022480fa4d13b2fddc6e93231fe5d7b9cbe6d60be3d30166e5c33a856230b43206 +DIST VirtualBoxSDK-4.2.2-81494.zip 9714925 SHA256 694fe0bef149e4f0802d2415f914e77e49f897b69316d608f4d7c4ef62acfbb9 SHA512 169982667582534cf160d6049ca8bd9a0f62b1c33c2e4037747eedafecd999218084fb85d8d4af3fca00b8126eb64a6b845e3d5590cd0ab24e0dfbd394ff6e53 WHIRLPOOL 96673147e0a9fa35ded2c84a6e36f1884ac91584824daef0b90f1b137db115cc0dce9837ae15aa5d8a1f6b424db1fc1f24cbf99c25fb55fc68714e64a1519f7f EBUILD virtualbox-bin-4.1.22.ebuild 10200 SHA256 a7808430e91ab565a61b13aadd2825881f40c18c67f53a76c7599b7558e76c80 SHA512 b5de9ceab5b3451634614b34407bfed707249369213cb326885713f7749df97c9ee3f8daa0775b4ccdc12c9b8fdf99e8957d215a4c87088c2f83c617e1df61aa WHIRLPOOL f741b990a049a72ed94250e413c2b82a17078b3876601d9525c22186407c624aff41e1de5ded1e7a7cfa918223e4eb1d3010ab79ac2cd46554cc735c89ded21d EBUILD virtualbox-bin-4.2.0.ebuild 10268 SHA256 4d10cdecde75fd1e26901c520cb9520e8e0281169a9ec9b26d99dc953f62c11b SHA512 3b25e0e586ba5cd80c0e8523f0776221e4e117aaa6e3122947c966b4ce46e413b048d4f6cf72d147b9dd4021f67fc0f1650c94551fd87103ba5949f3286a7adb WHIRLPOOL e0a66bd6375b5c5f63d6d7b0f74ed2f9b976860156aee0ea5be78f4c813f92cd0aaf28491856cc4c8674fbadfc52e348b90615b082c87cab0e5ded6a9e708253 -MISC ChangeLog 27453 SHA256 10a4a4bbe3f0f197f7471abe2e05d65a343870ddf24229585ff4c539327b821b SHA512 dbf70d8aeae2afbbf33a1a9a7a2b27bfa881f7b5de7682aeeea1546bfdac86faf6cbfc59d8dd2f0e85e034cbd640f16b3a32a4a763df00bb3d683e1d61ae9041 WHIRLPOOL ff19811ad45d600e6927917b2037d9ce1ef0dcd2c22058674643be3eee71f44747f8cace5cf475b5c6d2387172004d141f8826fd1a647f08241bb5b9fcbc1aff +EBUILD virtualbox-bin-4.2.2.ebuild 10263 SHA256 3b34acd8abb972a60e4bead16c1295b3d545dd65831a88ead9c210702f169deb SHA512 b801096a719d90810d92a2de0d789df195abe0fe7c48bbd5da93ce63a01a638cd12c3746e09f1ec21e403f16db5be1221d0295b97310270ebf3fbf9e544e8f8e WHIRLPOOL bc89d3a999ac53b2b6468983c7fcf8fadfa7de14b8ace6a3df13a5b01b66d61f1e8929d10c5a166fd52dda8fcd0ef924be276a4c74516ab000e5674a1fea59f1 +MISC ChangeLog 27581 SHA256 0f228dca3cd9cae25b12e6738546e5ad688e0443c3ef7b502558ca416ed3c42d SHA512 5c2d9e9ccc74fe25d3ac869ad291f93b55dd0c4a5369e69e7449909d68a908352e6ccb732d1bbec3bd6b75cc926e81c57c2b44a3e45e841f048f2dec874ab848 WHIRLPOOL ce74fbd112891f8a4cc808490e32e0115451dc073603073354cb254cf9a332d1af2ddc18bdf1690eb6665623888d155b741f0b6800223ca1dbd697f27eb846de MISC metadata.xml 755 SHA256 bc86ac6086292fc36509d35b59b7872a70f0874ce07de68d26910450603b7ae2 SHA512 e7ec4edcf66f0263a18ce4a2c825ca11f75e4a08318ecacd29dd40305b241fdf703c0f1ab4702e97accb963c28d7657e7a32ffe5b7a29652b6b06fd77ec6beff WHIRLPOOL 019268a60ae2ca01a2e0c4c3bb86504a755f68b9fa7b4884da316d16f625cc0bfaa9fdd4b7f05578c4491870cbf621a11aea4075d6bfa69f7a542097ddc14e08 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-4.2.2.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-4.2.2.ebuild new file mode 100644 index 000000000000..23fca6d11ea0 --- /dev/null +++ b/app-emulation/virtualbox-bin/virtualbox-bin-4.2.2.ebuild @@ -0,0 +1,346 @@ +# Copyright 1999-2012 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.2.2.ebuild,v 1.1 2012/10/24 04:41:40 patrick Exp $ + +EAPI=2 + +inherit eutils unpacker fdo-mime gnome2 pax-utils + +MY_PV=${PV/beta/BETA} +MY_PV=${MY_PV/rc/RC} +VBOX_PV=${MY_PV}-81494 +SDK_PV=${VBOX_PV} +EXTP_PV=${SDK_PV} +MY_P=VirtualBox-${VBOX_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/${MY_PV}/${MY_P}_amd64.run ) + x86? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run ) + sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/VirtualBoxSDK-${SDK_PV}.zip ) + http://download.virtualbox.org/virtualbox/${MY_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 + ) )" + +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_5.so + opt/VirtualBox/VBoxPython2_6.so + opt/VirtualBox/VBoxPython2_7.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_5.so + opt/VirtualBox/VBoxPython2_6.so + opt/VirtualBox/VBoxPython2_7.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" + +PYTHON_UPDATER_IGNORE="1" + +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_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + # create virtualbox configurations files + insinto /etc/vbox + newins "${FILESDIR}/${PN}-config" vbox.cfg + + if ! use headless ; then + pushd "${S}"/icons &>/dev/null || die + for size in * ; do + if [ -f "${size}/virtualbox.png" ] ; then + insinto "/usr/share/icons/hicolor/${size}/apps" + newins "${size}/virtualbox.png" ${PN}.png + fi + done + dodir /usr/share/pixmaps + cp "48x48/virtualbox.png" "${D}/usr/share/pixmaps/${PN}.png" \ + || die + popd &>/dev/null || die + + 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.5 2.6 2.7; 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 + + gnome2_icon_cache_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 +} |