summaryrefslogtreecommitdiff
path: root/kde-plasma/plasma-workspace
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /kde-plasma/plasma-workspace
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'kde-plasma/plasma-workspace')
-rw-r--r--kde-plasma/plasma-workspace/Manifest4
-rw-r--r--kde-plasma/plasma-workspace/plasma-workspace-5.17.4.ebuild (renamed from kde-plasma/plasma-workspace/plasma-workspace-5.17.3.ebuild)64
2 files changed, 47 insertions, 21 deletions
diff --git a/kde-plasma/plasma-workspace/Manifest b/kde-plasma/plasma-workspace/Manifest
index 72e7bb29de5a..d2c0648906b5 100644
--- a/kde-plasma/plasma-workspace/Manifest
+++ b/kde-plasma/plasma-workspace/Manifest
@@ -7,7 +7,7 @@ AUX plasma-workspace-5.16.3-x11sessionrename.patch 2435 BLAKE2B 3ec4c08af77f24dd
AUX plasma-workspace-5.16.4-no-share-dataengine.patch 904 BLAKE2B ea9c8b6505e3bfd9b35a0ef02f4e6fcb4ba5ad011872bf3803ac12dd07115bceed58fce5d9a7b8042c0bd7c26a592561dc120e8f4f908cd352c46ff6f9d86db3 SHA512 bc79f69a50119d11035c0644a6d05281ea23ae29e662808a0a3384f3ec63049121b73bc1bb8c06b58c5b3f42fec8d5d45c9139e50466c628aa1261edb45b877a
AUX plasma-workspace-5.17.2-waylandsessionrename.patch 2568 BLAKE2B 45be5b7221f60e6e1f2d449887f348f0462458ea25cc0559b4a48ca9e3726cd241ea6d32d23f61cc0ee755e1e7d42bda1ac8dfd454bf55bb69b53f3d60c6df7e SHA512 f36882781987e85b76bc2d2ebabae355f26d9579fe194fa32c3425c0fb8d4cabb6f7f34e8596026e0cedba5f65fc0036f432d91f6a20bf689938717db1e4f235
DIST plasma-workspace-5.16.5.tar.xz 4905748 BLAKE2B 049a4ff618aade78ac130c1496f6add0ddc391db5b025045eaee91fbcac0a0b9e7b44a06757c94699c1038b18a96a06eb31d4ab6518bfda6d308e12b1269ca04 SHA512 e55e89b6a8e3dcf68bb7ad4f62f284cd819c7461eff1269f84df086a2516401c26363cc6c3c8e6cc8e27788222b3ed81098d765a25e5d96d9274e3b342816369
-DIST plasma-workspace-5.17.3.tar.xz 4958180 BLAKE2B c61d919389c13cc281c4a48679c6fba615399732c4ea562a2499504d5bde0add33b6827fac9744322bcb06358346de2cfde974261cf540da892b524972c18b03 SHA512 8ae809e40cec33b5fa6e49986e234c5cfd0ddb964b62dec242b763475cab6f02dd089cf69d5e89a1f8e447108958ea13097df8eda0885199c71f67e6d5c10ea3
+DIST plasma-workspace-5.17.4.tar.xz 4962200 BLAKE2B 2050dbf77dbdf144017e0ddf4b827b9dbe27b8f475eedaed969a442e036f162cabad5d6b47fd650491ed5989cade48ebafbd5f599dbc790c14515ce01ebfd626 SHA512 3f5aa07ccd19604bc399bb1d30dd16ac82e1405613c1f4a939e3c2cba3b4a478213095617052440dda222f1712608533e5806939117752d31b0616a6009cf45b
EBUILD plasma-workspace-5.16.5.ebuild 4696 BLAKE2B 3701c3d0721a0ed497c7f5bf749be05c5b3071cb90b98df0bad2f0b2de0b7042b392ef7fb7ed4ffe60e4a2c08c206bee51e9f1fa49841110b78a655436acc93b SHA512 8a4ac267c2cb2207d1e44e970f88b7d33ee76282c94a2868584d836261021644b934be8ea592ec29aa5e4a0f144991b3545bfa0aebd7dc7cf3ba28bf4a20f663
-EBUILD plasma-workspace-5.17.3.ebuild 5516 BLAKE2B c2797c8ed2bae62a96e745ba810793561c8251785dcdc2f51486d6273783c1e505afcafc7404f2104fde1db84bfcfc870d611667c9397fabaef959b1288e4bc9 SHA512 795527ded7383d26a26caa8b2e22040a1219646e890b0b839ba67cec79537baedce4662d038dfc45aa732d26a869a2629ab21d525015b67169c1c343a11d882d
+EBUILD plasma-workspace-5.17.4.ebuild 6444 BLAKE2B dd08a383c63f41091833291ef860bee4b66d43a1a53ec7064bdec985d64d083d6863eebc73862059bb08189d66b6c1d1b358fb5b8b8239ab38193dbe07a6df7b SHA512 dd384dc39ee547001d53b9f545badc0f98465763c0418acc381bc5fc3159cc3f55059968c6473cd9d7e2a8b6e6d188fdbff10d6c5b9f8264ad22d269426e66ac
MISC metadata.xml 643 BLAKE2B 28c9374aff890daac8a279eee05792f453a1e15b81d4e8182c3ff1bfb352e00859ede5792580b171615bc0af866fd8f5060486fb2fc3013d408a36343f78c2ba SHA512 eb5d1e325403d3f22422642b6d32a250f4450b06bf0f1275bc88b5dcae004ccb0f12bab318d36a24991bf2bffc590fcf7d43419d58e3d2bf9a396ed7e3f8778c
diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.17.3.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.17.4.ebuild
index 617b12bc63c8..b522d47f4492 100644
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.17.3.ebuild
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.17.4.ebuild
@@ -129,6 +129,12 @@ PATCHES=(
RESTRICT+=" test"
+# used for agent scripts migration
+OLDST=/etc/plasma/startup/10-agent-startup.sh
+NEWST=/etc/xdg/plasma-workspace/env/10-agent-startup.sh
+OLDSH=/etc/plasma/shutdown/10-agent-shutdown.sh
+NEWSH=/etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh
+
src_prepare() {
ecm_src_prepare
@@ -142,15 +148,15 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DBUILD_xembed-sni-proxy=OFF
- $(cmake-utils_use_find_package appstream AppStreamQt)
- $(cmake-utils_use_find_package calendar KF5Holidays)
- $(cmake-utils_use_find_package geolocation KF5NetworkManagerQt)
- $(cmake-utils_use_find_package qalculate Qalculate)
- $(cmake-utils_use_find_package qrcode KF5Prison)
- $(cmake-utils_use_find_package semantic-desktop KF5Baloo)
+ $(cmake_use_find_package appstream AppStreamQt)
+ $(cmake_use_find_package calendar KF5Holidays)
+ $(cmake_use_find_package geolocation KF5NetworkManagerQt)
+ $(cmake_use_find_package qalculate Qalculate)
+ $(cmake_use_find_package qrcode KF5Prison)
+ $(cmake_use_find_package semantic-desktop KF5Baloo)
)
- use gps && mycmakeargs+=( $(cmake-utils_use_find_package gps libgps) )
+ use gps && mycmakeargs+=( $(cmake_use_find_package gps libgps) )
ecm_src_configure
}
@@ -158,22 +164,42 @@ src_configure() {
src_install() {
ecm_src_install
- # startup and shutdown scripts
- insinto /etc/plasma/startup
- doins "${FILESDIR}/10-agent-startup.sh"
+ # default startup and shutdown scripts
+ insinto "$(dirname ${NEWST})"
+ doins "${FILESDIR}/$(basename ${NEWST})"
+
+ insinto "$(dirname ${NEWSH})"
+ doins "${FILESDIR}/$(basename ${NEWSH})"
+ fperms +x "${NEWSH}"
+}
+
+pkg_preinst() {
+ ecm_pkg_preinst
- insinto /etc/plasma/shutdown
- doins "${FILESDIR}/10-agent-shutdown.sh"
+ # migrate existing agent scripts to new layout if no files there yet
+ if [[ -r "${EROOT}${OLDST}" && ! -f "${EROOT}${NEWST}" ]]; then
+ mkdir -p "${EROOT}$(dirname ${NEWST})" && cp "${EROOT}${OLDST}" "${EROOT}${NEWST}" && \
+ elog "${EROOT}${OLDST} has been migrated to ${EROOT}${NEWST}, please delete old file."
+ fi
+ if [[ -r "${EROOT}${OLDSH}" && ! -f "${EROOT}${NEWSH}" ]]; then
+ mkdir -p "${EROOT}$(dirname ${NEWSH})" && cp "${EROOT}${OLDSH}" "${EROOT}${NEWSH}" && \
+ chmod +x "${EROOT}${NEWSH}" && \
+ elog "${EROOT}${OLDSH} has been migrated to ${EROOT}${NEWSH}, please delete old file."
+ fi
}
pkg_postinst () {
ecm_pkg_postinst
- elog "To enable gpg-agent and/or ssh-agent in Plasma sessions, do the following:"
- elog " * Copy the necessary files to your home directory:"
- elog " - cp /etc/plasma/startup/10-agent-startup.sh ~/.config/plasma-workspace/env/"
- elog " - cp /etc/plasma/shutdown/10-agent-shutdown.sh ~/.config/plasma-workspace/shutdown/"
- elog " * Edit 10-agent-startup.sh and uncomment the lines enabling ssh-agent."
- elog " * In 10-agent-shutdown.sh uncomment the respective lines to properly kill"
- elog " the agent when the session ends."
+ # warn about any leftover user scripts
+ if [[ -d "${EROOT}"/etc/plasma/startup && -n "$(ls "${EROOT}"/etc/plasma/startup)" ]] || \
+ [[ -d "${EROOT}"/etc/plasma/shutdown && -n "$(ls "${EROOT}"/etc/plasma/shutdown)" ]]; then
+ elog "You appear to have scripts in ${EROOT}/etc/plasma/{startup,shutdown}."
+ elog "They will no longer work since plasma-workspace-5.17"
+ fi
+
+ elog " * Edit ${EROOT}${NEWST} and uncomment"
+ elog " the lines enabling ssh-agent."
+ elog " * Edit ${EROOT}${NEWSH} uncomment"
+ elog " the respective lines to properly kill the agent when the session ends."
}