diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-03 16:43:20 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-03 16:56:42 +0200 |
commit | 47b84fce9beb134c4584cf12e90a7a69f39eceb8 (patch) | |
tree | e3c7b82c0dbd39ddb6aac4df4cbb377e06cce878 /kde-plasma/ksshaskpass | |
parent | dev-lang/python: ignore EPERM in test.support.unlink() (diff) | |
download | gentoo-47b84fce9beb134c4584cf12e90a7a69f39eceb8.tar.gz gentoo-47b84fce9beb134c4584cf12e90a7a69f39eceb8.tar.bz2 gentoo-47b84fce9beb134c4584cf12e90a7a69f39eceb8.zip |
kde-plasma: Add KDE Plasma 5.18.4.1
Closes: https://bugs.gentoo.org/715884
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/ksshaskpass')
-rw-r--r-- | kde-plasma/ksshaskpass/Manifest | 1 | ||||
-rw-r--r-- | kde-plasma/ksshaskpass/ksshaskpass-5.18.4.1.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/kde-plasma/ksshaskpass/Manifest b/kde-plasma/ksshaskpass/Manifest index fbf2e8076b08..ce1532612eb8 100644 --- a/kde-plasma/ksshaskpass/Manifest +++ b/kde-plasma/ksshaskpass/Manifest @@ -1,2 +1,3 @@ DIST ksshaskpass-5.17.5.tar.xz 21372 BLAKE2B 134a533570b75d66cff195819d41b782b67e0f308d6b36efdd7ca223cfb8994baf29506e3cfc34c6786d35eedf792ed6519b40b0f39360468465c76a197c8362 SHA512 c3a6d5b914c13cdd2ca94a237168702729755ba51e036bef1fb5f09f9e7d1c01c176ba14f225c5ae3781434e8fcc047dd250f9da8d3704da09e9712819a5948a DIST ksshaskpass-5.18.3.tar.xz 22268 BLAKE2B d2b181ff1303c2c936ca76956b36d02fcde601c0239ca05928238676a7f0f992f9ec5e0234f923f2a9b9b53d03f6fb5d9a6bf690ad252c37f97eedde82e91ef6 SHA512 af17ddb2950b0278c3fc6504ac4c40a20952d7748232545fadacb5ca6729b4f8c5e2b69592e1e28e5c57bd00cd6fab31c655cc2d35f8cd143965a836b2100d8a +DIST ksshaskpass-5.18.4.1.tar.xz 22228 BLAKE2B 09ef6d7135c68284a4a36ee81c55a15190c372dc77e2c332ec88383684d8ae14603a1109da800279a6f3b71602b3de65f211cfda92b0eaeadaec85422dfaf11e SHA512 42d3615b631b225a455c939a72a0a1cd1766c7baa7bf9396b4509c880f37784beddaf2596d124362d9720901bad776aaf6b248ccf8b53e0691d74c948272c952 diff --git a/kde-plasma/ksshaskpass/ksshaskpass-5.18.4.1.ebuild b/kde-plasma/ksshaskpass/ksshaskpass-5.18.4.1.ebuild new file mode 100644 index 000000000000..cf1f23b87d8f --- /dev/null +++ b/kde-plasma/ksshaskpass/ksshaskpass-5.18.4.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +KFMIN=5.66.0 +PVCUT=$(ver_cut 1-3) +QTMIN=5.12.3 +inherit ecm kde.org + +DESCRIPTION="KDE implementation of ssh-askpass with Kwallet integration" +HOMEPAGE="https://cgit.kde.org/ksshaskpass.git" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="" + +DEPEND=" + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kwallet-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 +" +RDEPEND="${DEPEND}" + +pkg_setup() { + ecm_pkg_setup + + local srcfile=/etc/plasma/startup/05-ksshaskpass.sh + local newfile=/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh + if [[ -f "${EROOT}"${srcfile} ]]; then + local md5=$(md5sum "${EROOT}"${srcfile}) + if [[ ${md5%% *} != 615ae8f5b0090ff7f51d0edee7885d55 ]]; then + elog "Existing modified "${EPREFIX}"${srcfile} detected." + elog "Copying to "${EPREFIX}"${newfile}..." + cp -v "${EROOT}"${srcfile} "${T}"/ || die + fi + fi +} + +src_prepare() { + ecm_src_prepare + if [[ ! -f "${T}"/05-ksshaskpass.sh ]]; then + cp "${FILESDIR}"/05-ksshaskpass.sh "${T}"/ || die + fi +} + +src_install() { + ecm_src_install + + insinto /etc/xdg/plasma-workspace/env/ + doins "${FILESDIR}/05-ksshaskpass.sh" +} + +pkg_postinst() { + ecm_pkg_postinst + + elog "In order to have ssh-agent start with Plasma 5," + elog "edit /etc/xdg/plasma-workspace/env/10-agent-startup.sh" + elog "and uncomment the lines enabling ssh-agent." + elog + elog "If you do so, do not forget to uncomment the respective" + elog "lines in /etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh" + elog "to properly kill the agent when the session ends." + elog + elog "${PN} has been installed as your default askpass application" + elog "for Plasma 5 sessions." + elog "If that's not desired, select the one you want to use in" + elog "/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh" + + # Clean up pre-5.17.4 script + if [[ -e "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh ]]; then + rm "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh || die + elog "Removed obsolete ${EPREFIX}/etc/plasma/startup/05-ksshaskpass.sh" + fi +} |