app-emulation/virtualbox: Revbumps to finally install vnc ExtPack
authorLars Wendler <polynomial-c@gentoo.org>
Sat, 20 Apr 2019 11:30:50 +0000 (13:30 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Sat, 20 Apr 2019 11:31:22 +0000 (13:31 +0200)
also install dtrace ExtPack if requested.

Closes: https://bugs.gentoo.org/438930
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-emulation/virtualbox/metadata.xml
app-emulation/virtualbox/virtualbox-5.2.28-r1.ebuild [moved from app-emulation/virtualbox/virtualbox-5.2.28.ebuild with 95% similarity]
app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild [moved from app-emulation/virtualbox/virtualbox-6.0.6.ebuild with 95% similarity]

index 0c28b5e719734a8bb1b0a59effd452a12e4e3611..3a2ea79813a62b05497f943f914f969f3ccebdef 100644 (file)
@@ -6,6 +6,7 @@
     <name>Lars Wendler</name>
   </maintainer>
   <use>
+  <flag name="dtrace">Install dtrace Extension Pack</flag>
   <flag name="headless">Build without any graphic frontend</flag>
   <flag name="lvm">Build VBoxVolInfo that needs devicemapper from <pkg>sys-fs/lvm2</pkg>.</flag>
   <flag name="pax_kernel">Apply patch needed for pax enabled kernels.</flag>
similarity index 95%
rename from app-emulation/virtualbox/virtualbox-5.2.28.ebuild
rename to app-emulation/virtualbox/virtualbox-5.2.28-r1.ebuild
index 4464ccc84a0a41bcd7bc81ba81aa2a96f4d85e0a..05f95844d59262cb6a7b1ee7042a26ce72d3a60c 100644 (file)
@@ -15,10 +15,10 @@ HOMEPAGE="https://www.virtualbox.org/"
 SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
        https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.16-patches-02.tar.xz"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2 dtrace? ( CDDL )"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
+IUSE="alsa debug doc dtrace headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
 
 RDEPEND="!app-emulation/virtualbox-bin
        ~app-emulation/virtualbox-modules-${PV}
@@ -424,6 +424,22 @@ src_install() {
                newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
        fi
 
+       # Fix version string in extensions or else they don't get accepted
+       # by the virtualbox host process (see bug #438930)
+       find ExtensionPacks -type f -name "ExtPack.xml" -print0 \
+               | xargs --no-run-if-empty --null sed -i '/Version/s@_Gentoo@@' \
+               || die
+
+       if use vnc ; then
+               insinto ${vbox_inst_path}/ExtensionPacks
+               doins -r ExtensionPacks/VNC
+       fi
+
+       if use dtrace ; then
+               insinto ${vbox_inst_path}/ExtensionPacks
+               doins -r ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack
+       fi
+
        if use doc ; then
                dodoc UserManual.pdf
        fi
similarity index 95%
rename from app-emulation/virtualbox/virtualbox-6.0.6.ebuild
rename to app-emulation/virtualbox/virtualbox-6.0.6-r1.ebuild
index 8c7e76ae253887d0dfed4b343f91cbdaa544c17a..ac99dd66bda21eb35d0692c443b46e245ea3273f 100644 (file)
@@ -15,11 +15,11 @@ HOMEPAGE="https://www.virtualbox.org/"
 SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
        https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-6.0.0_beta2-patches-01.tar.xz"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2 dtrace? ( CDDL )"
 SLOT="0"
 [[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
 KEYWORDS="~amd64 ~x86"
-IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
+IUSE="alsa debug doc dtrace headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
 
 RDEPEND="!app-emulation/virtualbox-bin
        ~app-emulation/virtualbox-modules-${PV}
@@ -427,6 +427,22 @@ src_install() {
                newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
        fi
 
+       # Fix version string in extensions or else they don't get accepted
+       # by the virtualbox host process (see bug #438930)
+       find ExtensionPacks -type f -name "ExtPack.xml" -print0 \
+               | xargs --no-run-if-empty --null sed -i '/Version/s@_Gentoo@@' \
+               || die
+
+       if use vnc ; then
+               insinto ${vbox_inst_path}/ExtensionPacks
+               doins -r ExtensionPacks/VNC
+       fi
+
+       if use dtrace ; then
+               insinto ${vbox_inst_path}/ExtensionPacks
+               doins -r ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack
+       fi
+
        if use doc ; then
                dodoc UserManual.pdf
        fi