diff options
Diffstat (limited to 'trinity-base/tdebase-pam')
-rw-r--r-- | trinity-base/tdebase-pam/files/tde-elogind.pam-7 | 12 | ||||
-rw-r--r-- | trinity-base/tdebase-pam/tdebase-pam-7.ebuild | 8 |
2 files changed, 18 insertions, 2 deletions
diff --git a/trinity-base/tdebase-pam/files/tde-elogind.pam-7 b/trinity-base/tdebase-pam/files/tde-elogind.pam-7 new file mode 100644 index 00000000..9baa77df --- /dev/null +++ b/trinity-base/tdebase-pam/files/tde-elogind.pam-7 @@ -0,0 +1,12 @@ +#%PAM-1.0 + +auth required pam_nologin.so +auth include system-auth + +account include system-auth + +password include system-auth + +session include system-auth + +session optional pam_elogind.so diff --git a/trinity-base/tdebase-pam/tdebase-pam-7.ebuild b/trinity-base/tdebase-pam/tdebase-pam-7.ebuild index 95f704e7..6a4d676c 100644 --- a/trinity-base/tdebase-pam/tdebase-pam-7.ebuild +++ b/trinity-base/tdebase-pam/tdebase-pam-7.ebuild @@ -9,12 +9,16 @@ HOMEPAGE="https://trinitydesktop.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86" -IUSE="" +IUSE="elogind" DEPEND="sys-libs/pam" RDEPEND="${DEPEND}" src_install() { - newpamd "${FILESDIR}/tde.pam-${PV}" tde + if use elogind ; then + newpamd "${FILESDIR}/tde-elogind.pam-${PV}" tde + else + newpamd "${FILESDIR}/tde.pam-${PV}" tde + fi newpamd "${FILESDIR}/tde-np.pam-6" tde-np } |