Import Qt6 SignOn

The SignOn daemon is a D-Bus service which performs user authentication on
behalf of its clients. There are currently authentication plugins for OAuth 1.0
and 2.0, SASL, Digest-MD5, and plain username/password combination.

Background informations:
SignOn decided depending on the QMake version whether it is a Qt5 or Qt6
target. That makes it a freak show to build it in a port.

This is not a gift for for all PACKAGE MAINTAINER. qmake <3

OK landry@
This commit is contained in:
rsadowski
2024-04-16 19:50:12 +00:00
parent a546dc3f37
commit 69da3940d7
9 changed files with 123 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
COMMENT = SignOn Daemon (Qt)
CATEGORIES = net
HOMEPAGE = https://accounts-sso.gitlab.io/
V = VERSION_8.61
DIST_TUPLE = gitlab nicolasfella signond \
c8ad98249af541514ff7a81634d3295e712f1a39 .
DISTNAME = signond-qt6-${V:S/VERSION_//}
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
SHARED_LIBS += signon-qt6 0.0 # 1.0
# LGPLv2.1+, GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} Qt6Core Qt6DBus m
MODULES = x11/qt6 \
devel/qmake
WRKDIST = ${WRKDIR}/signond-c8ad98249af541514ff7a81634d3295e712f1a39
pre-configure:
ln -sf ${LOCALBASE}/lib/qt6/bin/q{collection,help}generator ${WRKDIR}/bin/
${SUBST_CMD} ${WRKSRC}/lib/SignOn/SignOnQt6Config.cmake.in
.include <bsd.port.mk>
+2
View File
@@ -0,0 +1,2 @@
SHA256 (nicolasfella-signond-c8ad98249af541514ff7a81634d3295e712f1a39.tar.gz) = LD3Zf825Dzi7mIT34R0PubohT3i92qyyfklpzv/31pA=
SIZE (nicolasfella-signond-c8ad98249af541514ff7a81634d3295e712f1a39.tar.gz) = 283647
@@ -0,0 +1,11 @@
Index: lib/SignOn/SignOnQt6Config.cmake.in
--- lib/SignOn/SignOnQt6Config.cmake.in.orig
+++ lib/SignOn/SignOnQt6Config.cmake.in
@@ -2,6 +2,6 @@
# SIGNONQT_LIBRARIES - The libraries needed to use libsignon-qt
# SIGNONQT_LIBRARIES_STATIC - The static version of libsignon-qt
-set(SIGNONQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
+set(SIGNONQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so.${LIBsignon-qt6_VERSION})
set(SIGNONQT_LIBRARIES_STATIC $${INSTALL_LIBDIR}/lib$${TARGET}.a)
set(SIGNONQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET})
@@ -0,0 +1,8 @@
Index: lib/SignOn/SignOn.pro
--- lib/SignOn/SignOn.pro.orig
+++ lib/SignOn/SignOn.pro
@@ -4,4 +4,3 @@ SUBDIRS = \
libsignon-qt-shared.pro \
libsignon-qt-static.pro
-include(doc/doc.pri)
@@ -0,0 +1,8 @@
Index: lib/lib.pro
--- lib/lib.pro.orig
+++ lib/lib.pro
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
-SUBDIRS = signond SignOn plugins
+SUBDIRS = SignOn
+17
View File
@@ -0,0 +1,17 @@
Index: signon.pro
--- signon.pro.orig
+++ signon.pro
@@ -1,12 +1,8 @@
include( common-vars.pri )
TEMPLATE = subdirs
-SUBDIRS = lib src server tests
-src.depends = lib
-tests.depends = lib src
+SUBDIRS = lib
include( common-installs-config.pri )
-
-include( doc/doc.pri )
# End of File
@@ -0,0 +1,20 @@
Index: src/signond/signond.pro
--- src/signond/signond.pro.orig
+++ src/signond/signond.pro
@@ -95,7 +95,6 @@ DEFINES += "SIGNOND_EXTENSIONS_DIR=$${SIGNOND_EXTENSIO
#Trace defines can be overruled by signond's configuration file `LoggingLevel`
DEFINES += SIGNOND_TRACE
LIBS += \
- -lrt \
-lsignon-plugins-common \
-lsignon-extension
@@ -108,7 +107,7 @@ include( ../../common-installs-config.pri )
setupstorage.sh
conf_file.files = $$OTHER_FILES
- conf_file.path = /etc/
+ conf_file.path = $${INSTALL_PREFIX}/share/examples/signond/
INSTALLS += conf_file
}
+3
View File
@@ -0,0 +1,3 @@
The SignOn daemon is a D-Bus service which performs user authentication on
behalf of its clients. There are currently authentication plugins for OAuth 1.0
and 2.0, SASL, Digest-MD5, and plain username/password combination.
+24
View File
@@ -0,0 +1,24 @@
include/signon-qt6/
include/signon-qt6/SignOn/
include/signon-qt6/SignOn/AuthService
include/signon-qt6/SignOn/AuthSession
include/signon-qt6/SignOn/Error
include/signon-qt6/SignOn/Identity
include/signon-qt6/SignOn/IdentityInfo
include/signon-qt6/SignOn/SecurityContext
include/signon-qt6/SignOn/SessionData
include/signon-qt6/SignOn/authservice.h
include/signon-qt6/SignOn/authsession.h
include/signon-qt6/SignOn/identity.h
include/signon-qt6/SignOn/identityinfo.h
include/signon-qt6/SignOn/libsignoncommon.h
include/signon-qt6/SignOn/securitycontext.h
include/signon-qt6/SignOn/sessiondata.h
include/signon-qt6/SignOn/signon.h
include/signon-qt6/SignOn/signonerror.h
lib/cmake/SignOnQt6/
lib/cmake/SignOnQt6/SignOnQt6Config.cmake
lib/cmake/SignOnQt6/SignOnQt6ConfigVersion.cmake
@static-lib lib/libsignon-qt6.a
@lib lib/libsignon-qt6.so.${LIBsignon-qt6_VERSION}
lib/pkgconfig/libsignon-qt6.pc