public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwallet-pam/
Date: Thu,  7 Apr 2016 16:12:54 +0000 (UTC)	[thread overview]
Message-ID: <1460045563.6005c98c26eed73212aee70d46a4fa2b343c2278.kensington@gentoo> (raw)

commit:     6005c98c26eed73212aee70d46a4fa2b343c2278
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Thu Apr  7 14:29:34 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Apr  7 16:12:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6005c98c

kde-plasma/kwallet-pam: Add USE=oldwallet, block kde-apps/kwalletd-pam

Improvements to pkg_postinst thx to Arfrever.

Package-Manager: portage-2.2.27

 kde-plasma/kwallet-pam/kwallet-pam-5.6.2-r1.ebuild | 90 ++++++++++++++++++++++
 kde-plasma/kwallet-pam/metadata.xml                |  3 +
 2 files changed, 93 insertions(+)

diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.6.2-r1.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.6.2-r1.ebuild
new file mode 100644
index 0000000..9c5669e
--- /dev/null
+++ b/kde-plasma/kwallet-pam/kwallet-pam-5.6.2-r1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_AUTODEPS="false"
+inherit kde5 multibuild multilib
+
+DESCRIPTION="KWallet PAM module to not enter password again"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+oldwallet"
+
+COMMON_DEPEND="
+	dev-libs/libgcrypt:0=
+	virtual/pam
+"
+DEPEND="${COMMON_DEPEND}
+	$(add_frameworks_dep extra-cmake-modules)
+	$(add_qt_dep qtcore)
+"
+RDEPEND="${COMMON_DEPEND}
+	!kde-apps/kwalletd-pam
+	net-misc/socat
+"
+
+pkg_setup() {
+	kde5_pkg_setup
+	MULTIBUILD_VARIANTS=( kf5 $(usev oldwallet) )
+}
+
+src_configure() {
+	myconfigure() {
+		local mycmakeargs=(
+			-DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
+		)
+		[[ ${MULTIBUILD_VARIANT} = oldwallet ]] && mycmakeargs+=( -DKWALLET4=1 )
+
+		kde5_src_configure
+	}
+	multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+	multibuild_foreach_variant kde5_src_compile
+}
+
+src_install() {
+	multibuild_foreach_variant kde5_src_install
+}
+
+pkg_postinst() {
+	check_dm() {
+		local good
+		if [[ -e "${ROOT}${2}" ]] ; then
+			if grep -Eq "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" && \
+				grep -Eq "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" ; then
+				good=true
+			fi
+			if use oldwallet ; then
+				if ! grep -Eq "auth\s+optional\s+pam_kwallet.so" "${ROOT}${2}" || \
+					! grep -Eq "session\s+optional\s+pam_kwallet.so" "${ROOT}${2}" ; then
+					good=false
+				fi
+			fi
+		fi
+		[[ "${good}" = true ]] && \
+			elog "    ${1} - ${2} ...GOOD" || \
+			ewarn "    ${1} - ${2} ...BAD"
+	}
+	elog
+	elog "This package enables auto-unlocking of kde-frameworks/kwallet:5."
+	use oldwallet && elog "You have also selected support for legacy kde-apps/kwalletd:4."
+	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"
+	if use oldwallet ; then
+		elog "    -auth        optional        pam_kwallet.so kdehome=.kde4"
+		elog "    -session     optional        pam_kwallet.so"
+	fi
+	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/metadata.xml b/kde-plasma/kwallet-pam/metadata.xml
index 2fdbf33..033c611 100644
--- a/kde-plasma/kwallet-pam/metadata.xml
+++ b/kde-plasma/kwallet-pam/metadata.xml
@@ -5,4 +5,7 @@
 		<email>kde@gentoo.org</email>
 		<name>Gentoo KDE Project</name>
 	</maintainer>
+	<use>
+		<flag name="oldwallet">Enable legacy support for <pkg>kde-apps/kwalletd</pkg></flag>
+	</use>
 </pkgmetadata>


             reply	other threads:[~2016-04-07 16:13 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 16:12 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-10 10:13 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwallet-pam/ WANG Xuerui
2023-08-16 13:33 Arthur Zamarin
2023-08-16 13:23 Arthur Zamarin
2023-07-23 21:54 Sam James
2023-07-15 10:31 Arthur Zamarin
2023-05-22  8:27 Arthur Zamarin
2023-05-21 19:51 Sam James
2023-05-21  6:10 Arthur Zamarin
2023-04-22 15:10 Arthur Zamarin
2023-04-22 15:04 Arthur Zamarin
2023-04-22 14:57 Arthur Zamarin
2023-03-22 23:01 Andreas Sturmlechner
2023-03-22 23:01 Andreas Sturmlechner
2023-02-01  6:41 Arthur Zamarin
2023-01-24 18:40 Arthur Zamarin
2022-12-09  8:20 Arthur Zamarin
2022-10-29 14:03 Yixun Lan
2022-10-26  4:42 Arthur Zamarin
2022-09-30  3:52 Sam James
2022-09-30  2:18 Sam James
2022-08-07  5:12 Sam James
2022-05-28 20:35 Jakov Smolić
2022-05-27 11:14 Jakov Smolić
2022-01-24 22:37 Sam James
2022-01-18 23:39 Jakov Smolić
2021-12-13 23:04 Sam James
2021-12-13 18:32 Jakov Smolić
2021-12-13  0:10 Sam James
2021-09-16  1:20 Sam James
2021-09-15  2:24 Sam James
2021-02-17 22:13 Andreas Sturmlechner
2021-02-17 21:12 Sam James
2021-02-17  1:56 Sam James
2021-02-16 13:45 Sam James
2019-10-12 20:31 Mikle Kolyada
2019-05-28  4:01 Aaron Bauman
2019-02-26 20:54 Andreas Sturmlechner
2018-10-18 12:31 Thomas Deutschmann
2018-10-16 16:54 Mikle Kolyada
2018-05-26  0:52 Thomas Deutschmann
2018-05-22  7:49 Mikle Kolyada
2018-05-07 17:01 Andreas Sturmlechner
2018-05-07  9:01 Agostino Sarubbo
2018-05-07  0:24 Thomas Deutschmann
2017-09-09 16:35 Andreas Sturmlechner
2017-07-07  8:12 Agostino Sarubbo
2017-07-05 20:31 Agostino Sarubbo
2017-06-05 11:20 Andreas Sturmlechner
2017-06-05 11:20 Andreas Sturmlechner
2017-03-20 16:45 Agostino Sarubbo
2016-12-10 11:43 Johannes Huber
2016-07-25 21:34 Johannes Huber
2016-07-06 13:26 Michael Palimaka
2016-05-25  7:38 Johannes Huber
2016-05-24 19:26 Mikle Kolyada
2016-05-11 13:14 Michael Palimaka
2016-04-20  9:21 Michael Palimaka
2016-04-07 16:12 Michael Palimaka
2016-04-07 13:27 Mikle Kolyada
2016-03-02 19:23 Michael Palimaka
2015-12-02 11:42 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460045563.6005c98c26eed73212aee70d46a4fa2b343c2278.kensington@gentoo \
    --to=kensington@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox