commit:     f1fcb7f8fe61b6e0c026a206b5545ed56344bd88
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 17:46:01 2021 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 17:46:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1fcb7f8

x11-misc/wdm: install pam files conditionally

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 x11-misc/wdm/{wdm-1.28-r4.ebuild => wdm-1.28-r6.ebuild} | 7 +++++--
 x11-misc/wdm/{wdm-1.28-r5.ebuild => wdm-1.28-r7.ebuild} | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/x11-misc/wdm/wdm-1.28-r4.ebuild b/x11-misc/wdm/wdm-1.28-r6.ebuild
similarity index 87%
rename from x11-misc/wdm/wdm-1.28-r4.ebuild
rename to x11-misc/wdm/wdm-1.28-r6.ebuild
index f6b3385ca80..1ba2a83d76c 100644
--- a/x11-misc/wdm/wdm-1.28-r4.ebuild
+++ b/x11-misc/wdm/wdm-1.28-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -41,5 +41,8 @@ src_install() {
        default
 
        rm -f "${ED%/}"/etc/pam.d/wdm || die
-       pamd_mimic system-local-login wdm auth account password session
+
+       if use pam; then
+               pamd_mimic system-local-login wdm auth account password session
+       fi
 }

diff --git a/x11-misc/wdm/wdm-1.28-r5.ebuild b/x11-misc/wdm/wdm-1.28-r7.ebuild
similarity index 89%
rename from x11-misc/wdm/wdm-1.28-r5.ebuild
rename to x11-misc/wdm/wdm-1.28-r7.ebuild
index 797dafa1bf9..d94c2400480 100644
--- a/x11-misc/wdm/wdm-1.28-r5.ebuild
+++ b/x11-misc/wdm/wdm-1.28-r7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -53,5 +53,8 @@ src_install() {
        default
 
        rm -f "${ED}"/etc/pam.d/wdm || die
-       pamd_mimic system-local-login wdm auth account password session
+
+       if use pam; then
+               pamd_mimic system-local-login wdm auth account password session
+       fi
 }

Reply via email to