diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2011-07-26 22:10:48 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2011-07-26 22:10:48 +0200 |
commit | 256abb028713a9abc4fbf692451905b6a1e42f02 (patch) | |
tree | 72bd5aa63e363d510864d252dd976546119bccff /app-emulation/virtualbox/virtualbox-4.0.12.ebuild | |
parent | 1b0245eb5ba04081b0713f583511e070dce92169 (diff) | |
download | overlay-256abb028713a9abc4fbf692451905b6a1e42f02.tar.gz overlay-256abb028713a9abc4fbf692451905b6a1e42f02.tar.bz2 overlay-256abb028713a9abc4fbf692451905b6a1e42f02.zip |
Patched virtualbox to depend on PAM optionally
Diffstat (limited to 'app-emulation/virtualbox/virtualbox-4.0.12.ebuild')
-rw-r--r-- | app-emulation/virtualbox/virtualbox-4.0.12.ebuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app-emulation/virtualbox/virtualbox-4.0.12.ebuild b/app-emulation/virtualbox/virtualbox-4.0.12.ebuild index 9d0ae18..99c4ca2 100644 --- a/app-emulation/virtualbox/virtualbox-4.0.12.ebuild +++ b/app-emulation/virtualbox/virtualbox-4.0.12.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="http://www.virtualbox.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" -IUSE="+additions alsa doc extensions headless java pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" +IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" RDEPEND="!app-emulation/virtualbox-bin ~app-emulation/virtualbox-modules-${PV} @@ -56,7 +56,7 @@ DEPEND="${RDEPEND} sys-devel/dev86 sys-power/iasl media-libs/libpng - sys-libs/pam + pam? ( sys-libs/pam ) sys-libs/libcap doc? ( dev-texlive/texlive-basic @@ -145,6 +145,13 @@ src_prepare() { sed -e "s/MY_LIBDIR/$(get_libdir)/" \ "${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die + # Use PAM only when wanted + if ! use pam; then + elog "Disabling PAM removes the possibility to use the VRDP features." + sed -i 's/^.*VBOX_WITH_PAM/#VBOX_WITH_PAM/' Config.kmk || die + sed -i 's/^.*VBoxAuth_SOURCES.\(linux\|freebsd\).*//' src/VBox/HostServices/auth/Makefile.kmk || die + fi + # unset useless/problematic checks in configure epatch "${FILESDIR}/${PN}-ose-3.2.8-mesa-check.patch" \ "${FILESDIR}/${PN}-4-makeself-check.patch" \ |