diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2016-08-17 10:28:28 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-08-17 10:30:18 +0200 |
commit | f69b91c9166fa6622efd77b79e9935618acf86f5 (patch) | |
tree | a1591f93de2bda6191405618d5ab9b963701e5b9 /app-emulation/virtualbox-bin | |
parent | media-gfx/qrencode: Stable for HPPA (bug #589142). (diff) | |
download | gentoo-f69b91c9166fa6622efd77b79e9935618acf86f5.tar.gz gentoo-f69b91c9166fa6622efd77b79e9935618acf86f5.tar.bz2 gentoo-f69b91c9166fa6622efd77b79e9935618acf86f5.zip |
virtualbox host packages: Bump to version 5.1.4
Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-bin')
-rw-r--r-- | app-emulation/virtualbox-bin/Manifest | 4 | ||||
-rw-r--r-- | app-emulation/virtualbox-bin/virtualbox-bin-5.1.4.110228.ebuild | 288 |
2 files changed, 292 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest index fcce99436295..1ec44ab1c627 100644 --- a/app-emulation/virtualbox-bin/Manifest +++ b/app-emulation/virtualbox-bin/Manifest @@ -6,6 +6,7 @@ DIST Oracle_VM_VirtualBox_Extension_Pack-5.0.24-108355.tar.gz 16423699 SHA256 ae DIST Oracle_VM_VirtualBox_Extension_Pack-5.0.26-108824.tar.gz 16425147 SHA256 2f2302c7ba3d00a1258fe8e7767a6eb08dccdc3c31f6e3eeb74063c2c268b104 SHA512 7bcc226db7fb8fe9d021ba0c6206a19c3f1aea397b271d7da294a8ffcc976a8512eacdf07f40af1fdf4317b5fe2093869d742a2f5e2b3090ee006807acd0521e WHIRLPOOL a8ccf09d9094f380c93ebb951df6aaad6c13e76392235db41af7fcfcf882302b714a428f13368d790edc9ac5ba2a6f7cb0fb442b4252f0d6de4a2454895f69f4 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.0-108711.tar.gz 16903489 SHA256 7e9802dbbdf56dcd963f8ef368fe1f9ff9accbd74d9fb297b44af3d4af757ec7 SHA512 df5969e2b2cbc54298eb5dc6f0c36e7569da8a92713d77a1679a232bfc37053223a116966c0ab39df6d99ccacf8228296659b10da54ee06c542e47e510da42c3 WHIRLPOOL 0d93004956aebc245f8f30eb9641f66496f3d930053764fc274db7233d9db93123a58872c5fecc5bb52f6735a658dc12f407b8010fe468fd9b787f94fc6df5ea DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.2-108956.tar.gz 16902937 SHA256 394d933be4022b2b15225670fe6e2a4486f34e5a565a719e0de5984089ccd975 SHA512 ac4c84a8904614f42d04a12ac1a578412f4d2e584c10363b46c20cb07c1a9f9553d3aad68d6b7b2fc7f2dde2285805fcb1f5f4983b3344fc8bf7782a303e7dd7 WHIRLPOOL 06b6a246b4b7141ec90573a41815ba03775de87143d8570c5d7853e13492adcc0dfd2f07b0d8934e093ed73bff070a4a8ead64d0728486e2dfd8d75b6da3f29e +DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.4-110228.tar.gz 16894111 SHA256 9462ff1b567c37ad9a33c0c7ca1925776615ec89b5a72563f29a8cc8514cf316 SHA512 8ac1c41b90f15aba6ca74438504c8f6d20b46bf72cfb6b4c38081e12fadeec95d4934acab5949556208a115cd8ddc66d8a7e6b767e0927f51b313976038779fb WHIRLPOOL 7c2f20c71ab339e8229b04d4b4855c4fc6af96351f71e55fa07a5aed9c81648d0bc8629327d6de11e9cb71f9a7949f3d4bbd464846c50d351b70d03275e592d9 DIST VirtualBox-4.3.32-103443-Linux_amd64.run 81100243 SHA256 e99dbf0e382081fa78cbc5803b473e2fe4bc945eb50cf0b5717853f4cdb34da3 SHA512 c68cf69de524ec0229d07943087bc433b0902710f48ddd67106f0f10500d38d38a0e3ff97e40bc81495f12f2bcd68ee0f3d19fda46c999960fd1b3f64bf220f3 WHIRLPOOL 15aa5ce0b49ac7c75fc6191e4a0283a721db247a667f63b94f04dbf1f00122958c8945181f4ec5791b1a6ba6425f98a3bf92f80eebf29b831260cc8274cf1cd7 DIST VirtualBox-4.3.32-103443-Linux_x86.run 80496078 SHA256 89e3493052b43574454c1f6bed2a1ddf3504dbcf5096cb2f541b242dd6636cfc SHA512 66455075385879364afe7c77051d7b7873dff543647bbbdcdb9e0e63ef9fa2c49a11a45ac3c2cb96cbb59fe75e5e502c3d4cd99ac1ba8c580e65ae3e3da5c427 WHIRLPOOL bdbd2b62fc8bf83604ffa217f5e592ff48058a6f6c10e0fb07e214847d6cc915f858fef03b6c196625339f3d31f2ce6c4614b9ae206eacfb35957253893bea06 DIST VirtualBox-4.3.36-105129-Linux_amd64.run 81284561 SHA256 6ed1f7e968c13e6cbbcab60bcd340a4bbfd860095ed4c139a0e860f0475666d1 SHA512 62613b0b2a4d18103ae32f38659efd418e106866a8efa3ed4c4a85ed583886435317203e24ea1be9a00634789a656a54a6ca1c884cf5f595a6757475438d925b WHIRLPOOL 1f3186a92194879b8aed246ff3fc930161c2fc5c3ef24cfdd3b76e7f4a227c67603acf0559d6c48b5dc269e3818726235fb704a9dcc306ca9ac6de42de1df54a @@ -22,6 +23,8 @@ DIST VirtualBox-5.1.0-108711-Linux_amd64.run 85523910 SHA256 ddbf2d666cf9b44c294 DIST VirtualBox-5.1.0-108711-Linux_x86.run 84848066 SHA256 7b63381d93546601f651f96f17154cb62a286df598039b1e04e2cbc64e6493b0 SHA512 140dd4e91fa6bc3ec0b6a06521ec593e5c8a190be2eb24425d63cedba8eb0058c14a2fdcc1749237656a5b4729d1da98c470e8167604149ef7fbccf2268757c4 WHIRLPOOL e22d27915a1e3f4429decb556b2ef779495ad3f0835b264d22b10b3a4d8e4e927d51364eb3421de4809677cd5cd31d1197dcdac876f714e22a02ca82d3638f4f DIST VirtualBox-5.1.2-108956-Linux_amd64.run 86824390 SHA256 5937708ad0ad894441b72c3cfc76072e6165c20d726805ab322c0e028591e082 SHA512 48d265d281bc5919696e5ac479569b5b0bfcc0577b842770cc50ae073c9591835d51487cf52418ac1d3cf81967f71cd738fe9fad66e0ae5497713ae2e65456f3 WHIRLPOOL 471a5467adcd138e43d8a745f236ed59c6b34a310b0f3edfa6f6421caf4e3359fb5efa2c698711ad9c86e85bf3141f7cec70d344026439bde2bbb009cad2f98f DIST VirtualBox-5.1.2-108956-Linux_x86.run 86209985 SHA256 166721277134552aa26a0c39cad3633a0a986f124d88690038306037c55458f3 SHA512 3dc60a37e25d6b4b32cd00c51c016550ef2c7029c4158fcb8c5109e905a6d658f1fecce81fb6fc2cb5819404094ee0e3f700073705381502151b9844a956dc64 WHIRLPOOL 3b254e8dae548ef80dd9dbf35789560d45d6a9188069e324209d28502f4de100c25b71fdaeaf7323d4d012b9736b2ae67e4def110c677f5f4893fd75b06674be +DIST VirtualBox-5.1.4-110228-Linux_amd64.run 87018950 SHA256 e9514835dfff2f6fff5489d2c21182662f79672458446593c1cd4ffcf20d97bb SHA512 5aa3771ec95a30c966f16a8fc3bd61d252464251dfb4b371cf52e790140d91987b9b82568c06b5b6b6e4fe5028cd8c4046f80f8db947e83339a9c13bee2771f9 WHIRLPOOL 947fc9a5bb765f360132c99b47ef3005c124e6f2a33a40c5fb588bb3c218b72cac41dd9875270db5f5e7ca77cbb5fc2c5c905e0bf3ac8837f99090356a0041e4 +DIST VirtualBox-5.1.4-110228-Linux_x86.run 86312385 SHA256 d6c78f2849dee8b47bfeb1596ea11239528fbac97886d4148a7438ef2e72da7e SHA512 84c09548e1e93f92ef0d8f718a4649d749d2f94ac0e9b46158b55725d9112bbc3af0cfdf213c624db26b90800340ec36515e0042afbbc05e9ada07000e69c8ac WHIRLPOOL d029635ecdf747461cd6c15b7a40bb5d631aaf3ce0645ac84f347fc09a44f7df1bf99aea77f0568ecf4d69242450170f94aa59b271fbd96a97618cac9ed2656e DIST VirtualBoxSDK-4.3.32-103443.zip 11435565 SHA256 84ff42f0e9d8f8945387247e7f57123d37cc2c53035ab1eca5414ca82102613a SHA512 914951d91adfa0d77e29863c7108d2e116a01562d0e0454b1203ae7d6e7e0a224f65a51cbf1e83b8067cb40da65708d2022ab5be35f2905a28f032653c827869 WHIRLPOOL 2e53a6f2d6e6e4f328139b03de8bf09b1a72ca3981addef7a2d02d8dbc02e8ea6c319b16facdcdb1be5d941d7d24b64598990112d3d52ca5e5c9b0a2c4d8e89e DIST VirtualBoxSDK-4.3.36-105129.zip 11435309 SHA256 e8391909f609d8d6be17aadd25111d87b90489b2088efbcb03541ff7697d342c SHA512 7a1df66cb332f31f9cf0761334abaede3eabf7d29ffe8461fa39dc9b5b67394b3f2182090bd9a36c99a040a9e3cc9f7eef240144ab235d32bcba7d1c44285ecc WHIRLPOOL 4ec8ff0118f5a3df9540260f2794195462b94e624e4a92c81e2c66d4bd0944320671705ca385f44941065393f05671be53fc0a359d028e6c9885b69e0fb5ab2f DIST VirtualBoxSDK-4.3.38-106717.zip 11437939 SHA256 298592897fa9b6654c5db899b03193b17efc4d6a3a36c104a465c5caefff8697 SHA512 5bdd09fe48af4cafe39364ceceec576ea1e2de719365d27fc576b516cd9244fc65e08ad5b05c8cce4a453e610bf11e7ac664ca6384d011a56de26c18118e9e57 WHIRLPOOL 3a16e62987378ad3474d518e8befd31664c443216a8cefdb001713624246e13a8decada852dfd78b945ae1e9ac2cda8581bfcfefb61f92b7d9cc9cffb939fa69 @@ -30,3 +33,4 @@ DIST VirtualBoxSDK-5.0.24-108355.zip 9675233 SHA256 56b890c10b9d890f56150fafb1a0 DIST VirtualBoxSDK-5.0.26-108824.zip 9674060 SHA256 285bf821feb23f50bbabfa016c42e48f924418e9b47257bd3f572510da7ebef6 SHA512 a1971897b14546cccef89477da0dad014a8d04494d6c5e29674caa32274c4a74310ca454d5d367bf19b8b244b981fcb7508bf02cfe07637df5292987092698ff WHIRLPOOL 06f77c9555b77c7493ec590598ce94362ac24c8af988c8154fe7e1a50cc887169703b2ad7aa68a4e1a62805f6ed6ff00db7f15c1e887b5901cddf2780234556c DIST VirtualBoxSDK-5.1.0-108711.zip 9854087 SHA256 3d8867c724dbd835ed79fff567885a26994a19e43ceba2fadf0b8b13bde9d9b4 SHA512 8920d6f9a253aeef3e9336787ad7ef1fef577abda1834bbb5e043a7257f10bbddc62a103ac573144466dc82a65a68e0896dcc6faa92af6af6ae6c38fe8e8057d WHIRLPOOL f9a325d0692f1dca8c180ff7de5f97c2dea9b37238f490e96f63ef162f60f72ad73456a73cf3b4e0e39369ad65e35aaad9015fa2578071d4a2c56b157f54b5cc DIST VirtualBoxSDK-5.1.2-108956.zip 9854520 SHA256 08bab02db84880b9c2892e15de95ddfd9796556bf128accdc6ce7cd7b0611690 SHA512 5c154cc9f917c0bbc13d2603042e4503c87d0c5d7e1abd9d5f8c7a6d46e44a21f96722ecd7c030bc717b091dd5bf21788d2af5a8911aa17faa8390b6f90020ac WHIRLPOOL 1cbd0370ad3439a7300b5ea7d8b7818f5caceea011d3e2fe6eac28e0d63b6d5cba4d355fcb96bcbfefdc6b1174199a92df20c76ba4659fa9297a98d9a6638abe +DIST VirtualBoxSDK-5.1.4-110228.zip 9857988 SHA256 9216a91ba32a39788f3a5e7ba160268aecf1e6d7d3af4169bbc1a569e0a87359 SHA512 744de6bd48057bfb2e7f19243d6df1c84a73c2b3048f1de61cee02344ca1713cb70746a2e711e2242b77d08cec406b36b85a3467afda1e04e1bbef35937b6d08 WHIRLPOOL 62f8484fa999720bf67412f9b5bb3b62a72fa329740a847af5751a120ba6b27fb1a153c2e9f1cb39669993dcb5eb3d162f71de5cc26a1529a4ffae7eb9ba1fa6 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.1.4.110228.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.4.110228.ebuild new file mode 100644 index 000000000000..0c5a78159b35 --- /dev/null +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.4.110228.ebuild @@ -0,0 +1,288 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils fdo-mime gnome2 pax-utils python-r1 udev unpacker versionator + +MAIN_PV="$(get_version_component_range 1-3)" +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then + MY_PV="${MAIN_PV}_$(get_version_component_range 5)" + MY_PV="${MY_PV/beta/BETA}" + MY_PV="${MY_PV/rc/RC}" +else + MY_PV="${MAIN_PV}" +fi +VBOX_BUILD_ID="$(get_version_component_range 4)" +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}" +MY_P="VirtualBox-${VBOX_PV}-Linux" +# needed as sometimes the extpack gets another build ID +EXTP_PV="${VBOX_PV}" +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack" +EXTP_P="${EXTP_PN}-${EXTP_PV}" +# needed as sometimes the SDK gets another build ID +SDK_PV="${VBOX_PV}" +SDK_P="VirtualBoxSDK-${SDK_PV}" + +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 ) + http://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz" + +LICENSE="GPL-2 PUEL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp" +RESTRICT="mirror" + +if [[ "${PV}" != *beta* ]] ; then + SRC_URI+=" + sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )" + IUSE+=" sdk" +fi + +DEPEND="app-arch/unzip + ${PYTHON_DEPS}" + +RDEPEND="!!app-emulation/virtualbox + !app-emulation/virtualbox-additions + ~app-emulation/virtualbox-modules-${MAIN_PV} + !headless? ( + dev-libs/glib + media-libs/fontconfig + media-libs/freetype + media-libs/libpng + media-libs/libsdl[X] + x11-libs/libXcursor + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXft + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + chm? ( dev-libs/expat ) + ) + dev-libs/libxml2 + sys-fs/lvm2 + x11-libs/libXau + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu + x11-libs/libSM + x11-libs/libICE + x11-libs/libXdmcp + ${PYTHON_DEPS}" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +S=${WORKDIR} + +QA_PREBUILT="opt/VirtualBox/*" + +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_P}.tar.gz + popd &>/dev/null || die + + if [[ "${PV}" != *beta* ]] && 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 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop + + # set up symlinks (bug #572012) + dosym /opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml + + local size ico icofile + for size in 16 24 32 48 64 72 96 128 256 ; do + pushd "${S}"/icons/${size}x${size} &>/dev/null || die + if [[ -f "virtualbox.png" ]] ; then + doicon -s ${size} virtualbox.png + fi + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do + icofile="virtualbox-${ico}.png" + if [[ -f "${icofile}" ]] ; then + doicon -s ${size} ${icofile} + fi + done + popd &>/dev/null || die + done + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg + insinto /usr/share/pixmaps + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png + 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 [[ "${PV}" != *beta* ]] && use sdk ; then + doins -r sdk + fi + + if use additions; then + doins -r additions + fi + + if use vboxwebsrv; then + doins vboxwebsrv + 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 + doins -r rdesktop-vrdp-keymaps + 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 + fowners root:vboxusers /opt/VirtualBox/kchmviewer + fperms 0750 /opt/VirtualBox/kchmviewer + fi + + # This ebuild / package supports only py2.7. When py3 comes is unknown. + # The compile phase makes VBoxPython2_7.so. + # py3 support would presumably require a binary pre-compiled by py3. + use python && doins VBoxPython.so VBoxPython2_7.so + + 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,NetNAT,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 + fperms 4750 /opt/VirtualBox/VBoxNetNAT + + 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" + 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" + + local udevdir="$(get_udevdir)" + insinto ${udevdir}/rules.d + doins "${FILESDIR}"/10-virtualbox.rules + sed "s@%UDEVDIR%@${udevdir}@" \ + -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die + # move udev scripts into ${udevdir} (bug #372491) + mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die + fperms 0750 ${udevdir}/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 +} |