diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-26 00:32:14 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-04-26 00:32:44 +0200 |
commit | 4d494e2e1529fa104a7cf51aaaef9e0fb2b7876c (patch) | |
tree | 316872de7f52d5b42e24612dd98f09364d0c3c96 /kde-plasma/kwallet-pam | |
parent | dev-lang/python: Forward-port the distutils -OO patch to 3.6, #616594 (diff) | |
download | gentoo-4d494e2e1529fa104a7cf51aaaef9e0fb2b7876c.tar.gz gentoo-4d494e2e1529fa104a7cf51aaaef9e0fb2b7876c.tar.bz2 gentoo-4d494e2e1529fa104a7cf51aaaef9e0fb2b7876c.zip |
kde-plasma: Add KDE Plasma 5.9.5
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'kde-plasma/kwallet-pam')
-rw-r--r-- | kde-plasma/kwallet-pam/Manifest | 1 | ||||
-rw-r--r-- | kde-plasma/kwallet-pam/kwallet-pam-5.9.5.ebuild | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/kde-plasma/kwallet-pam/Manifest b/kde-plasma/kwallet-pam/Manifest index b8e3a3d01252..9baa1d36eb86 100644 --- a/kde-plasma/kwallet-pam/Manifest +++ b/kde-plasma/kwallet-pam/Manifest @@ -1,2 +1,3 @@ DIST kwallet-pam-5.8.6.tar.xz 17760 SHA256 63bc9333a89d545465ab7cfb7d7a5cd61d8c098e454e06ea9a1b77c4cb0021c6 SHA512 279d7c663ee0802cd0d8939f1be0c4db0d8c416b2f118479b9c2eede59af7005cd3aa2f57817c0ef07f8e57ca63366b49a3d7d111d605c45f2887a04b330042c WHIRLPOOL 214ffc9d9ff033d4b5de4a9d8fc866b31bd765c38b9f714b16d250103e3c9a2da5e4f9502519050d1a3a5edf9852bdea0ae183e0c10cc3d001298623306b1c19 DIST kwallet-pam-5.9.4.tar.xz 17832 SHA256 dcfaa53317537454871a819b6b0ebdc4a1faec2698e13c1d8b805671ab55cf50 SHA512 d0fda9317d31af66855ff134829e6aa08dfe232b6ad69ff6aeb3538adb2e14b5b5a33daec6948347f052539523ae50080464583fd6c69abc28d771f946d4be13 WHIRLPOOL 9f52dd676332e1ff39a0cd7938385c037331ca62a109fb22883d96706ad6385a0e9199cbb3b736c0fd74a5f8d75a4ce7ffef041c15248b8d429b11a439867fc8 +DIST kwallet-pam-5.9.5.tar.xz 17848 SHA256 361b2b53c8e1cf00b57ef17f9b15e6db9b3161e935f43abedec7775ff8ba9059 SHA512 120a2dd42faad9c71e0cea5a37fbc8112552a70df823215d7059ce8a2ba803508e91679e5f988d6a4e5357cb1c4046f528d84f7c9fff8b2305f8b16e616d5712 WHIRLPOOL a55d67260fa13b39cbc6ddf798a3bc37e498ace3b47672c44e761fc49817f2866647eb253b45b52bc239cc970c2c969fb81e3f99a0c020cba29df0a30b3d20ba diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.9.5.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.9.5.ebuild new file mode 100644 index 000000000000..04d60238def1 --- /dev/null +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.9.5.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" + elog +} |