From bc202420b7b967df6e13bdde12eb44fbc35b1ea0 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 12 Oct 2024 15:24:46 +0200 Subject: [PATCH] kde-apps/akonadi-config: new package, add 0 Essentially split out of kde-apps/akonadi. This is now responsible for setting up default akonadiserverrc, with some basic instructions for how to migrate from other backends. In terms of optional RDEPEND IUSE, we can treat this like a metapackage ensuring appropriate runtime dependencies. Signed-off-by: Andreas Sturmlechner --- .../akonadi-config/akonadi-config-0.ebuild | 78 +++++++++++++++++++ kde-apps/akonadi-config/metadata.xml | 8 ++ 2 files changed, 86 insertions(+) create mode 100644 kde-apps/akonadi-config/akonadi-config-0.ebuild create mode 100644 kde-apps/akonadi-config/metadata.xml diff --git a/kde-apps/akonadi-config/akonadi-config-0.ebuild b/kde-apps/akonadi-config/akonadi-config-0.ebuild new file mode 100644 index 00000000000..2a1bd50b1df --- /dev/null +++ b/kde-apps/akonadi-config/akonadi-config-0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="Default Akonadi storage backend configuration" +HOMEPAGE="https://userbase.kde.org/Tutorials/Shared_Database#Akonadi" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="+mysql postgres sqlite" + +REQUIRED_USE="|| ( mysql postgres sqlite )" + +RDEPEND=" + ! "${T}"/akonadiserverrc || die + [%General] + Driver=${DRIVER} + EOF + insinto /usr/share/config/akonadi + doins "${T}"/akonadiserverrc +} + +pkg_postinst() { + elog "You can select the storage backend in ~/.config/akonadi/akonadiserverrc." + elog "Available drivers (by enabled USE flags) are:" + use mysql && elog " QMYSQL" + use sqlite && elog " QSQLITE" + use postgres && elog " QPSQL" + elog "${DRIVER} has been set as your default akonadi storage backend." + elog + optfeature_header "The following optional database backends exist:" + optfeature "SQLite backend support" "${CATEGORY}/${PN}[sqlite]" + optfeature "MySQL backend support" "${CATEGORY}/${PN}[mysql]" + optfeature "PostgreSQL backend support" "${CATEGORY}/${PN}[postgres]" +} diff --git a/kde-apps/akonadi-config/metadata.xml b/kde-apps/akonadi-config/metadata.xml new file mode 100644 index 00000000000..8641e5bdd39 --- /dev/null +++ b/kde-apps/akonadi-config/metadata.xml @@ -0,0 +1,8 @@ + + + + + kde@gentoo.org + Gentoo KDE Project + +