From 0da01d77f6055afbfb5593886a554d4be8c74917 Mon Sep 17 00:00:00 2001 From: Markus Ullmann Date: Thu, 15 Feb 2007 20:40:27 +0000 Subject: [PATCH] Initial version, thanks to Alessio Cassibba Package-Manager: portage-2.1.2-r8 --- app-emulation/virtualbox-bin/ChangeLog | 10 ++ app-emulation/virtualbox-bin/Manifest | 26 ++++ .../files/digest-virtualbox-bin-1.3.4 | 3 + app-emulation/virtualbox-bin/metadata.xml | 13 ++ .../virtualbox-bin-1.3.4.ebuild | 115 ++++++++++++++++++ 5 files changed, 167 insertions(+) create mode 100644 app-emulation/virtualbox-bin/ChangeLog create mode 100644 app-emulation/virtualbox-bin/Manifest create mode 100644 app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 create mode 100644 app-emulation/virtualbox-bin/metadata.xml create mode 100644 app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild diff --git a/app-emulation/virtualbox-bin/ChangeLog b/app-emulation/virtualbox-bin/ChangeLog new file mode 100644 index 000000000000..af8be0f968eb --- /dev/null +++ b/app-emulation/virtualbox-bin/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-emulation/virtualbox-bin +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/ChangeLog,v 1.1 2007/02/15 20:40:27 jokey Exp $ + +*virtualbox-bin-1.3.4 (15 Feb 2007) + + 15 Feb 2007; Markus Ullmann +metadata.xml, + +virtualbox-bin-1.3.4.ebuild: + Initial version, thanks to Alessio Cassibba + diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest new file mode 100644 index 000000000000..333e9294ee7a --- /dev/null +++ b/app-emulation/virtualbox-bin/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST VirtualBox_1.3.4_Linux_x86.run 9835033 RMD160 571a315f3d22c6a01cf05921f28c34491f2ca313 SHA1 1a077cde3199ad2266d6da580f05911431c5a5a4 SHA256 c695fb4ad5d8bfcc804283839362364f9393713f4a1bcf1e06953222861e096d +EBUILD virtualbox-bin-1.3.4.ebuild 3209 RMD160 6fdf16e8f7a806f792ba793ae06c8322eac0634a SHA1 bcd221a4db398532cfe5ce7a8b794a94ceeed1ad SHA256 526db6d34846ae9954bbdf1f55f903afd53d2d942b87fe534454027249ff1f4a +MD5 75031ff7e11a22ad12ea927e6e444056 virtualbox-bin-1.3.4.ebuild 3209 +RMD160 6fdf16e8f7a806f792ba793ae06c8322eac0634a virtualbox-bin-1.3.4.ebuild 3209 +SHA256 526db6d34846ae9954bbdf1f55f903afd53d2d942b87fe534454027249ff1f4a virtualbox-bin-1.3.4.ebuild 3209 +MISC ChangeLog 408 RMD160 aea95c75e32956fd7064553de686998640f38088 SHA1 c793a5a738938ad66832ab00b10ec8c0218dd2c8 SHA256 e49969fac87982a6362e56303bd4e5702da2d18dbbed5f01600a98f8d4b285b2 +MD5 d4462e0445ab9a5295651695ee9e878d ChangeLog 408 +RMD160 aea95c75e32956fd7064553de686998640f38088 ChangeLog 408 +SHA256 e49969fac87982a6362e56303bd4e5702da2d18dbbed5f01600a98f8d4b285b2 ChangeLog 408 +MISC metadata.xml 344 RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e SHA1 68b99919921f246738cce4350b77d895e7c78106 SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9 +MD5 688de6c9943189afc4fa3ab510813dbd metadata.xml 344 +RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e metadata.xml 344 +SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9 metadata.xml 344 +MD5 a5653cf2dad530a06d2fbee1586ed2f7 files/digest-virtualbox-bin-1.3.4 274 +RMD160 06d376ac58b3d6ffcedcde87ca4351e88f30a664 files/digest-virtualbox-bin-1.3.4 274 +SHA256 5129f448b55275504da55f10cbd7b1eae8d79db825ac3360dd6903f75fe95890 files/digest-virtualbox-bin-1.3.4 274 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.1 (GNU/Linux) + +iD8DBQFF1MTyz974XjDVpbkRAlMIAJ9QyYioQyZQFR/dydDHlJga5EwxiwCgpF1I +DeinZBHKfLJ1XcDCUbRjxW8= +=CYMl +-----END PGP SIGNATURE----- diff --git a/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 new file mode 100644 index 000000000000..8b18ca1d68b6 --- /dev/null +++ b/app-emulation/virtualbox-bin/files/digest-virtualbox-bin-1.3.4 @@ -0,0 +1,3 @@ +MD5 2fa2f38d3fc9f367804934817de83a4b VirtualBox_1.3.4_Linux_x86.run 9835033 +RMD160 571a315f3d22c6a01cf05921f28c34491f2ca313 VirtualBox_1.3.4_Linux_x86.run 9835033 +SHA256 c695fb4ad5d8bfcc804283839362364f9393713f4a1bcf1e06953222861e096d VirtualBox_1.3.4_Linux_x86.run 9835033 diff --git a/app-emulation/virtualbox-bin/metadata.xml b/app-emulation/virtualbox-bin/metadata.xml new file mode 100644 index 000000000000..76eddd3fbb1b --- /dev/null +++ b/app-emulation/virtualbox-bin/metadata.xml @@ -0,0 +1,13 @@ + + + +no-herd + + jokey@gentoo.org + Markus Ullmann + + + swapon@gmail.com + Alessio Cassibba + + diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild new file mode 100644 index 000000000000..151e873045d4 --- /dev/null +++ b/app-emulation/virtualbox-bin/virtualbox-bin-1.3.4.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header $ + +inherit eutils linux-mod qt3 + +MY_P=VirtualBox_${PV}_Linux_x86.run + +DESCRIPTION="Softwarefamily of powerful x86 virtualization" +HOMEPAGE="http://www.virtualbox.org/" +SRC_URI="http://www.virtualbox.org/download/${PV}/${MY_P}" + +LICENSE="PUEL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="additions doc" + +DEPEND=">=sys-libs/glibc-2.3.5" +RDEPEND="!app-emulation/virtualbox + amd64? ( + >=app-emulation/emul-linux-x86-baselibs-2.5.5-r3 + >=app-emulation/emul-linux-x86-qtlibs-3.4.4 + app-emulation/emul-linux-x86-compat + app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-sdl ) + x86? ( + virtual/xft + x11-libs/libX11 + x11-libs/libXtst + x11-libs/libXext + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + x11-libs/libXrender + =virtual/libstdc++-3.3 + x11-libs/libXcursor + media-libs/libsdl + $(qt_min_version 3.3.5) )" + +S=${WORKDIR} + +RESTRICT="primaryuri" + +BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" +BUILD_TARGETS="all" +MODULE_NAMES="vboxdrv(misc:${S}/src)" + +pkg_setup() { + linux-mod_pkg_setup + check_license +} + +src_unpack() { + unpack_makeself ${A} + unpack ./VirtualBox.tar.bz2 +} + +src_install() { + linux-mod_src_install + cd "${S}" + + # desktop entry + insinto /usr/share/pixmaps + newins VBox.png virtualbox.png + insinto /usr/share/applications + newins VirtualBox.desktop virtualbox.desktop + dosed -e "10d" /usr/share/applications/virtualbox.desktop + dosed -e "5d" /usr/share/applications/virtualbox.desktop + dosed -e "s/VirtualBox/virtualbox/" /usr/share/applications/virtualbox.desktop + dosed -e "s/VBox.png/virtualbox.png/" /usr/share/applications/virtualbox.desktop + + insinto /opt/VirtualBox + doins UserManual.pdf + if use additions; then + doins -r additions + fi + + rm -rf src sdk tst* UserManual.pdf rdesktop-vrdp.tar.gz deffiles install.sh routines.sh runlevel.sh \ + vboxdrv.sh VBox.png additions VirtualBox.desktop VirtualBox.tar.bz2 LICENSE + + doins -r * + for each in VBox{Manage,SDL,SVC,XPCOMIPCD} VirtualBox ; do + fperms 0755 /opt/VirtualBox/${each} + done + + make_wrapper vboxsvc "./VBoxSVC" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin" + make_wrapper virtualbox "./VirtualBox" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin" + make_wrapper vboxmanage "./VBoxManage" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin" + make_wrapper vboxsdl "./VBoxSDL" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin" + make_wrapper vboxvrdp "./VBoxVRDP" "${ROOT}opt/VirtualBox" "/opt/VirtualBox" "/usr/bin" + + # udev rule for vboxdrv + dodir /etc/udev/rules.d + echo 'KERNEL=="vboxdrv", GROUP="vboxusers" MODE=660' >> "${D}/etc/udev/rules.d/60-virtualbox.rules" +} + +pkg_preinst() { + enewgroup vboxusers +} + +pkg_postinst() { + if use amd64; then + elog "" + elog "To avoid the nmi_watchdog bug and load the vboxdrv module" + elog "you may need to update your bootloader configuration and pass the option:" + elog "nmi_watchdog=0" + fi + elog "" + elog "In order to launch VirtualBox you need to start VBoxSVC first," + elog "this can be done with:" + elog "vboxsvc --daemonize && virtualbox" + elog "" + elog "You must be in the vboxusers group to use VirtualBox." + elog "" +} -- 2.26.2