300.9. ktorrent-26.08.2
BitTorrent client — downloads with search, RSS feeds, IP filtering, bandwidth scheduling, UPnP and a media player
26.08.2-1 · GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.0-only WITH Qt-Commercial-exception-1.0) AND LGPL-2.0-only AND CC0-1.0 · 17.2 SBU · 7.6 MiB, 132 files · 44_apps, 396 of 422 · ports/core/transfer/ktorrent
Homepage: https://apps.kde.org/ktorrent/
KTorrent is KDE’s BitTorrent client. The protocol, the DHT, the trackers and the disk work are libktorrent; KTorrent is the window around it and a set of plugins: torrent search and RSS feeds in a web view, an IP filter, transfer statistics, a bandwidth scheduler, UPnP port mapping, local peer discovery over DNS-SD, a scanner that adds torrents dropped in a folder, a media player for files still downloading, and shutdown when all transfers finish.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwebengine, qt6-qtmultimedia, qt6-qt5compat, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kglobalaccel, ki18n, kiconthemes, kio, knotifications, knotifyconfig, kcmutils, kparts, kstatusnotifieritem, kwidgetsaddons, kwindowsystem, kxmlgui, kdoctools, ktextwidgets, kplotting, syndication, kdnssd, kcompletion, libktorrent, boost, taglib, karchive.
Required by (1): kde-gear-core.
Sources: ktorrent-26.08.2.tar.xz (2.2 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install ktorrent'
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_KF6DocTools=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextWidgets=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Plotting=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Syndication=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Core5Compat=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DNSSD=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Completion=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Multimedia=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6MultimediaWidgets=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Taglib=ON \
-D BUILD_WITH_GEOIP=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream asks for as an optional component.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextWidgets=ON— Each of the plugins below is built only when its library is found, and upstream looks for every one as optional, so a missing library drops a plugin with no error; required, it stops the configure. This one is the IP filter plugin, through ktextwidgets.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Plotting=ON— The statistics plugin’s graphs, through kplotting.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Syndication=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Core5Compat=ON: the RSS feed plugin, through syndication, which also links Qt 5 compatibility classes from qt6-qt5compat.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON— The search plugin and the feed plugin’s article view, through qt6-qtwebengine.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DNSSD=ON— The Zeroconf plugin, which finds peers for the same torrent on the local network through kdnssd.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Completion=ON— The UPnP plugin, which asks the router to forward the listening ports; its dialog uses kcompletion.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Multimedia=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6MultimediaWidgets=ONand-D CMAKE_REQUIRE_FIND_PACKAGE_Taglib=ON: the media player plugin, which plays audio and video files of a torrent through qt6-qtmultimedia and reads their tags with taglib.-D BUILD_WITH_GEOIP=OFF— No peer country column. With it on, the torrent details plugin links libmaxminddb and, the first time it starts without a database, downloads DB-IP’s country database from download.db-ip.com, a request to a third party that nobody asked for; off, the plugin builds without the lookup.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: ktmagnetdownloader, ktorrent, ktupnptest.
Libraries: libktcore.so.
Directories: /usr/lib/qt6/plugins/ktorrent_plugins, /usr/share/doc/HTML/en/ktorrent, /usr/share/ktorrent, /usr/share/kxmlgui5/ktorrent, /usr/share/licenses/ktorrent.
The torrent details panel (status, files, peers, trackers, web seeds) is the infowidget plugin, which builds on musl as it is. The shutdown plugin asks the session over D-Bus to log out, suspend or power off (org.kde.LogoutPrompt, org.freedesktop.PowerManagement), which only the Plasma session answers. The configure also looks for KF6ItemViews, for a scripting plugin this release does not have; nothing reads the result, so the lookup is left unpinned.
KTorrent listens for peers on TCP and UDP ports of its own; incoming connections need them opened in the firewall, and UPnP opens them on a router only.