summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-emulation/virtualbox-guest-additions/ChangeLog20
-rw-r--r--app-emulation/virtualbox-guest-additions/Manifest5
-rw-r--r--app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-2.0.0-localconfig27
-rw-r--r--app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-2.0.0.ebuild137
4 files changed, 188 insertions, 1 deletions
diff --git a/app-emulation/virtualbox-guest-additions/ChangeLog b/app-emulation/virtualbox-guest-additions/ChangeLog
index 90eee82..8575a15 100644
--- a/app-emulation/virtualbox-guest-additions/ChangeLog
+++ b/app-emulation/virtualbox-guest-additions/ChangeLog
@@ -2,6 +2,26 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 10 Sep 2008; Alessio Cassibba (X-Drum) <swapon@gmail.com>
+ +virtualbox-guest-additions-2.0.0.ebuild,
+ +files/virtualbox-guest-additions-2.0.0-localconfig:
+ Version bump, add VBoxControl command line utility
+
+*virtualbox-guest-additions-1.6.6 (06 Sep 2008)
+*virtualbox-guest-additions-1.6.4-r2 (06 Sep 2008)
+
+ 06 Sep 2008; Markus Ullmann <jokey@gentoo.org>
+ -files/virtualbox-guest-additions-1.5.6-remove-alsa.patch,
+ -files/virtualbox-guest-additions-1.5.6.initd,
+ files/virtualbox-guest-additions-1.6.4-fix-missing-makefiles.patch,
+ -files/virtualbox-guest-additions-1.6.4.initd,
+ +files/virtualbox-guest-additions.initd,
+ -virtualbox-guest-additions-1.5.6.ebuild,
+ -virtualbox-guest-additions-1.6.4-r1.ebuild,
+ +virtualbox-guest-additions-1.6.4-r2.ebuild,
+ +virtualbox-guest-additions-1.6.6.ebuild:
+ Port from dev overlay
+
03 Sep 2008; Alessio Cassibba (X-Drum) <swapon@gmail.com>
-virtualbox-guest-additions-1.5.6.ebuild,
-files/virtualbox-guest-additions-1.5.6-remove-alsa.patch,
diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
index 1e53e6e..6b92db6 100644
--- a/app-emulation/virtualbox-guest-additions/Manifest
+++ b/app-emulation/virtualbox-guest-additions/Manifest
@@ -1,8 +1,11 @@
AUX virtualbox-guest-additions-1.6.4-fix-missing-makefiles.patch 2042 RMD160 a3e09cff5de8ea11e892187dce899cab4c8742d8 SHA1 d0d9d0679736fa21270ccfff0fac93533afd9a2a SHA256 051bb5d7c4a2040a1fe1289f20dcc35e6b263041774cf93466e682659d493ca8
+AUX virtualbox-guest-additions-2.0.0-localconfig 845 RMD160 5cd3b73046f0dbe8eebef9041f224b6c2433b733 SHA1 1a31b795e4037e444b94afdaa586349f1ae34d9b SHA256 ac7c25fd5f93f4a9ab76a085c58c9c3eb5e93f9e58594a022799df7103040a43
AUX virtualbox-guest-additions.initd 1463 RMD160 4daceefa3e10659381f4b714512548944c7f54fd SHA1 f5290150bbf99feac5c6d81c4f82f9191e5f1786 SHA256 933dbdc5e5363dfbdc2d51deed0726ab91f1ea89e330298266b9ffb03c38989a
DIST VirtualBox-1.6.4-OSE.tar.bz2 35484117 RMD160 af94b774d9964757da125c4614e393396f7e892b SHA1 457ae85f2d10028ac7c56e4b35ee47028ec0208b SHA256 7e777e5f602d7b48bf5a8b1d580ee43dd6327b9037816fde484a13db8a86b422
DIST VirtualBox-1.6.6-OSE.tar.bz2 35483853 RMD160 4b17428371089806cf6f5e52d1905936f7beb01d SHA1 7c323b35d77277c650cbce2821ab6778d1e3270e SHA256 acb3c20ef751ed408489d7b5c2d5d441226055a6e83bfeb9258ce2d55baba4da
+DIST VirtualBox-2.0.0-OSE.tar.bz2 37204751 RMD160 d0d1b94a4cb5b63ebeebc84434d7f44627278221 SHA1 a5fad49895e72d9d2261c7d2f8cffea4167be2c9 SHA256 9036ecab78d3f160d45a3fcdbdfb4266426a88c1b0cb7bb44ea65c6dc08be21e
EBUILD virtualbox-guest-additions-1.6.4-r2.ebuild 3328 RMD160 f603c9620de96921b7aad3f191e70bbf957ae492 SHA1 67a0987fcb3933f36c8aa8bb6225f814253ab07d SHA256 f6940bab52cc39a55ae942346c51376c37f1d6b5a6ad1e6bbf85c2a74c2bf283
EBUILD virtualbox-guest-additions-1.6.6.ebuild 3397 RMD160 72b6cd3a2fb43d8ba0a5aa2979505dafe6ffff2b SHA1 7f37f5f9a17f8e87169b89be45afa259dad781fc SHA256 e51aa1271e829a018b15d01b0b94e1a809c3cce95e4536837e1072047a0d6bd0
-MISC ChangeLog 4406 RMD160 354f97cce03e587c9c9d57ad9704a79940bfa80c SHA1 da21bac294c7d7d5a81349cda8436d9b4cfa2209 SHA256 a196af4881deebb0bf29f5be373a6d4b686bd51ad2da118fcabf3a5b1eee5de6
+EBUILD virtualbox-guest-additions-2.0.0.ebuild 3601 RMD160 720deaecdad2e2573dab7d64eeffa193ac635420 SHA1 1582b0cf87d5bfca369d0835cd82b2ed38f75d6a SHA256 b0f02729a68434d0abaeff66b88d320f206ac1a259110898824fd778dc8dafb7
+MISC ChangeLog 5247 RMD160 c8aae38e2d13a2335b2f24083be9ac96f7a3b993 SHA1 ed59c5abd80d6d1f178432fbde2e43c65196fb05 SHA256 25a872a6223a029007b1934cd3aa0425e59394501319a501688a5c33fb02d06e
MISC metadata.xml 344 RMD160 12935d5b21be85bc4222fd06371c93dcbf6f534e SHA1 68b99919921f246738cce4350b77d895e7c78106 SHA256 fff5aeb6f453d2e137765ca5016e81344cb0cd0cecd51d81bbb889cb1d7a5ba9
diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-2.0.0-localconfig b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-2.0.0-localconfig
new file mode 100644
index 0000000..3e1f7d8
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-2.0.0-localconfig
@@ -0,0 +1,27 @@
+# -*- 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.
+#
+
+# don't build testcases to save time, they are not needed for the package
+VBOX_WITH_TESTCASES :=
+VBOX_WITH_TESTSUITE :=
+
+KBUILD_MSG_STYLE := brief
+
+## paths, origin, hardening
+VBOX_WITH_HARDENING := 2
+VBOX_WITH_ORIGIN :=
+
diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-2.0.0.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-2.0.0.ebuild
new file mode 100644
index 0000000..5cf61f6
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-2.0.0.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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="x11-libs/libXt
+ amd64? ( app-emulation/emul-linux-x86-xlibs )
+ X? ( ~x11-drivers/xf86-video-virtualbox-${PV}
+ ~x11-drivers/xf86-input-virtualbox-${PV}
+ x11-apps/xrandr
+ x11-apps/xrefresh )"
+DEPEND="${RDEPEND}
+ dev-util/kbuild
+ >=dev-lang/yasm-0.6.2
+ sys-devel/bin86
+ sys-devel/dev86
+ sys-power/iasl
+ x11-proto/renderproto"
+
+BUILD_TARGETS="all"
+BUILD_TARGET_ARCH="${ARCH}"
+MODULE_NAMES="vboxadd(misc:${WORKDIR}/vboxadd:${WORKDIR}/vboxadd)
+ vboxvfs(misc:${WORKDIR}/vboxvfs:${WORKDIR}/vboxvfs)"
+
+S=${WORKDIR}/${MY_P/-OSE/}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
+}
+
+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/}"/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
+
+ # Disable things unused or splitted into separate ebuilds
+ cp "${FILESDIR}/${P}-localconfig" LocalConfig.kmk
+}
+
+src_compile() {
+ linux-mod_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{sharefolders,daemon} ; do
+ MAKE="kmk" emake TOOL_YASM_AS=yasm \
+ KBUILD_PATH="${S}/kBuild" \
+ || die "kmk failed"
+ done
+}
+
+src_install() {
+ linux-mod_src_install
+
+ cd "${S}"/out/linux.${ARCH}/release/bin/additions
+
+ # shared folders
+ insinto /sbin
+ newins mountvboxsf mount.vboxsf
+ fperms 4755 /sbin/mount.vboxsf
+
+ # time synchronisation system service
+ insinto /usr/sbin
+ doins vboxadd-timesync
+ fperms 0755 /usr/sbin/vboxadd-timesync
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+ # VBoxClient user service and xrandr wrapper
+ if use X; then
+ insinto /usr/bin
+
+ doins VBoxClient
+ doins VBoxComtrol
+ fperms 4755 /usr/bin/VBoxClient
+ fperms 4755 /usr/bin/VBoxControl
+
+ dodir /etc/X11/xinit/xinitrc.d/
+ echo -e "#/bin/sh\n/usr/bin/VBoxClient" \
+ >> "${D}/etc/X11/xinit/xinitrc.d/98VBoxClient"
+ fperms 0755 /etc/X11/xinit/xinitrc.d/98VBoxClient
+
+ cd "${S}"/src/VBox/Additions/x11/installer
+ newins VBoxRandR.sh VBoxRandR
+ fperms 0755 /usr/bin/VBoxRandR
+ fi
+
+ # udev rule for vboxdrv
+ dodir /etc/udev/rules.d
+ echo 'KERNEL=="vboxadd", NAME="vboxadd", OWNER="root", MODE="0660"' \
+ >> "${D}/etc/udev/rules.d/60-virtualbox-guest-additions.rules"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ if ! useq X ; then
+ elog "use flag X is off, enable it to install the"
+ elog "X Window System input and video drivers"
+ fi
+ elog "Please add:"
+ elog "/etc/init.d/${PN}"
+ elog "to the default runlevel in order to load all"
+ elog "needed modules and services."
+ 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 ""
+}