summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2016-03-29 22:15:32 +0200
committerJohannes Huber <johu@gentoo.org>2016-03-29 22:19:20 +0200
commit30cab995774241d564efbb4df148c3a636172b9a (patch)
treefcfa560b8a2507a749b322260a7a8e5aa33c0c13 /kde-plasma/kwallet-pam
parentwww-client/google-chrome-unstable: automated update (diff)
downloadgentoo-30cab995774241d564efbb4df148c3a636172b9a.tar.gz
gentoo-30cab995774241d564efbb4df148c3a636172b9a.tar.bz2
gentoo-30cab995774241d564efbb4df148c3a636172b9a.zip
kde-plasma: Version bump KDE Plasma 5.6.1
Package-Manager: portage-2.2.28
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.6.1.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/kde-plasma/kwallet-pam/Manifest b/kde-plasma/kwallet-pam/Manifest
index 48196c770bd2..fa3bc2778f4e 100644
--- a/kde-plasma/kwallet-pam/Manifest
+++ b/kde-plasma/kwallet-pam/Manifest
@@ -1 +1,2 @@
DIST kwallet-pam-5.5.5.tar.xz 16280 SHA256 19c153a0593232767b370a1310f16d13673caba13842571bb7cb01535ba89336 SHA512 7daf595c110df7277a609590bb48da8a038c8516ed3bd6a6f55cdb73df850ef6989f248e5ed7b7128abd5fda0b358b4d695043c974d49451a0037b8a3280c92a WHIRLPOOL 7601debd5eed6baf4bddf98fff424280999e95bc30000663254b391e673df7b191f112689d3914d9dfec3f0bf3142fbe88b8d30b159563be659c9cc91a65ea49
+DIST kwallet-pam-5.6.1.tar.xz 17540 SHA256 01d8a091c32da2e0d9824252994f070cfd0395e959c6408fbd020812873d409a SHA512 43d1874d9dab89e8f7d9de64e1e4a96defc95c4d093858933d66bd1a0cd5bea3f7435567c0e1aee010ab6b9d9707e7229ac77ecc296a84ae8291675ce88cb9f9 WHIRLPOOL a6463ab2d0d5e4479cfafe03c608aacd1382f763de02a8fd61303afcc4757207ed9d5dece18c17f39f244ad177b96c381d66fc1c9162d2170c92519fdb849a46
diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.6.1.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.6.1.ebuild
new file mode 100644
index 000000000000..e16b8a3384f3
--- /dev/null
+++ b/kde-plasma/kwallet-pam/kwallet-pam-5.6.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_AUTODEPS="false"
+inherit kde5 multilib
+
+DESCRIPTION="KWallet PAM module to not enter password again"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-libs/libgcrypt:0=
+ virtual/pam
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_frameworks_dep extra-cmake-modules)
+"
+RDEPEND="${COMMON_DEPEND}
+ net-misc/socat
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
+ )
+
+ 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
+}