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: Wed, 20 Apr 2016 09:21:30 +0000 (UTC) [thread overview]
Message-ID: <1461144079.034548131be768d6947ae2c31d7cbf937938f50b.kensington@gentoo> (raw)
commit: 034548131be768d6947ae2c31d7cbf937938f50b
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 20 09:16:24 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 09:21:19 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03454813
kde-plasma/kwallet-pam: add changes from 5.6.2-r1 that were accidentally forgotten for 5.6.3
Package-Manager: portage-2.2.28
kde-plasma/kwallet-pam/kwallet-pam-5.6.3.ebuild | 57 +++++++++++++++++++------
1 file changed, 45 insertions(+), 12 deletions(-)
diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.6.3.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.6.3.ebuild
index 7bb19fb..0713014 100644
--- a/kde-plasma/kwallet-pam/kwallet-pam-5.6.3.ebuild
+++ b/kde-plasma/kwallet-pam/kwallet-pam-5.6.3.ebuild
@@ -5,12 +5,12 @@
EAPI=6
KDE_AUTODEPS="false"
-inherit kde5 multilib
+inherit kde5 multibuild multilib
DESCRIPTION="KWallet PAM module to not enter password again"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
+IUSE="+oldwallet"
COMMON_DEPEND="
dev-libs/libgcrypt:0=
@@ -18,31 +18,60 @@ COMMON_DEPEND="
"
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() {
- local mycmakeargs=(
- -DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
- )
+ myconfigure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
+ )
+ [[ ${MULTIBUILD_VARIANT} = oldwallet ]] && mycmakeargs+=( -DKWALLET4=1 )
+
+ kde5_src_configure
+ }
+ multibuild_foreach_variant myconfigure
+}
- kde5_src_configure
+src_compile() {
+ multibuild_foreach_variant kde5_src_compile
+}
+
+src_install() {
+ multibuild_foreach_variant kde5_src_install
}
pkg_postinst() {
check_dm() {
- if [[ -e "${ROOT}${2}" ]] && \
- grep -Eq "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" && \
- grep -Eq "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" ; then
- elog " ${1} - ${2} ...GOOD"
- else
- ewarn " ${1} - ${2} ...BAD"
+ 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 standard blowfish encryption instead of GPG"
elog "2. Use same password for login and kwallet"
@@ -50,6 +79,10 @@ pkg_postinst() {
elog "4.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 "4.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"
next reply other threads:[~2016-04-20 9:21 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 9:21 Michael Palimaka [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-16 13:33 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwallet-pam/ 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-07 16:12 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=1461144079.034548131be768d6947ae2c31d7cbf937938f50b.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