diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-05-26 20:14:35 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-05-26 20:15:01 +0200 |
commit | 67bb2e00f0afba7b37bda0fa513b7e60b962aa07 (patch) | |
tree | 6bfb835af2dd0fa8cc543b4ddb68b15c87379e57 /kde-plasma/kwallet-pam | |
parent | sys-kernel/ck-sources: v.bump (4.11.3-r1) (diff) | |
download | gentoo-67bb2e00f0afba7b37bda0fa513b7e60b962aa07.tar.gz gentoo-67bb2e00f0afba7b37bda0fa513b7e60b962aa07.tar.bz2 gentoo-67bb2e00f0afba7b37bda0fa513b7e60b962aa07.zip |
kde-plasma: Add KDE Plasma 5.8.7 LTS
Package-Manager: Portage-2.3.5, 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.8.7.ebuild | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/kde-plasma/kwallet-pam/Manifest b/kde-plasma/kwallet-pam/Manifest index f4062d54a6cf..403bd5ef40f9 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.8.7.tar.xz 17768 SHA256 51f74dd2ca2757aa5ef04bef17b825d2aef6d28728c957c87d445c3aa4b7835a SHA512 49e3a16bc81753066c7f080c73b8ee31fd34d193e4da5d569b5fbded4ac6315b3d401d927f0c4ce1e5e64bdda0c9509cc95c4ae0a5636340ddf4c1befcb37201 WHIRLPOOL 652a96eb9a7d31672b2a085750bb7121e797e7d79b720c22e0914cb6cfd8fb7c78ce0a87eb3bdebfda82f5181e1eff3cdcf5f8bbcf88f239a3e652412e483779 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.8.7.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.8.7.ebuild new file mode 100644 index 000000000000..04d60238def1 --- /dev/null +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.8.7.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 +} |