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 1A5E81388C2 for ; Tue, 1 Mar 2016 11:52:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF20021C002; Tue, 1 Mar 2016 11:52:15 +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 4CCF1E07FC for ; Tue, 1 Mar 2016 11:52:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A5EB34069F for ; Tue, 1 Mar 2016 11:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BAB3618A5 for ; Tue, 1 Mar 2016 11:52:11 +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: <1456833121.db8ab7601a5f2dfbb20156cee12148bc79d75893.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/kwallet-pam/ X-VCS-Repository: proj/kde X-VCS-Files: kde-plasma/kwallet-pam/kwallet-pam-5.5.49.9999.ebuild kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild X-VCS-Directories: kde-plasma/kwallet-pam/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: db8ab7601a5f2dfbb20156cee12148bc79d75893 X-VCS-Branch: master Date: Tue, 1 Mar 2016 11:52:11 +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: 9a2ed406-b17b-48e1-acd1-73f2ebb85dd2 X-Archives-Hash: 54597e22634a22ff4d1c1d1cfeaeb112 commit: db8ab7601a5f2dfbb20156cee12148bc79d75893 Author: Andreas Sturmlechner gmail com> AuthorDate: Sun Feb 28 02:00:50 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Tue Mar 1 11:52:01 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=db8ab760 kde-plasma/kwallet-pam: Add pkg_postinst instructions, ECM to DEPENDs Package-Manager: portage-2.2.27 .../kwallet-pam/kwallet-pam-5.5.49.9999.ebuild | 25 +++++++++++++++++ kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild | 32 ++++++++++++++++++++-- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.5.49.9999.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.5.49.9999.ebuild index 6b531b3..8925848 100644 --- a/kde-plasma/kwallet-pam/kwallet-pam-5.5.49.9999.ebuild +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.5.49.9999.ebuild @@ -27,3 +27,28 @@ src_configure() { kde5_src_configure } + +pkg_postinst() { + check_dm() { + if [[ -e "${ROOT}${2}" ]] && \ + [[ -n $(egrep "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}") ]] && \ + [[ -n $(egrep "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}") ]]; then + elog " ${1} - ${2} ...GOOD" + else + ewarn " ${1} - ${2} ...BAD" + fi + } + elog + elog "This package enables auto-unlocking of kde-frameworks/kwallet:5." + elog "List of things to make it work:" + elog "1. Use same password for login and kwallet" + elog "2. A display manager with support for PAM" + elog "3.a Have the following lines in the display manager's pam.d file:" + elog " -auth optional pam_kwallet5.so" + elog " -session optional pam_kwallet5.so auto_start" + elog "3.b Checking installed DMs..." + has_version "x11-misc/sddm" && check_dm "SDDM" "/etc/pam.d/sddm" + has_version "x11-misc/lightdm" && check_dm "LightDM" "/etc/pam.d/lightdm" + has_version "kde-base/kdm" && check_dm "KDM" "/etc/pam.d/kde" + elog +} diff --git a/kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild index 6b531b3..8b857d9 100644 --- a/kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild +++ b/kde-plasma/kwallet-pam/kwallet-pam-9999.ebuild @@ -12,11 +12,14 @@ LICENSE="LGPL-2.1" KEYWORDS="" IUSE="" -DEPEND=" +COMMON_DEPEND=" dev-libs/libgcrypt:0= virtual/pam " -RDEPEND="${DEPEND} +DEPEND="${COMMON_DEPEND} + $(add_frameworks_dep extra-cmake-modules) +" +RDEPEND="${COMMON_DEPEND} net-misc/socat " @@ -27,3 +30,28 @@ src_configure() { kde5_src_configure } + +pkg_postinst() { + check_dm() { + if [[ -e "${ROOT}${2}" ]] && \ + [[ -n $(egrep "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}") ]] && \ + [[ -n $(egrep "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}") ]]; then + elog " ${1} - ${2} ...GOOD" + else + ewarn " ${1} - ${2} ...BAD" + fi + } + elog + elog "This package enables auto-unlocking of kde-frameworks/kwallet:5." + elog "List of things to make it work:" + elog "1. Use same password for login and kwallet" + elog "2. A display manager with support for PAM" + elog "3.a Have the following lines in the display manager's pam.d file:" + elog " -auth optional pam_kwallet5.so" + elog " -session optional pam_kwallet5.so auto_start" + elog "3.b Checking installed DMs..." + has_version "x11-misc/sddm" && check_dm "SDDM" "/etc/pam.d/sddm" + has_version "x11-misc/lightdm" && check_dm "LightDM" "/etc/pam.d/lightdm" + has_version "kde-base/kdm" && check_dm "KDM" "/etc/pam.d/kde" + elog +}