227.2. signond-8.61
Single sign-on daemon — stores credentials and runs authentication plugins over D-Bus for its clients
| Version | 8.61, release 1 |
| Shelf | auth — Authentication, authorisation, accounts and directory services |
| Phase | 43_toolkits (Toolkits), 17 of 344 in build order |
| Licence | LGPL-2.1-only |
| Homepage | https://gitlab.com/accounts-sso/signond |
| Build time | 1.4 SBU |
| Installed size | 1.4 MiB in 96 files |
| Recipe | ports/core/auth/signond/kpkgbuild |
About
signond is the accounts-sso single sign-on daemon. It keeps the credentials of the user’s online accounts and runs authentication plugins on behalf of client programs, which talk to it over the session bus as com.google.code.AccountsSSO.SingleSignOn. The package holds the daemon, the signonpluginprocess helper each plugin runs in, the password plugin, the client library libsignon-qt6 with its SignOnQt6 CMake package, and the libraries plugins and extensions link. signon-plugin-oauth2 is the plugin KDE’s online accounts use.
Sources
signond-8.61.tar.gz(276.3 KiB)
sha2563dd57c25e1bf1583b2cb857f96831e38e73d40264ff66ca43e63bb7233f76828
upstream: https://gitlab.com/accounts-sso/signond/-/archive/VERSION_8.61/signond-VERSION_8.61.tar.gz
archive copy: sources-1/auth--signond-8.61.tar.gz
Dependencies
Depends on: pkgconf, qt6-qtbase, dbus.
Required by (4): kaccounts-integration, signon-kwallet-extension, signon-plugin-oauth2, signon-ui.
Patches
build.sh applies these; kpkg applies nothing by itself.
qt6.patch— Build signond and libsignon-qt against Qt 6The 8.61 release names its client library, pkg-config file and CMake package `qt5` whatever Qt builds it. This takes the names from QT_MAJOR_VERSION (libsignon-qt6, SignOnQt6), moves the plugin data stream and the D-Bus output parameters to Qt 6 types, and ports the uses of API Qt 6 removed. It is the difference from the VERSION_8.61 tag to the head of upstream merge request !36 ("Add Qt6 support", commit c8ad9824), which Alpine's signond builds from, including the one commit between the tag and the request's base, which drops the superuser check from `make install`.
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/43_toolkits/phase.env && kpkg install signond'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/auth/signond.
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/auth/signond
echo '3dd57c25e1bf1583b2cb857f96831e38e73d40264ff66ca43e63bb7233f76828 signond-8.61.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/signond
SRC=$SRC_ROOT/signond-8.61
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf signond-8.61.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/qt6.patch"
qmake6 CONFIG+=release QMAKE_CFLAGS_RELEASE="$CFLAGS" QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \
QMAKE_LFLAGS_RELEASE="$LDFLAGS" PREFIX=/usr LIBDIR=/usr/lib \
-after "SUBDIRS -= tests example test libsignon-qt-static.pro" "INSTALLS -= documentation"
make
make INSTALL_ROOT=$PKG install
The switches, and why each is set:
-after "SUBDIRS -= tests example test libsignon-qt-static.pro" "INSTALLS -= documentation"— assignments qmake applies after reading each project file. They drop the test suite, theexampleandtestauthentication plugins, which would otherwise install into/usr/lib/signonbeside the real ones, and the static copy oflibsignon-qt6, which nothing links; the last drops the documentation target, which runs doxygen duringmake install.
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/signond, 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 signond-8.61-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/signond, and runs the triggers its paths call for.
Contents
Installed programs: signond, signonpluginprocess.
Installed libraries: libsignon-extension.so, libsignon-plugins-common.so, libsignon-plugins.so, libsignon-qt6.so.
Installed directories: /usr/include/signon-extension, /usr/include/signon-plugins/SignOn, /usr/include/signon-qt6, /usr/include/signond, /usr/lib/cmake/SignOnQt6, /usr/share/licenses/signond.
Short descriptions
SignOnExtension.pc |
SignOn extension development |
libsignon-qt6.pc |
Client library for the Single Sign On daemon, Qt6 bindings. |
signon-plugins.pc |
SignonPlugins |
signon-plugins-common.pc |
SignonPluginsCommon |
signond.pc |
SignOn Framework client library development package |
Notes
The daemon is started by D-Bus activation: the install puts com.google.code.AccountsSSO.SingleSignOn.service and the backup service in /usr/share/dbus-1/services, each running /usr/bin/signond. Credentials go to an unencrypted SQLite database under $XDG_CONFIG_HOME/signond; signon-kwallet-extension moves the secrets into KWallet.
/etc/signond.conf is upstream’s file. Its active [ObjectTimeouts] drop an idle identity or authentication session after 30 seconds and stop the daemon after 5 idle seconds, where the built-in values are 300, 300 and never; D-Bus activation starts it again on the next call. Its [SecureStorage] keys configure the cryptsetup extension, which is not built, and are unused.