summaryrefslogtreecommitdiff
path: root/lxde-base/lxdm/lxdm-0.5.0.ebuild
diff options
context:
space:
mode:
authorMarcin Deranek <gringo@slonko.net>2014-11-08 14:01:04 +0100
committerMarcin Deranek <gringo@slonko.net>2014-11-08 14:01:04 +0100
commita16f75deb9b51406a7dcf4899b595ea29efed593 (patch)
tree764881ea0a0cbd9719e96d37f6efda7e3f5c34e4 /lxde-base/lxdm/lxdm-0.5.0.ebuild
parent939ade5c62d221d48e5e84f3437ee02c77970019 (diff)
downloadportage-a16f75deb9b51406a7dcf4899b595ea29efed593.tar.gz
portage-a16f75deb9b51406a7dcf4899b595ea29efed593.tar.bz2
portage-a16f75deb9b51406a7dcf4899b595ea29efed593.zip
Cleanup pam/lxdm when selinux isn't used
Diffstat (limited to 'lxde-base/lxdm/lxdm-0.5.0.ebuild')
-rw-r--r--lxde-base/lxdm/lxdm-0.5.0.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/lxde-base/lxdm/lxdm-0.5.0.ebuild b/lxde-base/lxdm/lxdm-0.5.0.ebuild
index deac830..35cba68 100644
--- a/lxde-base/lxdm/lxdm-0.5.0.ebuild
+++ b/lxde-base/lxdm/lxdm-0.5.0.ebuild
@@ -15,7 +15,7 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
-IUSE="consolekit debug gtk3 nls pam"
+IUSE="consolekit debug gtk3 nls pam selinux"
RDEPEND="consolekit? ( sys-auth/consolekit )
x11-libs/libxcb
@@ -34,6 +34,9 @@ src_prepare() {
sed -i -e '/pam_console.so/d' pam/lxdm
+ if ! use selinux; then
+ sed -i -e '/pam_selinux.so/d' pam/lxdm
+ fi
# Allow user to apply any additional patches without modifing ebuild
epatch_user