From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C40EE58973 for ; Sat, 30 Jan 2016 14:22:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 316CCE0851; Sat, 30 Jan 2016 14:22:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA9F2E0851 for ; Sat, 30 Jan 2016 14:22:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 864F73408DD for ; Sat, 30 Jan 2016 14:22:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A54B8E7 for ; Sat, 30 Jan 2016 14:22:23 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1454163732.448091cb54719cb8c1bb02466dbb4051a10fff0b.kensington@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/sddm/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/sddm/sddm-0.12.0-r1.ebuild x11-misc/sddm/sddm-0.13.0-r1.ebuild X-VCS-Directories: x11-misc/sddm/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 448091cb54719cb8c1bb02466dbb4051a10fff0b X-VCS-Branch: master Date: Sat, 30 Jan 2016 14:22:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3b81f935-d222-4f2a-8c0b-bde69eeec535 X-Archives-Hash: f4f1d1f5507e9e1a3fb5d065b85b7b0d commit: 448091cb54719cb8c1bb02466dbb4051a10fff0b Author: Andreas Sturmlechner gmail com> AuthorDate: Sat Jan 30 13:35:47 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Sat Jan 30 14:22:12 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448091cb x11-misc/sddm: Add ewarn for erroneous existing pambase config Previous recommendation for sddm without real consolekit support breaks modern sddm with consolekit2 support. x11-misc/sddm/sddm-0.12.0-r1.ebuild | 14 ++++++++++++++ x11-misc/sddm/sddm-0.13.0-r1.ebuild | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/x11-misc/sddm/sddm-0.12.0-r1.ebuild b/x11-misc/sddm/sddm-0.12.0-r1.ebuild index 2b31915..c472cbc 100644 --- a/x11-misc/sddm/sddm-0.12.0-r1.ebuild +++ b/x11-misc/sddm/sddm-0.12.0-r1.ebuild @@ -62,4 +62,18 @@ src_configure() { pkg_postinst() { enewgroup ${PN} enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} video + + if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then + local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login) + if [[ -z ${line} ]]; then + ewarn + ewarn "Erroneous /etc/pam.d/system-login settings detected!" + ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:" + ewarn + ewarn "session optional pam_ck_connector.so nox11" + ewarn + ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update." + ewarn + fi + fi } diff --git a/x11-misc/sddm/sddm-0.13.0-r1.ebuild b/x11-misc/sddm/sddm-0.13.0-r1.ebuild index 7c61eb0..8b55dfb 100644 --- a/x11-misc/sddm/sddm-0.13.0-r1.ebuild +++ b/x11-misc/sddm/sddm-0.13.0-r1.ebuild @@ -62,4 +62,18 @@ src_configure() { pkg_postinst() { enewgroup ${PN} enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} video + + if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then + local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login) + if [[ -z ${line} ]]; then + ewarn + ewarn "Erroneous /etc/pam.d/system-login settings detected!" + ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:" + ewarn + ewarn "session optional pam_ck_connector.so nox11" + ewarn + ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update." + ewarn + fi + fi }