diff options
author | Johannes Huber <johu@gentoo.org> | 2016-11-01 20:34:20 +0100 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2016-11-01 21:37:31 +0100 |
commit | 5c5502ad72e4d52a512eca3d9ddf38467d6c1b00 (patch) | |
tree | 225c22c90f772bf2e8b9a4e1dade50cf19176f23 /kde-plasma/kwallet-pam | |
parent | dev-python/cryptography: add pytz dependency for tests (fixes bug 595270) (diff) | |
download | gentoo-5c5502ad72e4d52a512eca3d9ddf38467d6c1b00.tar.gz gentoo-5c5502ad72e4d52a512eca3d9ddf38467d6c1b00.tar.bz2 gentoo-5c5502ad72e4d52a512eca3d9ddf38467d6c1b00.zip |
kde-plasma: Version bump KDE Plasma 5.8.3
Package-Manager: portage-2.3.2
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.3.ebuild | 95 |
2 files changed, 96 insertions, 0 deletions
diff --git a/kde-plasma/kwallet-pam/Manifest b/kde-plasma/kwallet-pam/Manifest index 5837a1724d99..455b07e27cbf 100644 --- a/kde-plasma/kwallet-pam/Manifest +++ b/kde-plasma/kwallet-pam/Manifest @@ -1,2 +1,3 @@ DIST kwallet-pam-5.7.5.tar.xz 17648 SHA256 4a1bbb60eebae92469169826314607ce5592559a13027f0c4b6200c1d1755dd2 SHA512 ff8694ce9587b402a0ccc74ac6c293bcefbbd4ecc01817f958c28b5c18da28ca9f3a0ff8eb48ac8a55d54e2d68cfefe147112bde11395d5b1350819be26456de WHIRLPOOL 854d3263d0de34c96f7a49b7fe905a1d0d586634640b4fee8c7bb4577295db2d56c7a102b342b1314d6d0b7cc07a2adeedfd4d62203d8d1b57bc1969a3dfd1ca DIST kwallet-pam-5.8.2.tar.xz 17672 SHA256 4b0bc61aec955815924439eec10f9a9e6c79819776f9e02076924f42b26788c7 SHA512 ab122ce1df545079368b651bd116dcc528de60949985b82913d51659ac6df132689186e340a6287946b644e4e54f55db0f5127fd0d6ab232803d52c7d02eeb2f WHIRLPOOL 543a9f1bc866d56ff67600978ec7f194fdb9a0dff7be4df765659fa69ef83cbaff2245dd407883fd47a1868681a5105535be77e899c0efa7aa9dfdd5675381d0 +DIST kwallet-pam-5.8.3.tar.xz 17668 SHA256 ed624dbd26ce447128d85ffea988a9b58a7537e0b936f008bfe2d67841fc75d1 SHA512 fcee6e1c3c3f8d92c461df5a28400147787b5e7e08a0ba2ce1f408d9bb6dc8a0be06cb8850475518fedeb7527bbbbe0b85241779ceef3de91e2ec07e0c75722b WHIRLPOOL ac2e45fa5299fff60aafd403ebf7e432a39eae50072e26d5ada1cadbffa65413abd94b537b659046dd6f1e16f68a1475081891a29511f31ac79a91d0921edeeb diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.8.3.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.8.3.ebuild new file mode 100644 index 000000000000..18dcab74b264 --- /dev/null +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.8.3.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 +} |