333.9. pim-data-exporter-26.08.2
Backs up and restores KDE PIM mail, accounts, identities, contacts, calendars and settings
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 AND MIT · 1.6 SBU · 1.5 MiB, 18 files · 44_apps, 331 of 422 · ports/core/pim/pim-data-exporter
Homepage: https://apps.kde.org/pimdataexporter/
PIM Data Exporter backs up and restores KDE PIM data in one zip archive: KMail’s mail, accounts, identities, transports, filters and settings, and the address books, calendars, alarms and feeds of KAddressBook, KOrganizer, KAlarm and Akregator. The archive can be restored on another machine, where the exporter recreates the Akonadi resources and settings. The port installs the window, pimdataexporter, which kmail opens from its Tools menu, and pimdataexporterconsole for scripted backups.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, karchive, kcalendarcore, kconfig, kcontacts, kcoreaddons, kcrash, kdbusaddons, kdoctools, ki18n, kiconthemes, kio, kitemviews, kmime, knotifications, kstatusnotifieritem, kwidgetsaddons, kxmlgui, ktextaddons, akonadi, kidentitymanagement, kmailtransport, mailcommon, pimcommon, breeze-icons.
Required by (1): kde-gear-pim.
Sources: pim-data-exporter-26.08.2.tar.xz (422.7 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install pim-data-exporter'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6IconThemes=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— compile none of the translation catalogues inpo/. kpkg removes every non-English catalogue from the package anyway (see size and language policy), so this only saves build time.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6IconThemes=ON—KIconTheme::initTheme()at start-up, which makes the window’s icons follow the desktop’s icon theme and colour scheme. Upstream finds kiconthemes quietly and links it only when it is found.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— the handbook is built only when kdoctools is found; required, a missing kdoctools stops the configure instead of quietly dropping the handbook.-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON— no KUserFeedback, through which the exporter would submit usage statistics. It is not a port, and refusing the search keeps a stray copy in the build root from turning telemetry on.
Programs: pimdataexporter, pimdataexporterconsole.
Libraries: libpimdataexporterprivate.so.
Directories: /usr/share/doc/HTML/en/pimdataexporter, /usr/share/licenses/pim-data-exporter.
ktextaddons’ TextAddonsWidgets is found without REQUIRED but marked TYPE REQUIRED, and the feature summary stops the configure without it.
The exporter reads and writes what the Akonadi resources of kdepim-runtime hold, and restoring an archive creates such resources, but the port does not name kdepim-runtime: kmail, which opens it, already does, and the kde-gear-pim meta installs both.
The entry names the icon kontact, which breeze-icons, in depends for run time only, draws. The program sets org.kde.pimdataexporter as its desktop file name, the name of the entry, which carries no StartupWMClass, so the task manager matches the window to it with no change. While a backup or restore runs, the window shows an icon in the system tray through kstatusnotifieritem.
KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbook in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.