summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx-drum <x-drum@localhost>2009-01-27 01:03:17 +0000
committerx-drum <x-drum@localhost>2009-01-27 01:03:17 +0000
commit20173ac6911ba8a74465b27974e60ab32ea05384 (patch)
treebd16501bb5dacf02498b597295e1b25d111ae4bf /app-emulation/virtualbox-ose
parentuse only one file for the previous patch (2.1.2 and 2.1.0 ebuild) (diff)
downloadjokey-20173ac6911ba8a74465b27974e60ab32ea05384.tar.gz
jokey-20173ac6911ba8a74465b27974e60ab32ea05384.tar.bz2
jokey-20173ac6911ba8a74465b27974e60ab32ea05384.zip
drop old releases
svn path=/trunk/; revision=594
Diffstat (limited to 'app-emulation/virtualbox-ose')
-rw-r--r--app-emulation/virtualbox-ose/ChangeLog7
-rw-r--r--app-emulation/virtualbox-ose/Manifest6
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-2.0.4-r1.ebuild235
-rw-r--r--app-emulation/virtualbox-ose/virtualbox-ose-2.0.6.ebuild237
4 files changed, 6 insertions, 479 deletions
diff --git a/app-emulation/virtualbox-ose/ChangeLog b/app-emulation/virtualbox-ose/ChangeLog
index cbb195a..2eec40a 100644
--- a/app-emulation/virtualbox-ose/ChangeLog
+++ b/app-emulation/virtualbox-ose/ChangeLog
@@ -3,8 +3,11 @@
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/ChangeLog,v 1.9 2008/12/18 12:47:58 flameeyes Exp $
23 Jan 2009; Alessio Cassibba (X-Drum) <swapon@gmail.com>
- +virtualbox-ose-2.1.2.ebuild:
- Version Bump; drop sys-libs/libcap dependency
+ +files/virtualbox-ose-fix-nodbus-build.patch,
+ -virtualbox-ose-2.0.4-r1.ebuild, -virtualbox-ose-2.0.6.ebuild,
+ +virtualbox-ose-2.1.2.ebuild, virtualbox-ose-2.1.0.ebuild:
+ Version Bump; drop sys-libs/libcap dependency (2.1.2 release);
+ drop old releases
19 Dec 2008; Alessio Cassibba (X-Drum) <swapon@gmail.com>
+files/virtualbox-ose-2.1.0-allow-gcc43.patch,
diff --git a/app-emulation/virtualbox-ose/Manifest b/app-emulation/virtualbox-ose/Manifest
index 7435143..85023d8 100644
--- a/app-emulation/virtualbox-ose/Manifest
+++ b/app-emulation/virtualbox-ose/Manifest
@@ -11,15 +11,11 @@ AUX virtualbox-ose-fix-nodbus-build.patch 461 RMD160 f9e731a1d68947823d23bdfd4bc
AUX virtualbox-ose-interfaces 218 RMD160 4639b9848cf44ac59cd12585a3c56ef53d72a6d9 SHA1 3268e5759286bdff1c5242598266e6c2a5b17e5d SHA256 50ddbfedce3afd41aad45163eb799fce0956d815948ad9da842f09163aaafd52
AUX virtualbox-ose.desktop 202 RMD160 8b4b5c05743978d71edd4eaba71ae25f1d9d0d82 SHA1 3c10d2f12ea58ef35e785b8727a51fd3a0d66472 SHA256 9bbd26661317b106593d74b84cec3781b24c41bc40a2f98776e23d6b422ee4bb
DIST VirtualBox-1.6.6-OSE.tar.bz2 35483853 RMD160 4b17428371089806cf6f5e52d1905936f7beb01d SHA1 7c323b35d77277c650cbce2821ab6778d1e3270e SHA256 acb3c20ef751ed408489d7b5c2d5d441226055a6e83bfeb9258ce2d55baba4da
-DIST VirtualBox-2.0.4-OSE.tar.bz2 37841781 RMD160 390a2b4d97a3ed6fdc885b89354884a07b3fc464 SHA1 f8e7c109546c033927bd41e78f259adb81cb1504 SHA256 5618fb09efafac3fc9c183a44aa3c1d8c44d1d7fa58bfb5a73c221f1dd8740fd
-DIST VirtualBox-2.0.6-OSE.tar.bz2 37834467 RMD160 d75b9fbfe1311a5d83388d470d665ba8da0ab73b SHA1 e0f43d59b3309b37fe1703fb19b234f590598733 SHA256 75aea6e429beb953c8d0427cc38e4d25ccd849505ed57fdee0be22cada5497c5
DIST VirtualBox-2.1.0-OSE.tar.bz2 39382682 RMD160 8c35b83889fcba3bc263d54a0523690cc1bda8b3 SHA1 a6ad07118c4a1161c4afa44ccb95db25ef07b7e0 SHA256 80d9dbab379de5ef097019f3b94a8a7e7a6535c37aa0168286c8b2bf4a960c7a
DIST VirtualBox-2.1.2-OSE.tar.bz2 47889575 RMD160 7deb3f77fa546872abdd16ca3eee39085e8509cf SHA1 1035a4a33a8106c7492b79ef58a7d7c2cf35ad29 SHA256 d3c1ae8ed7594094aaf8496204c5415479e1943e5b5179c5baae8a66885362de
EBUILD virtualbox-ose-1.6.6-r1.ebuild 5993 RMD160 8c6d79e27f62919d45d2e2723e67eb450686969a SHA1 0cf299bee2c373762effd91457533737610b8b3a SHA256 7a30240d9a13b0b82c5c5fa531924c3118a7c4b871d7bf4c5f6b003562342492
-EBUILD virtualbox-ose-2.0.4-r1.ebuild 6995 RMD160 ca0d9153e0a5eb1fc43f728e35136a8b5329fafa SHA1 f9c84a5d55b64be4121a04cab452a1faf8f87e94 SHA256 a4f313e339fd907753aa30e77bc1bd825381493d8fe1ec0d382d57189e20a334
-EBUILD virtualbox-ose-2.0.6.ebuild 7029 RMD160 ae171e70b352c95714516795ba95a87a793aa64b SHA1 541e6f715308bb1e16423d11e55a8483086fc840 SHA256 f08bfc8cae4d1df3c0e543f215041609e80160ced3f52c8e4b62a49dab5ce9eb
EBUILD virtualbox-ose-2.1.0.ebuild 7137 RMD160 26a2d8085403fb13cb3d42829abc975682f4101c SHA1 b4661403e9ea6b115dc87de8b73b71c6723462d4 SHA256 d5ff7efd47ec133590ff02cdd385012b50255e3c4ed564fe9dfe808583a23932
EBUILD virtualbox-ose-2.1.2.ebuild 6421 RMD160 689006067f630adfa636f82cea02fcf99165e09a SHA1 65787d2865a4ffe4cdbaf63130214000715dc608 SHA256 6193e7036400c9edbd7b0d21163400dfdc45e802f2235893960227c8989c76a6
EBUILD virtualbox-ose-9999.ebuild 5731 RMD160 31267424bb17516ff9da52dca2fc9347a56a57c0 SHA1 c69cbbf5d852ad86a4eec3635db0273babafb46d SHA256 2af9ba22282152b463ab8e6130f32cd5e55a9b18172aa0ee9be6f2eb833cd6f2
-MISC ChangeLog 16577 RMD160 b2a8bcf909e58d5de573209ea7ea812368172b31 SHA1 04a19f791e1315e01648bb53499c7043c8f86fed SHA256 957ff97f35382c27990bba3ab37351ccd62e4023738bad38f794ef90083a9105
+MISC ChangeLog 16756 RMD160 6677a0f49f78db0a426a7f218e54e83e25a26edd SHA1 7a1acdb40505e3ba40628baadbf0c0650e83491a SHA256 564e230b782b5e9b45cebfe3b46c447df97da81f749481e65e36b7ab282f9642
MISC metadata.xml 532 RMD160 1fca6fac5f60adc258b878ecd959d2ca2adffafd SHA1 16730c1ea2b66f51e4eb6eaaa2bb570a9c56bb7d SHA256 578a25caafe911d389af1aeb097e4b732cdb48cdb33929af4ddbb1506ff09eeb
diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4-r1.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4-r1.ebuild
deleted file mode 100644
index e307be7..0000000
--- a/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4-r1.ebuild
+++ /dev/null
@@ -1,235 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4-r1.ebuild,v 1.1 2008/12/18 12:47:58 flameeyes Exp $
-
-EAPI=1
-
-inherit eutils fdo-mime flag-o-matic pax-utils qt4 toolchain-funcs
-
-MY_P=VirtualBox-${PV}-OSE
-DESCRIPTION="Softwarefamily of powerful x86 virtualization"
-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="+additions alsa headless pulseaudio python +qt4 sdk"
-
-RDEPEND="!app-emulation/virtualbox-bin
- ~app-emulation/virtualbox-modules-${PV}
- dev-libs/libIDL
- >=dev-libs/libxslt-1.1.19
- !headless? (
- qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) )
- x11-libs/libXcursor
- media-libs/libsdl
- x11-libs/libXt )"
-DEPEND="${RDEPEND}
- >=dev-util/kbuild-0.1.4
- >=dev-lang/yasm-0.6.2
- sys-devel/bin86
- sys-devel/dev86
- sys-power/iasl
- media-libs/libpng
- alsa? ( >=media-libs/alsa-lib-1.0.13 )
- pulseaudio? ( media-sound/pulseaudio )
- python? ( >=dev-lang/python-2.3 )"
-# sys-apps/hal is required at runtime (bug #197541)
-RDEPEND="${RDEPEND}
- additions? ( ~app-emulation/virtualbox-ose-additions-${PV} )
- sys-apps/usermode-utilities
- net-misc/bridge-utils
- sys-apps/hal"
-
-S=${WORKDIR}/${MY_P/-OSE/}
-MY_LIBDIR="$(get_libdir)"
-
-pkg_setup() {
- # known problems with gcc 4.3 and the recompiler
- # http://www.virtualbox.org/ticket/936
- if [[ "$(gcc-major-version)$(gcc-minor-version)" == "43" ]]; then
- eerror "there are known problems with gcc 4.3 and the virtualbox"
- eerror "recompiler stuff. Please use at least a version of gcc < 4.3"
- die "gcc 4.3 cannot build the virtualbox recompiler"
- fi
-
- if ! use headless; then
- # The VBoxSDL frontend needs media-libs/libsdl compiled
- # with USE flag X enabled (bug #177335)
- if ! built_with_use media-libs/libsdl X; then
- eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
- eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
- die "media-libs/libsdl should be compiled with the \"X\" USE flag."
- fi
- if ! use qt4; then
- einfo ""
- einfo "No USE=\"qt4\" selected, this build will not include"
- einfo "any Qt frontend."
- einfo ""
- fi
- else
- if use qt4; then
- einfo ""
- einfo "You selected USE=\"headless qt4\", defaulting to"
- einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
- einfo ""
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Remove shipped binaries (kBuild,yasm), see bug #232775
- rm -rf kBuild/bin tools
-
- # Disable things unused or splitted into separate ebuilds
- cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk
-
- # Set the right libdir
- sed -i \
- -e "s/MY_LIBDIR/${MY_LIBDIR}/" LocalConfig.kmk \
- || die "LocalConfig.kmk sed failed"
-
- # Fix Insecure temp file usage, see bug #245958
- epatch "${FILESDIR}/${PN}-fix-insecure-lockfiles.patch"
-}
-
-src_compile() {
-
- local myconf
- # Don't build vboxdrv kernel module, disable deprecated qt3 support
- myconf="--disable-kmods --disable-qt3"
-
- if ! use pulseaudio; then
- myconf="${myconf} --disable-pulse"
- fi
- if ! use python; then
- myconf="${myconf} --disable-python"
- fi
- if ! use alsa; then
- myconf="${myconf} --disable-alsa"
- fi
- if ! use headless; then
- if ! use qt4; then
- myconf="${myconf} --disable-qt4"
- fi
- else
- myconf="${myconf} --build-headless"
- fi
-
- ./configure --with-gcc="$(tc-getCC)" --with-g++="$(tc-getCXX)" \
- ${myconf} || die "configure failed"
- 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
-
- # Create configuration files
- insinto /etc/vbox
- newins "${FILESDIR}/${PN}-2-config" vbox.cfg
- newins "${FILESDIR}/${PN}-interfaces" interfaces
-
- # Set the right libdir
- sed -i \
- -e "s/MY_LIBDIR/${MY_LIBDIR}/" \
- "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
-
- # Symlink binaries to the shipped wrapper
- exeinto /usr/${MY_LIBDIR}/${PN}
- newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBox
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBox
- newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF" || die
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxAddIF
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxAddIF
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxManage
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxVRDP
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxHeadless
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxAddIF
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxDeleteIF
-
- # Install binaries and libraries
- insinto /usr/${MY_LIBDIR}/${PN}
- doins -r components
-
- if use sdk; then
- doins -r sdk
- fi
-
- for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do
- doins $each
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each}
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/${each}
- done
-
- if use amd64; then
- doins VBoxREM2.rel
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel
- fi
-
- if ! use headless; then
- for each in VBox{SDL,Headless} ; do
- doins $each
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each}
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/${each}
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/${each}
- done
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxSDL
-
- if use qt4; then
- doins VirtualBox
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VirtualBox
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/VirtualBox
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VirtualBox
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VirtualBox
- fi
-
- newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png
- domenu "${FILESDIR}"/${PN}.desktop
- else
- doins VBoxHeadless
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- fi
-
- insinto /usr/share/${PN}
- doins -r nls
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- elog ""
- if ! use headless; then
- elog "To launch VirtualBox just type: \"VirtualBox\""
- fi
- elog "You must be in the vboxusers group to use VirtualBox."
- elog ""
- elog "The last user manual is available for download at:"
- elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
- elog ""
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
-}
diff --git a/app-emulation/virtualbox-ose/virtualbox-ose-2.0.6.ebuild b/app-emulation/virtualbox-ose/virtualbox-ose-2.0.6.ebuild
deleted file mode 100644
index ba4196e..0000000
--- a/app-emulation/virtualbox-ose/virtualbox-ose-2.0.6.ebuild
+++ /dev/null
@@ -1,237 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.6.ebuild,v 1.1 2008/12/18 12:47:58 flameeyes Exp $
-
-EAPI=1
-
-inherit eutils fdo-mime flag-o-matic pax-utils qt4 toolchain-funcs
-
-MY_P=VirtualBox-${PV}-OSE
-DESCRIPTION="Softwarefamily of powerful x86 virtualization"
-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="+additions alsa headless pulseaudio python +qt4 sdk"
-
-RDEPEND="!app-emulation/virtualbox-bin
- ~app-emulation/virtualbox-modules-${PV}
- dev-libs/libIDL
- >=dev-libs/libxslt-1.1.19
- !headless? (
- qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) )
- x11-libs/libXcursor
- media-libs/libsdl
- x11-libs/libXt )"
-DEPEND="${RDEPEND}
- >=dev-util/kbuild-0.1.4
- >=dev-lang/yasm-0.6.2
- sys-devel/bin86
- sys-devel/dev86
- sys-power/iasl
- media-libs/libpng
- alsa? ( >=media-libs/alsa-lib-1.0.13 )
- pulseaudio? ( media-sound/pulseaudio )
- python? ( >=dev-lang/python-2.3 )"
-# sys-apps/hal is required at runtime (bug #197541)
-RDEPEND="${RDEPEND}
- additions? ( ~app-emulation/virtualbox-ose-additions-${PV} )
- sys-apps/usermode-utilities
- net-misc/bridge-utils
- sys-apps/hal"
-
-S=${WORKDIR}/${MY_P/-OSE/}
-MY_LIBDIR="$(get_libdir)"
-
-pkg_setup() {
- # known problems with gcc 4.3 and the recompiler
- # http://www.virtualbox.org/ticket/936
- if [[ "$(gcc-major-version)$(gcc-minor-version)" == "43" ]]; then
- eerror "there are known problems with gcc 4.3 and the virtualbox"
- eerror "recompiler stuff. Please use at least a version of gcc < 4.3"
- die "gcc 4.3 cannot build the virtualbox recompiler"
- fi
-
- if ! use headless; then
- # The VBoxSDL frontend needs media-libs/libsdl compiled
- # with USE flag X enabled (bug #177335)
- if ! built_with_use media-libs/libsdl X; then
- eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled."
- eerror "Please re-emerge media-libs/libsdl with USE=\"X\"."
- die "media-libs/libsdl should be compiled with the \"X\" USE flag."
- fi
- if ! use qt4; then
- einfo ""
- einfo "No USE=\"qt4\" selected, this build will not include"
- einfo "any Qt frontend."
- einfo ""
- fi
- else
- if use qt4; then
- einfo ""
- einfo "You selected USE=\"headless qt4\", defaulting to"
- einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
- einfo ""
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Remove shipped binaries (kBuild,yasm), see bug #232775
- rm -rf kBuild/bin tools
-
- # Disable things unused or splitted into separate ebuilds
- cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk
-
- # Set the right libdir
- sed -i \
- -e "s/MY_LIBDIR/${MY_LIBDIR}/" LocalConfig.kmk \
- || die "LocalConfig.kmk sed failed"
-
- # fix headers troubles with 2.6.28 kernel (bug #253004)
- if kernel_is 2 6 28 ; then
- epatch "${FILESDIR}/${PN}-fix-2.6.28-headers.patch"
- fi
-}
-
-src_compile() {
-
- local myconf
- # Don't build vboxdrv kernel module, disable deprecated qt3 support
- myconf="--disable-kmods --disable-qt3"
-
- if ! use pulseaudio; then
- myconf="${myconf} --disable-pulse"
- fi
- if ! use python; then
- myconf="${myconf} --disable-python"
- fi
- if ! use alsa; then
- myconf="${myconf} --disable-alsa"
- fi
- if ! use headless; then
- if ! use qt4; then
- myconf="${myconf} --disable-qt4"
- fi
- else
- myconf="${myconf} --build-headless"
- fi
-
- ./configure --with-gcc="$(tc-getCC)" --with-g++="$(tc-getCXX)" \
- ${myconf} || die "configure failed"
- 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
-
- # Create configuration files
- insinto /etc/vbox
- newins "${FILESDIR}/${PN}-2-config" vbox.cfg
- newins "${FILESDIR}/${PN}-interfaces" interfaces
-
- # Set the right libdir
- sed -i \
- -e "s/MY_LIBDIR/${MY_LIBDIR}/" \
- "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
-
- # Symlink binaries to the shipped wrapper
- exeinto /usr/${MY_LIBDIR}/${PN}
- newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBox
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBox
- newexe "${S}"/src/VBox/Installer/linux/VBoxAddIF.sh "VBoxAddIF" || die
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxAddIF
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxAddIF
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxManage
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxVRDP
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxHeadless
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxAddIF
- dosym /usr/${MY_LIBDIR}/${PN}/VBoxAddIF /usr/bin/VBoxDeleteIF
-
- # Install binaries and libraries
- insinto /usr/${MY_LIBDIR}/${PN}
- doins -r components
-
- if use sdk; then
- doins -r sdk
- fi
-
- for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do
- doins $each
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each}
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/${each}
- done
-
- if use amd64; then
- doins VBoxREM2.rel
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel
- fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel
- fi
-
- if ! use headless; then
- for each in VBox{SDL,Headless} ; do
- doins $each
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each}
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/${each}
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/${each}
- done
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxSDL
-
- if use qt4; then
- doins VirtualBox
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VirtualBox
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/VirtualBox
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VirtualBox
-
- dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VirtualBox
- fi
-
- newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png
- domenu "${FILESDIR}"/${PN}.desktop
- else
- doins VBoxHeadless
- fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- fperms 4750 /usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VBoxHeadless
- fi
-
- insinto /usr/share/${PN}
- doins -r nls
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- elog ""
- if ! use headless; then
- elog "To launch VirtualBox just type: \"VirtualBox\""
- fi
- elog "You must be in the vboxusers group to use VirtualBox."
- elog ""
- elog "The last user manual is available for download at:"
- elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
- elog ""
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
-}