298.1. remmina-1.4.43
Remote desktop client (GTK 3) for RDP, VNC, SPICE and SSH
| Version | 1.4.43, release 1 |
| Shelf | virt — Virtual machines, their tooling, and remote-desktop and VNC protocols |
| Phase | 44_apps (Applications), 418 of 422 in build order |
| Licence | GPL-2.0-or-later |
| Homepage | https://remmina.org/ |
| Build time | 4.0 SBU |
| Installed size | 1.8 MiB in 368 files |
| Recipe | ports/core/virt/remmina/kpkgbuild |
About
Remmina is a GTK 3 remote desktop client. Each protocol is a plugin: RDP through FreeRDP 3, VNC through libvncserver’s client library, SPICE through spice-gtk, and SSH and SFTP through libssh with a VTE terminal. Saved passwords go through libsecret.
Sources
remmina-1.4.43.tar.gz(3.8 MiB)
sha25616533f8a806daff524649bb45ae51e51f61685da94846006018b3c279ebe7035
upstream: https://gitlab.com/Remmina/Remmina/-/archive/v1.4.43/Remmina-v1.4.43.tar.gz
archive copy: sources-4/virt--remmina-1.4.43.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, libintl, gtk3, glib, cairo, pango, json-glib, curl, pcre2, openssl, libsodium, libgcrypt, libsecret, freerdp, libvncserver, gnutls, libssh, vte3, spice-gtk, cups, zlib, libjpeg-turbo, libX11, shared-mime-info, hicolor-icon-theme, libayatana-appindicator.
Required by: no port names it.
Patches
build.sh applies these; kpkg applies nothing by itself.
vnc-link-gnutls.patch— Addsgnutlsto the libraries the VNC plugin,remmina-plugin-vnc, links inplugins/vnc/CMakeLists.txt.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install remmina'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/virt/remmina.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/virt/remmina
echo '16533f8a806daff524649bb45ae51e51f61685da94846006018b3c279ebe7035 remmina-1.4.43.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/remmina
SRC=$SRC_ROOT/remmina-1.4.43
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf remmina-1.4.43.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/vnc-link-gnutls.patch"
LDFLAGS="$LDFLAGS -lintl" \
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D WITH_FREERDP3=ON \
-D WITH_NEWS=OFF \
-D WITH_STATS=OFF \
-D WITH_TIP=OFF \
-D WITH_WWW=OFF \
-D WITH_KF5WALLET=OFF \
-D WITH_GVNC=OFF \
-D WITH_X2GO=OFF \
-D WITH_NX=OFF \
-D WITH_XDMCP=OFF \
-D WITH_ST=OFF \
-D WITH_PYTHONLIBS=OFF \
-D WITH_VTE=ON \
-D WITH_MANPAGES=ON \
-D WITH_TRANSLATIONS=OFF \
-D WITH_KIOSK_SESSION=OFF \
-D WITH_ICON_CACHE=OFF \
-D WITH_UPDATE_DESKTOP_DB=OFF \
-D HAVE_LIBAPPINDICATOR=ON \
-D WITH_AVAHI=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_WinPR=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_FreeRDP=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_FreeRDP-Client=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_SharedMimeInfo=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LIBSSH=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LIBVNCSERVER=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Spice=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Libsecret=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_VTE=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_GCRYPT=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Cups=ON \
-D VERSION=$version \
-D prefix=/usr \
-D exec_prefix=/usr \
-D libdir=/usr/lib \
-D includedir=/usr/include \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
grep -q "^includedir=/usr/include$" "$PKG/usr/lib/pkgconfig/remmina.pc"
The switches, and why each is set:
-lintl— Added toLDFLAGS. Remmina compiles against the GNUlibintl.hthe gettext port installs, which renames each gettext call tolibintl_gettextand its relatives; musl’s libc does not define those names, only libintl does, and Remmina’s link lines never name the library (see Gettext on musl).-D WITH_FREERDP3=ON— Build the RDP plugin against FreeRDP 3, the major version of the port. Upstream’s default is FreeRDP 2.-D WITH_NEWS=OFF— With-D WITH_STATS=OFFand-D WITH_TIP=OFF: no news check, no usage statistics sent and no tip of the day, each of which reaches remmina.org.-D WITH_WWW=OFF— No WWW plugin, which opens a web page as a connection through WebKitGTK. Upstream’s default is on.-D WITH_KF5WALLET=OFF— With-D WITH_GVNC=OFF,-D WITH_X2GO=OFF,-D WITH_NX=OFF,-D WITH_XDMCP=OFF,-D WITH_ST=OFFand-D WITH_PYTHONLIBS=OFF: none of the optional plugins for KWallet, the gtk-vnc VNC client, X2Go, NX, XDMCP, the Simple Terminal, or Python plugins. The libvncserver plugin is the VNC client here.-D WITH_VTE=ON— With-D WITH_MANPAGES=ON: the VTE terminal for SSH connections, and the manual page. Upstream’s defaults, named.-D WITH_TRANSLATIONS=OFF— Build no message catalogues.-D WITH_KIOSK_SESSION=OFF— Install no kiosk session files: an X session entry underxsessionsand a GNOME session that run Remmina alone. Upstream’s default, named; no display manager or GNOME session runs here.-D WITH_ICON_CACHE=OFF— With-D WITH_UPDATE_DESKTOP_DB=OFF: refresh no cache duringcmake --install. The desktop-database step runsupdate-desktop-databaseon the build root’s own/usr/share/applications, ignoringDESTDIR, and the icon-cache step does nothing underDESTDIR; kpkg’s triggers regenerate both on the installed system.-D HAVE_LIBAPPINDICATOR=ON— The tray icon, an Ayatana AppIndicator through libayatana-appindicator, which the panel’s tray hosts as a StatusNotifierItem. Upstream’s default, named; Remmina searches for the library as required.-D WITH_AVAHI=OFF— No host discovery. It needsavahi-ui-gtk3, which the avahi port does not build. This switch, notCMAKE_DISABLE_FIND_PACKAGE, is what turns it off, because Remmina searches for every suggested package as required.-D CMAKE_REQUIRE_FIND_PACKAGE_WinPR=ON— and the same forFreeRDP,FreeRDP-Client,SharedMimeInfo,LIBSSH,LIBVNCSERVER,Spice,Libsecret,VTE,GCRYPTandCups: turn eachfind_packageinto a required one. The RDP plugin’s three packages are searched withoutREQUIREDand the plugin is dropped silently when FreeRDP is missing; the list makes every plugin and feature this recipe expects a configure error when its library is absent.-D VERSION=$version— With-D prefix=/usr,-D exec_prefix=/usr,-D libdir=/usr/liband-D includedir=/usr/include: the valuesdata/remmina.pc.insubstitutes. Remmina sets none of these variables itself, so without themremmina.pccomes out with empty paths and no version; thegrepafter the install stops the build ifincludediris not/usr/include.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/remmina, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf remmina-1.4.43-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/remmina, and runs the triggers its paths call for.
Contents
Installed programs: remmina, remmina-file-wrapper.
Installed directories: /usr/include/remmina, /usr/lib/remmina, /usr/share/icons/hicolor/apps, /usr/share/licenses/remmina, /usr/share/remmina.
Short descriptions
remmina |
Remmina the GTK+ Remote Desktop Client |
remmina.pc |
The GTK+ Remote Desktop Client |