diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2020-11-30 06:18:17 +0000 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2020-11-30 06:18:17 +0000 |
commit | c067868addf0855cb538249053f073c6509ae16c (patch) | |
tree | 9d5bb4f6c517ee0405df14377835292d5593d531 /x11/sddm | |
parent | cb6fe3f201da2fc8d3ac75f3af89e8b5c652c128 (diff) | |
download | ports-c067868addf0855cb538249053f073c6509ae16c.tar.gz ports-c067868addf0855cb538249053f073c6509ae16c.zip |
Notes
Diffstat (limited to 'x11/sddm')
-rw-r--r-- | x11/sddm/Makefile | 4 | ||||
-rw-r--r-- | x11/sddm/distinfo | 6 | ||||
-rw-r--r-- | x11/sddm/files/VirtualTerminal_FreeBSD.cpp | 37 | ||||
-rw-r--r-- | x11/sddm/files/patch-CMakeLists.txt | 16 | ||||
-rw-r--r-- | x11/sddm/files/patch-data_themes_maya_metadata.desktop | 11 | ||||
-rw-r--r-- | x11/sddm/files/patch-services_sddm-autologin.pam | 4 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_common_Configuration.h | 4 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_daemon_CMakeLists.txt | 11 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_daemon_Display.cpp | 9 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_greeter_UserModel.cpp | 12 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_helper_Backend.cpp | 48 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_helper_CMakeLists.txt | 12 | ||||
-rw-r--r-- | x11/sddm/files/patch-src_helper_HelperApp.cpp | 46 | ||||
-rw-r--r-- | x11/sddm/pkg-plist | 12 |
14 files changed, 20 insertions, 212 deletions
diff --git a/x11/sddm/Makefile b/x11/sddm/Makefile index e6456c37be6f..be88f3426a79 100644 --- a/x11/sddm/Makefile +++ b/x11/sddm/Makefile @@ -1,9 +1,8 @@ # $FreeBSD$ PORTNAME= sddm -PORTVERSION= 0.18.1 +PORTVERSION= 0.19.0 DISTVERSIONPREFIX= v -PORTREVISION= 4 CATEGORIES= x11 MAINTAINER= kde@FreeBSD.org @@ -46,7 +45,6 @@ post-patch: -e 's#/usr/share/#${LOCALBASE}/share/#' \ ${WRKSRC}/data/scripts/Xsession \ ${WRKSRC}/src/common/Configuration.h - @${CP} ${PATCHDIR}/VirtualTerminal_FreeBSD.cpp ${WRKSRC}/src/daemon post-install: # Install xsession.desktop to launch .xinitrc via sddm. diff --git a/x11/sddm/distinfo b/x11/sddm/distinfo index 9d8176e8c62e..43730362e3e5 100644 --- a/x11/sddm/distinfo +++ b/x11/sddm/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1581010748 -SHA256 (sddm-sddm-v0.18.1_GH0.tar.gz) = 07296fc747010a5dd58a45f16c3224b439997afad42566e4b043c841b1b71700 -SIZE (sddm-sddm-v0.18.1_GH0.tar.gz) = 3526726 +TIMESTAMP = 1606404273 +SHA256 (sddm-sddm-v0.19.0_GH0.tar.gz) = e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41 +SIZE (sddm-sddm-v0.19.0_GH0.tar.gz) = 3532945 diff --git a/x11/sddm/files/VirtualTerminal_FreeBSD.cpp b/x11/sddm/files/VirtualTerminal_FreeBSD.cpp deleted file mode 100644 index aaf1b610bc47..000000000000 --- a/x11/sddm/files/VirtualTerminal_FreeBSD.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** -* Copyright (c) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the -* Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -***************************************************************************/ - -#include <QDebug> -#include <QString> - -#include "VirtualTerminal.h" - - -namespace SDDM { - namespace VirtualTerminal { - int setUpNewVt() { - qDebug() << "New VT is unsupported on FreeBSD"; - return -1; - } - - void jumpToVt(int vt, bool vt_auto) { - qDebug() << "Jumping to VT" << vt << "is unsupported on FreeBSD"; - } - } -} diff --git a/x11/sddm/files/patch-CMakeLists.txt b/x11/sddm/files/patch-CMakeLists.txt deleted file mode 100644 index a4a034c7405d..000000000000 --- a/x11/sddm/files/patch-CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -1) On FreeBSD X is normally started on VT9. -2) The shutdown command uses '-p' and not '-P' on FreeBSD. - ---- CMakeLists.txt.orig 2017-12-05 16:00:16 UTC -+++ CMakeLists.txt -@@ -168,8 +168,8 @@ add_feature_info("elogind" ELOGIND_FOUND "elogind supp - - # Default behaviour if neither systemd nor elogind is used - if (NOT ELOGIND_FOUND AND NOT SYSTEMD_FOUND) -- set(MINIMUM_VT 7) -- set(HALT_COMMAND "/sbin/shutdown -h -P now") -+ set(MINIMUM_VT 9) -+ set(HALT_COMMAND "/sbin/shutdown -p now") - set(REBOOT_COMMAND "/sbin/shutdown -r now") - endif() - diff --git a/x11/sddm/files/patch-data_themes_maya_metadata.desktop b/x11/sddm/files/patch-data_themes_maya_metadata.desktop deleted file mode 100644 index 32ec3a158259..000000000000 --- a/x11/sddm/files/patch-data_themes_maya_metadata.desktop +++ /dev/null @@ -1,11 +0,0 @@ ---- data/themes/maya/metadata.desktop.orig 2019-03-13 09:22:35 UTC -+++ data/themes/maya/metadata.desktop -@@ -7,7 +7,7 @@ License=CC-BY-SA - Type=sddm-theme - Version=0.1 - Website=https://github.com/spremi --Screenshot=preview.png -+Screenshot=screenshots/hi_IN.png - MainScript=Main.qml - ConfigFile=theme.conf - TranslationsDirectory=translations diff --git a/x11/sddm/files/patch-services_sddm-autologin.pam b/x11/sddm/files/patch-services_sddm-autologin.pam index b021e4c67dd8..4117b6d709ff 100644 --- a/x11/sddm/files/patch-services_sddm-autologin.pam +++ b/x11/sddm/files/patch-services_sddm-autologin.pam @@ -1,9 +1,9 @@ ---- services/sddm-autologin.pam.orig 2017-12-05 16:00:16 UTC +--- services/sddm-autologin.pam.orig 2020-11-03 09:55:31 UTC +++ services/sddm-autologin.pam @@ -1,13 +1,9 @@ #%PAM-1.0 -auth required pam_env.so --auth required pam_tally.so file=/var/log/faillog onerr=succeed +-auth required pam_tally2.so file=/var/log/tallylog onerr=succeed -auth required pam_shells.so -auth required pam_nologin.so auth required pam_permit.so diff --git a/x11/sddm/files/patch-src_common_Configuration.h b/x11/sddm/files/patch-src_common_Configuration.h index a8540227e724..decb680a3c0d 100644 --- a/x11/sddm/files/patch-src_common_Configuration.h +++ b/x11/sddm/files/patch-src_common_Configuration.h @@ -6,7 +6,7 @@ Set the default theme and cursor theme to breeze, because sddm is most likely used together with Plasma. If they aren't available sddm falls back to a compiled-in theme. ---- src/common/Configuration.h.orig 2019-03-13 09:22:35 UTC +--- src/common/Configuration.h.orig 2020-11-03 09:55:31 UTC +++ src/common/Configuration.h @@ -47,10 +47,10 @@ namespace SDDM { // Name Entries (but it's a regular class again) @@ -18,6 +18,6 @@ compiled-in theme. "The files should be named <username>.face.icon")); - Entry(CursorTheme, QString, QString(), _S("Cursor theme used in the greeter")); + Entry(CursorTheme, QString, _S("breeze_cursors"), _S("Cursor theme used in the greeter")); + Entry(Font, QString, QString(), _S("Font used in the greeter")); Entry(EnableAvatars, bool, true, _S("Enable display of custom user avatars")); Entry(DisableAvatarsThreshold,int, 7, _S("Number of users to use as threshold\n" - "above which avatars are disabled\n" diff --git a/x11/sddm/files/patch-src_daemon_CMakeLists.txt b/x11/sddm/files/patch-src_daemon_CMakeLists.txt deleted file mode 100644 index a276ece3da54..000000000000 --- a/x11/sddm/files/patch-src_daemon_CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- src/daemon/CMakeLists.txt.orig 2019-03-13 09:22:35 UTC -+++ src/daemon/CMakeLists.txt -@@ -29,7 +29,7 @@ set(DAEMON_SOURCES - SeatManager.cpp - SignalHandler.cpp - SocketServer.cpp -- VirtualTerminal.cpp -+ VirtualTerminal_FreeBSD.cpp - ) - - qt5_add_dbus_adaptor(DAEMON_SOURCES "${CMAKE_SOURCE_DIR}/data/interfaces/org.freedesktop.DisplayManager.xml" "DisplayManager.h" SDDM::DisplayManager) diff --git a/x11/sddm/files/patch-src_daemon_Display.cpp b/x11/sddm/files/patch-src_daemon_Display.cpp index 43db60d9e3c3..d4e583a60caf 100644 --- a/x11/sddm/files/patch-src_daemon_Display.cpp +++ b/x11/sddm/files/patch-src_daemon_Display.cpp @@ -7,9 +7,9 @@ file defines DesktopNames. Our xinitrc.desktop does not set it because that may confuse the desktop session started from ~/.xinitrc. These environment variables are used for OnlyShowIn and NotShowIn in .desktop files. ---- src/daemon/Display.cpp.orig 2019-03-13 09:22:35 UTC +--- src/daemon/Display.cpp.orig 2020-11-03 09:55:31 UTC +++ src/daemon/Display.cpp -@@ -321,11 +321,13 @@ namespace SDDM { +@@ -320,10 +320,12 @@ namespace SDDM { env.insert(QStringLiteral("XDG_SEAT_PATH"), daemonApp->displayManager()->seatPath(seat()->name())); env.insert(QStringLiteral("XDG_SESSION_PATH"), daemonApp->displayManager()->sessionPath(QStringLiteral("Session%1").arg(daemonApp->newSessionId()))); env.insert(QStringLiteral("DESKTOP_SESSION"), session.desktopSession()); @@ -18,8 +18,7 @@ variables are used for OnlyShowIn and NotShowIn in .desktop files. env.insert(QStringLiteral("XDG_SESSION_CLASS"), QStringLiteral("user")); env.insert(QStringLiteral("XDG_SESSION_TYPE"), session.xdgSessionType()); env.insert(QStringLiteral("XDG_SEAT"), seat()->name()); - + if (!session.desktopNames().isEmpty()) env.insert(QStringLiteral("XDG_SESSION_DESKTOP"), session.desktopNames()); - if (seat()->name() == QLatin1String("seat0")) { - env.insert(QStringLiteral("XDG_VTNR"), QString::number(vt)); + + m_auth->insertEnvironment(env); diff --git a/x11/sddm/files/patch-src_greeter_UserModel.cpp b/x11/sddm/files/patch-src_greeter_UserModel.cpp deleted file mode 100644 index 6ad28e9f28c8..000000000000 --- a/x11/sddm/files/patch-src_greeter_UserModel.cpp +++ /dev/null @@ -1,12 +0,0 @@ -Call 'setpwent' to rewind to the beginning of the passwd database. - ---- src/greeter/UserModel.cpp.orig 2017-12-05 16:00:16 UTC -+++ src/greeter/UserModel.cpp -@@ -55,6 +55,7 @@ namespace SDDM { - const QString defaultFace = QStringLiteral("file://%1/.face.icon").arg(facesDir); - - struct passwd *current_pw; -+ setpwent(); - while ((current_pw = getpwent()) != nullptr) { - - // skip entries with uids smaller than minimum uid diff --git a/x11/sddm/files/patch-src_helper_Backend.cpp b/x11/sddm/files/patch-src_helper_Backend.cpp deleted file mode 100644 index 62a2f1cde51b..000000000000 --- a/x11/sddm/files/patch-src_helper_Backend.cpp +++ /dev/null @@ -1,48 +0,0 @@ ---- src/helper/Backend.cpp.orig 2019-03-13 09:22:35 UTC -+++ src/helper/Backend.cpp -@@ -29,6 +29,10 @@ - #include <QtCore/QProcessEnvironment> - - #include <pwd.h> -+#if defined(Q_OS_FREEBSD) -+#include <sys/types.h> -+#include <login_cap.h> -+#endif /* defined(Q_OS_FREEBSD) */ - - namespace SDDM { - Backend::Backend(HelperApp* parent) -@@ -70,6 +74,34 @@ namespace SDDM { - .arg(mainConfig.X11.UserAuthFile.get()); - env.insert(QStringLiteral("XAUTHORITY"), value); - } -+#if defined(Q_OS_FREEBSD) -+ /* get additional environment variables via setclassenvironment(); -+ this needs to be done here instead of in UserSession::setupChildProcess -+ as the environment for execve() is prepared here; -+ save and restore SDDM's environment because setclassenvironment() mangles it */ -+ login_cap_t *lc; -+ -+ auto savedEnv = QProcessEnvironment::systemEnvironment(); -+ -+ if ((lc = login_getpwclass(pw)) != NULL) { -+ setclassenvironment(lc, pw, 1); /* path variables */ -+ setclassenvironment(lc, pw, 0); /* non-path variables */ -+ login_close(lc); -+ } -+ if ((lc = login_getuserclass(pw)) != NULL) { -+ setclassenvironment(lc, pw, 1); /* path variables */ -+ setclassenvironment(lc, pw, 0); /* non-path variables */ -+ login_close(lc); -+ } -+ /* copy all environment variables that are now set */ -+ QString savedLang = env.value(QStringLiteral("LANG")); -+ env.insert(QProcessEnvironment::systemEnvironment()); -+ if (qobject_cast<HelperApp*>(parent())->user() == QStringLiteral("sddm")) -+ env.insert(QStringLiteral("LANG"), savedLang); -+ /* restore original environment */ -+ QProcessEnvironment::systemEnvironment().clear(); -+ QProcessEnvironment::systemEnvironment().insert(savedEnv); -+#endif /* defined(Q_OS_FREEBSD) */ - // TODO: I'm fairly sure this shouldn't be done for PAM sessions, investigate! - m_app->session()->setProcessEnvironment(env); - } diff --git a/x11/sddm/files/patch-src_helper_CMakeLists.txt b/x11/sddm/files/patch-src_helper_CMakeLists.txt deleted file mode 100644 index ac5589c0c92e..000000000000 --- a/x11/sddm/files/patch-src_helper_CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ ---- src/helper/CMakeLists.txt.orig 2019-03-13 09:22:35 UTC -+++ src/helper/CMakeLists.txt -@@ -37,6 +37,9 @@ if(PAM_FOUND) - else() - target_link_libraries(sddm-helper crypt) - endif() -+if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") -+ target_link_libraries(sddm-helper util) -+endif() - - if(JOURNALD_FOUND) - target_link_libraries(sddm-helper ${JOURNALD_LIBRARIES}) diff --git a/x11/sddm/files/patch-src_helper_HelperApp.cpp b/x11/sddm/files/patch-src_helper_HelperApp.cpp deleted file mode 100644 index cd4f04ba2dfe..000000000000 --- a/x11/sddm/files/patch-src_helper_HelperApp.cpp +++ /dev/null @@ -1,46 +0,0 @@ ---- src/helper/HelperApp.cpp.orig 2019-03-13 09:22:35 UTC -+++ src/helper/HelperApp.cpp -@@ -35,7 +35,9 @@ - #include <sys/socket.h> - #include <sys/time.h> - -+#if defined(Q_OS_LINUX) - #include <utmp.h> -+#endif - #include <utmpx.h> - #include <QByteArray> - -@@ -302,12 +304,20 @@ namespace SDDM { - - // append to failed login database btmp - if (!authSuccessful) { -+#if defined(Q_OS_FREEBSD) -+ pututxline(&entry); -+#else - updwtmpx("/var/log/btmp", &entry); -+#endif - } - - // append to wtmp - else { -+#if defined(Q_OS_FREEBSD) -+ pututxline(&entry); -+#else - updwtmpx("/var/log/wtmp", &entry); -+#endif - } - } - -@@ -343,8 +353,12 @@ namespace SDDM { - qWarning() << "Failed to write utmpx: " << strerror(errno); - endutxent(); - -+#if defined(Q_OS_FREEBSD) -+ pututxline(&entry); -+#else - // append to wtmp - updwtmpx("/var/log/wtmp", &entry); -+#endif - } - } - diff --git a/x11/sddm/pkg-plist b/x11/sddm/pkg-plist index 824dc0cda5c6..5c80fa37622a 100644 --- a/x11/sddm/pkg-plist +++ b/x11/sddm/pkg-plist @@ -4,10 +4,6 @@ etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf etc/pam.d/sddm etc/pam.d/sddm-autologin etc/pam.d/sddm-greeter -man/man1/sddm.1.gz -man/man1/sddm-greeter.1.gz -man/man5/sddm.conf.5.gz -man/man5/sddm-state.conf.5.gz %%QT_QMLDIR%%/SddmComponents/Background.qml %%QT_QMLDIR%%/SddmComponents/Button.qml %%QT_QMLDIR%%/SddmComponents/Clock.qml @@ -22,6 +18,10 @@ man/man5/sddm-state.conf.5.gz %%QT_QMLDIR%%/SddmComponents/qmldir %%QT_QMLDIR%%/SddmComponents/warning.png libexec/sddm-helper +man/man1/sddm-greeter.1.gz +man/man1/sddm.1.gz +man/man5/sddm-state.conf.5.gz +man/man5/sddm.conf.5.gz %%DATADIR%%/faces/.face.icon %%DATADIR%%/faces/root.face.icon %%DATADIR%%/flags/ae.png @@ -156,10 +156,13 @@ libexec/sddm-helper %%DATADIR%%/translations/de.qm %%DATADIR%%/translations/es.qm %%DATADIR%%/translations/et.qm +%%DATADIR%%/translations/eu.qm %%DATADIR%%/translations/fi.qm %%DATADIR%%/translations/fr.qm +%%DATADIR%%/translations/he.qm %%DATADIR%%/translations/hi_IN.qm %%DATADIR%%/translations/hu.qm +%%DATADIR%%/translations/ie.qm %%DATADIR%%/translations/is.qm %%DATADIR%%/translations/it.qm %%DATADIR%%/translations/ja.qm @@ -170,6 +173,7 @@ libexec/sddm-helper %%DATADIR%%/translations/nb.qm %%DATADIR%%/translations/nl.qm %%DATADIR%%/translations/nn.qm +%%DATADIR%%/translations/oc.qm %%DATADIR%%/translations/pl.qm %%DATADIR%%/translations/pt_BR.qm %%DATADIR%%/translations/pt_PT.qm |