commit: 25823e636ec269a2835529572dc88c7b6d143bc3
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 17 17:52:43 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jul 17 17:55:33 2025 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=25823e63
kde-plasma/plasma-vault: Add elog about unsupported backends
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../plasma-vault/plasma-vault-6.4.49.9999.ebuild | 25 ++++++++++++++++++++++
kde-plasma/plasma-vault/plasma-vault-9999.ebuild | 25 ++++++++++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/kde-plasma/plasma-vault/plasma-vault-6.4.49.9999.ebuild
b/kde-plasma/plasma-vault/plasma-vault-6.4.49.9999.ebuild
index 0c99ec919e..43e45ba969 100644
--- a/kde-plasma/plasma-vault/plasma-vault-6.4.49.9999.ebuild
+++ b/kde-plasma/plasma-vault/plasma-vault-6.4.49.9999.ebuild
@@ -51,3 +51,28 @@ src_configure() {
ecm_src_configure
}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ local has_deprecated_backend
+ dropping_backend() {
+ if has_version ${2}; then
+ elog "${CATEGORY}/${PN} will drop support for ${1} in
the future."
+ elog "Migrate away from any ${2} vaults before that
happens."
+ elog
+ has_deprecated_backend=1
+ fi
+ }
+
+ dropping_backend CryFS sys-fs/cryfs
+ dropping_backend EncFS sys-fs/encfs
+
+ if [[ has_deprecated_backend ]]; then
+ elog "The only supported backend going forward will be
app-crypt/gocryptfs."
+ elog
+ elog "See also:"
+ elog
"https://invent.kde.org/plasma/plasma-vault/-/merge_requests/57"
+ elog
"https://invent.kde.org/plasma/plasma-vault/-/merge_requests/62"
+ fi
+}
diff --git a/kde-plasma/plasma-vault/plasma-vault-9999.ebuild
b/kde-plasma/plasma-vault/plasma-vault-9999.ebuild
index e0d4dcf10f..7d23b32543 100644
--- a/kde-plasma/plasma-vault/plasma-vault-9999.ebuild
+++ b/kde-plasma/plasma-vault/plasma-vault-9999.ebuild
@@ -51,3 +51,28 @@ src_configure() {
ecm_src_configure
}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ local has_deprecated_backend
+ dropping_backend() {
+ if has_version ${2}; then
+ elog "${CATEGORY}/${PN} will drop support for ${1} in
the future."
+ elog "Migrate away from any ${2} vaults before that
happens."
+ elog
+ has_deprecated_backend=1
+ fi
+ }
+
+ dropping_backend CryFS sys-fs/cryfs
+ dropping_backend EncFS sys-fs/encfs
+
+ if [[ has_deprecated_backend ]]; then
+ elog "The only supported backend going forward will be
app-crypt/gocryptfs."
+ elog
+ elog "See also:"
+ elog
"https://invent.kde.org/plasma/plasma-vault/-/merge_requests/57"
+ elog
"https://invent.kde.org/plasma/plasma-vault/-/merge_requests/62"
+ fi
+}