summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-10-06 06:03:32 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-10-06 06:10:38 +1100
commit79dfb13de3a7bf196ee8b0f9a7908026d0544a5f (patch)
tree7009950966e6efbbc8b18676ee99e242fde5b221 /kde-plasma/kwallet-pam
parentdev-perl/XML-SAX-Writer: arm stable, bug #595058 (diff)
downloadgentoo-79dfb13de3a7bf196ee8b0f9a7908026d0544a5f.tar.gz
gentoo-79dfb13de3a7bf196ee8b0f9a7908026d0544a5f.tar.bz2
gentoo-79dfb13de3a7bf196ee8b0f9a7908026d0544a5f.zip
kde-plasma: version bump 5.8.0
Package-Manager: portage-2.3.1
Diffstat (limited to 'kde-plasma/kwallet-pam')
-rw-r--r--kde-plasma/kwallet-pam/Manifest1
-rw-r--r--kde-plasma/kwallet-pam/kwallet-pam-5.8.0.ebuild95
2 files changed, 96 insertions, 0 deletions
diff --git a/kde-plasma/kwallet-pam/Manifest b/kde-plasma/kwallet-pam/Manifest
index 9af57d5f0b0c..dfddd413c72f 100644
--- a/kde-plasma/kwallet-pam/Manifest
+++ b/kde-plasma/kwallet-pam/Manifest
@@ -1,2 +1,3 @@
DIST kwallet-pam-5.6.5.tar.xz 17576 SHA256 f58dbd266ac166164a137878c5e69c0cf8a8693ce17d45a7d94b29cb67c2a229 SHA512 39254288cba7204e5045668b4f0c5bf6b7b1294e704692f402d68afbfb9f0450508634a690fdef13b3c08651d09b36b00aea949bbcc7a99658ebdf72e1166c08 WHIRLPOOL 27b1ed01ff6eb7f2425cfe63337a9d43a74c73b3991a1df452d297b7665b9bb1a59783ab19abe32e11456fd80f44c3cf89b833d73a8cd800c291f41681944fa3
DIST kwallet-pam-5.7.5.tar.xz 17648 SHA256 4a1bbb60eebae92469169826314607ce5592559a13027f0c4b6200c1d1755dd2 SHA512 ff8694ce9587b402a0ccc74ac6c293bcefbbd4ecc01817f958c28b5c18da28ca9f3a0ff8eb48ac8a55d54e2d68cfefe147112bde11395d5b1350819be26456de WHIRLPOOL 854d3263d0de34c96f7a49b7fe905a1d0d586634640b4fee8c7bb4577295db2d56c7a102b342b1314d6d0b7cc07a2adeedfd4d62203d8d1b57bc1969a3dfd1ca
+DIST kwallet-pam-5.8.0.tar.xz 17680 SHA256 b0f99629a58297ead5a839baa97e71e805ae2cff635f871b34d772b515763883 SHA512 8256742400e52ff8510e8000935ac133ba27df6cf70a518db1e9dd126fc73011c183589493bdc6c733df3e06b7dd6e24bbb94269d7fb8be4928c8c743f51116a WHIRLPOOL 62da92d7c6bfddccd3985d78f32b645cee5d158d54195b63cd476a987617d97e39ebe6ff19fcdd803bc485534b72dbd6b12eb731ac36ca177252e5a8825ca778
diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.8.0.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.8.0.ebuild
new file mode 100644
index 000000000000..18dcab74b264
--- /dev/null
+++ b/kde-plasma/kwallet-pam/kwallet-pam-5.8.0.ebuild
@@ -0,0 +1,95 @@
+# 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_test() {
+ multibuild_foreach_variant kde5_src_test
+}
+
+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 standard blowfish encryption instead of GPG"
+ elog "2. Use same password for login and kwallet"
+ elog "3. A display manager with support for PAM"
+ 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"
+ has_version "kde-base/kdm" && check_dm "KDM" "/etc/pam.d/kde"
+ elog
+}