From 89f57861f1c77e7ef625456b037742d9f213666a Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 5 Dec 2016 10:35:46 -0500 Subject: app-emulation/open-vm-tools: fix install with pam disabled Bug: https://bugs.gentoo.org/601640 Package-Manager: portage-2.3.2_p13 --- app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app-emulation/open-vm-tools') diff --git a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild index 774fa4090a8d..36bbff37c060 100644 --- a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild +++ b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild @@ -122,8 +122,10 @@ src_install() { default prune_libtool_files --modules - rm "${ED%/}"/etc/pam.d/vmtoolsd || die - pamd_mimic_system vmtoolsd auth account + if use pam; then + rm "${ED%/}"/etc/pam.d/vmtoolsd || die + pamd_mimic_system vmtoolsd auth account + fi newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools -- cgit v1.2.3-65-gdbad