diff options
author | Sam James <sam@gentoo.org> | 2022-07-06 03:22:32 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-06 03:22:32 +0100 |
commit | fa21e2695b3da1f1b8935b13253cbd8d272719a2 (patch) | |
tree | 9344f1047b671fe7c93d0336562d11c09fcadf70 /app-emulation | |
parent | app-emulation/virtualbox: minor ebuild tidying (diff) | |
download | gentoo-fa21e2695b3da1f1b8935b13253cbd8d272719a2.tar.gz gentoo-fa21e2695b3da1f1b8935b13253cbd8d272719a2.tar.bz2 gentoo-fa21e2695b3da1f1b8935b13253cbd8d272719a2.zip |
app-emulation/virtualbox: use optfeature
Closes: https://bugs.gentoo.org/674496
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/virtualbox/virtualbox-6.1.34-r3.ebuild | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/app-emulation/virtualbox/virtualbox-6.1.34-r3.ebuild b/app-emulation/virtualbox/virtualbox-6.1.34-r3.ebuild index 388c4e9cc7c0..db2898848eba 100644 --- a/app-emulation/virtualbox/virtualbox-6.1.34-r3.ebuild +++ b/app-emulation/virtualbox/virtualbox-6.1.34-r3.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) -inherit desktop edo java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg +inherit desktop edo java-pkg-opt-2 linux-info multilib optfeature pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg MY_PN="VirtualBox" MY_PV="${PV/beta/BETA}" @@ -487,8 +487,8 @@ pkg_postinst() { xdg_pkg_postinst if use udev ; then - udevadm control --reload-rules \ - && udevadm trigger --subsystem-match=usb + udevadm control --reload-rules + udevadm trigger --subsystem-match=usb fi tmpfiles_process virtualbox-vboxusb.conf @@ -496,27 +496,18 @@ pkg_postinst() { if ! use headless && use qt5 ; then elog "To launch VirtualBox just type: \"virtualbox\"." fi + elog "You must be in the vboxusers group to use VirtualBox." elog "" elog "The latest user manual is available for download at:" - elog "http://download.virtualbox.org/virtualbox/${DIR_PV:-${PV}}/UserManual.pdf" - elog "" - elog "For advanced networking setups you should emerge:" - elog "net-misc/bridge-utils and sys-apps/usermode-utilities" + elog "https://download.virtualbox.org/virtualbox/${DIR_PV:-${PV}}/UserManual.pdf" elog "" - elog "Starting with version 4.0.0, ${PN} has USB-1 support." - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge" - elog " app-emulation/virtualbox-extpack-oracle" - elog "package." - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and" - elog "the \"extension\" USE flag. For installation of the guest additions ISO" - elog "image, please emerge" - elog " app-emulation/virtualbox-additions" - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge" - elog " app-emulation/virtualbox-extpack-oracle" + + optfeature "Advanced networking setups" net-misc/bridge-utils sys-apps/usermode-utilities + optfeature "USB2, USB3, PXE boot, and VRDP support" app-emulation/virtualbox-extpack-oracle + optfeature "Guest additions ISO" app-emulation/virtualbox-additions + if ! use udev ; then - elog "" - elog "WARNING!" - elog "Without USE=udev, USB devices will likely not work in ${PN}." + ewarn "Without USE=udev, USB devices will likely not work in ${PN}." fi } |