Date: Friday, August 14, 2020 @ 12:55:57 Author: tpowa Revision: 394034
archrelease: copy trunk to testing-x86_64 Added: lightdm/repos/testing-x86_64/ lightdm/repos/testing-x86_64/PKGBUILD (from rev 394033, lightdm/trunk/PKGBUILD) lightdm/repos/testing-x86_64/Xsession (from rev 394033, lightdm/trunk/Xsession) lightdm/repos/testing-x86_64/lightdm-autologin.pam (from rev 394033, lightdm/trunk/lightdm-autologin.pam) lightdm/repos/testing-x86_64/lightdm-default-config.patch (from rev 394033, lightdm/trunk/lightdm-default-config.patch) lightdm/repos/testing-x86_64/lightdm.pam (from rev 394033, lightdm/trunk/lightdm.pam) lightdm/repos/testing-x86_64/lightdm.rules (from rev 394033, lightdm/trunk/lightdm.rules) lightdm/repos/testing-x86_64/lightdm.service (from rev 394033, lightdm/trunk/lightdm.service) lightdm/repos/testing-x86_64/lightdm.sysusers (from rev 394033, lightdm/trunk/lightdm.sysusers) lightdm/repos/testing-x86_64/lightdm.tmpfiles (from rev 394033, lightdm/trunk/lightdm.tmpfiles) ------------------------------+ PKGBUILD | 158 +++++++++++++++++++++++++++++++++++++++++ Xsession | 64 ++++++++++++++++ lightdm-autologin.pam | 13 +++ lightdm-default-config.patch | 40 ++++++++++ lightdm.pam | 7 + lightdm.rules | 15 +++ lightdm.service | 14 +++ lightdm.sysusers | 1 lightdm.tmpfiles | 5 + 9 files changed, 317 insertions(+) Copied: lightdm/repos/testing-x86_64/PKGBUILD (from rev 394033, lightdm/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,158 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: Morfeo <morfe...@hotmail.it> + +pkgbase=lightdm +pkgname=( + lightdm + liblightdm-qt5 +) +pkgver=1.30.0 +pkgrel=4 +epoch=1 +pkgdesc='A lightweight display manager' +arch=(x86_64) +url=https://github.com/canonical/lightdm +license=( + GPL3 + LGPL3 +) +makedepends=( + glib2 + git + gobject-introspection + gtk-doc + intltool + itstool + libgcrypt + libx11 + libxcb + libxdmcp + libxklavier + pam + polkit + qt5-base + vala + yelp-tools +) +source=( + git+https://github.com/CanonicalLtd/lightdm.git?signed#tag=${pkgver} + lightdm.service + lightdm.sysusers + lightdm.tmpfiles + lightdm.pam + lightdm-autologin.pam + lightdm.rules + lightdm-default-config.patch + Xsession +) +validpgpkeys=(497851B5D455C606543F2B9318EAA1890F7C882E) # Robert Ancell <robert.anc...@gmail.com> +sha256sums=('SKIP' + '0db37a14521be729411a767f157fbd07adb738b14006277def53a1efe4dacfb8' + 'fd93291bfc9985f0a1bb288472866aa0a9bcd259e024c3a29d20ca158bc08403' + 'cd69f928a1a5b30a30ba916e1b64c9f3657597cb28f3f0e220494d6e5e4bf587' + 'e8c4c5fd3b801a390d201166fd1fb9730e78a5c62928768103b870b6bd980ea0' + 'e111a484f98c1449e1cf10c31532748d98e850eff1ab9f3a3b8eec485f44198f' + 'a89566307e1c81c24f037d854cbd472d2f94f8a4b759877a01563a332319f7d6' + '782a52dc39a7d6f2c6ee31e66897e3502fc14864e3e4ede8e3d1a0da74b8dfdf' + 'd30321a1b490500483b8ed7825fcff2c24a7c760ac627789ff517693888ec3c5') + +prepare() { + cd lightdm + + patch -Np1 -i ../lightdm-default-config.patch + + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd lightdm + + export MOC5=moc-qt5 + + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/lightdm \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static \ + --disable-tests \ + --enable-gtk-doc \ + --with-greeter-user=lightdm \ + --with-greeter-session=lightdm-gtk-greeter + make +} + +package_lightdm() { + depends=( + glib2 + libgcrypt + libx11 + libxcb + libxdmcp + libxklavier + pam + polkit + ) + optdepends=( + 'accountsservice: Enhanced user accounts handling' + 'lightdm-gtk-greeter: GTK greeter' + 'xorg-server-xephyr: LightDM test mode' + ) + backup=( + etc/apparmor.d/lightdm-guest-session + etc/lightdm/keys.conf + etc/lightdm/lightdm.conf + etc/lightdm/users.conf + etc/lightdm/Xsession + etc/pam.d/lightdm + etc/pam.d/lightdm-autologin + etc/pam.d/lightdm-greeter + ) + + cd lightdm + + make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" -C liblightdm-qt uninstall + install -m 755 ../Xsession "${pkgdir}"/etc/lightdm/Xsession + rm -rf "${pkgdir}"/etc/init + rm -rf "${pkgdir}"/usr/include/lightdm-qt{,5}-* + + # Dbus + mv "${pkgdir}"/{etc,usr/share}/dbus-1/system.d + rmdir "${pkgdir}"/etc/dbus-1 + + # PAM + install -m 644 ../lightdm.pam "${pkgdir}"/etc/pam.d/lightdm + install -m 644 ../lightdm-autologin.pam "${pkgdir}"/etc/pam.d/lightdm-autologin + + # PolicyKit + install -dm 750 -g 102 "${pkgdir}"/usr/share/polkit-1/rules.d + install -m 644 ../lightdm.rules "${pkgdir}"/usr/share/polkit-1/rules.d/lightdm.rules + + # Systemd + install -dm 755 "${pkgdir}"/usr/lib/{systemd/system,sysusers.d,tmpfiles.d} + install -m 644 ../lightdm.service "${pkgdir}"/usr/lib/systemd/system/lightdm.service + install -m 644 ../lightdm.sysusers "${pkgdir}"/usr/lib/sysusers.d/lightdm.conf + install -m 644 ../lightdm.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/lightdm.conf +} + +package_liblightdm-qt5() { + pkgdesc='LightDM Qt client library' + depends=( + lightdm + qt5-base + ) + options=(!emptydirs) + + cd lightdm + + make DESTDIR="${pkgdir}" -C liblightdm-gobject install + make DESTDIR="${pkgdir}" -C liblightdm-qt install + make DESTDIR="${pkgdir}" -C liblightdm-gobject uninstall + find "${pkgdir}" -type d -name *qt[!5]* -exec rm -rf {} + + find "${pkgdir}" -type f -name *qt[!5]* -exec rm {} + + find "${pkgdir}" -type l -name *qt[!5]* -exec rm {} + +} + +# vim: ts=2 sw=2 et: Copied: lightdm/repos/testing-x86_64/Xsession (from rev 394033, lightdm/trunk/Xsession) =================================================================== --- testing-x86_64/Xsession (rev 0) +++ testing-x86_64/Xsession 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,64 @@ +#!/bin/sh +# +# LightDM wrapper to run around X sessions. + +echo "Running X session wrapper" + +# Load profile +for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do + if [ -f "$file" ]; then + echo "Loading profile from $file"; + . "$file" + fi +done + +# Load resources +for file in "/etc/X11/Xresources" "$HOME/.Xresources"; do + if [ -f "$file" ]; then + echo "Loading resource: $file" + xrdb -merge "$file" + fi +done + +# Load keymaps +for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do + if [ -f "$file" ]; then + echo "Loading keymap: $file" + setxkbmap `cat "$file"` + XKB_IN_USE=yes + fi +done + +# Load xmodmap if not using XKB +if [ -z "$XKB_IN_USE" ]; then + for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do + if [ -f "$file" ]; then + echo "Loading modmap: $file" + xmodmap "$file" + fi + done +fi + +unset XKB_IN_USE + +# Run all system xinitrc shell scripts +xinitdir="/etc/X11/xinit/xinitrc.d" +if [ -d "$xinitdir" ]; then + for script in $xinitdir/*; do + echo "Loading xinit script $script" + if [ -x "$script" -a ! -d "$script" ]; then + . "$script" + fi + done +fi + +# Run user xsession shell script +script="$HOME/.xsession" +if [ -x "$script" -a ! -d "$script" ]; then + echo "Loading xsession script $script" + . "$script" +fi + +echo "X session wrapper complete, running session $@" + +exec $@ Copied: lightdm/repos/testing-x86_64/lightdm-autologin.pam (from rev 394033, lightdm/trunk/lightdm-autologin.pam) =================================================================== --- testing-x86_64/lightdm-autologin.pam (rev 0) +++ testing-x86_64/lightdm-autologin.pam 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,13 @@ +#%PAM-1.0 +auth required pam_env.so +auth required pam_faillock.so preauth +auth required pam_shells.so +auth required pam_nologin.so +auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin +auth required pam_unix.so +auth required pam_permit.so +-auth optional pam_gnome_keyring.so +account include system-local-login +password include system-local-login +session include system-local-login +-session optional pam_gnome_keyring.so auto_start Copied: lightdm/repos/testing-x86_64/lightdm-default-config.patch (from rev 394033, lightdm/trunk/lightdm-default-config.patch) =================================================================== --- testing-x86_64/lightdm-default-config.patch (rev 0) +++ testing-x86_64/lightdm-default-config.patch 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,40 @@ +diff -rupN lightdm-1.16.7.orig/data/lightdm.conf lightdm-1.16.7/data/lightdm.conf +--- lightdm-1.16.7.orig/data/lightdm.conf 2016-02-07 10:44:47.229197400 +0100 ++++ lightdm-1.16.7/data/lightdm.conf 2016-02-07 10:47:36.011855600 +0100 +@@ -21,13 +21,13 @@ + #start-default-seat=true + #greeter-user=lightdm + #minimum-display-number=0 +-#minimum-vt=7 ++#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799 + #lock-memory=true + #user-authority-in-system-dir=false + #guest-account-script=guest-account + #logind-check-graphical=false + #log-directory=/var/log/lightdm +-#run-directory=/var/run/lightdm ++run-directory=/run/lightdm + #cache-directory=/var/cache/lightdm + #sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions + #remote-sessions-directory=/usr/share/lightdm/remote-sessions +@@ -110,7 +110,7 @@ + #allow-user-switching=true + #allow-guest=true + #guest-session= +-#session-wrapper=lightdm-session ++session-wrapper=/etc/lightdm/Xsession + #greeter-wrapper= + #guest-wrapper= + #display-setup-script= +diff -rupN lightdm-1.16.7.orig/data/users.conf lightdm-1.16.7/data/users.conf +--- lightdm-1.16.7.orig/data/users.conf 2016-02-07 10:44:47.224423000 +0100 ++++ lightdm-1.16.7/data/users.conf 2016-02-07 10:44:53.660216200 +0100 +@@ -9,6 +9,6 @@ + # hidden-shells = Shells that indicate a user cannot login + # + [UserList] +-minimum-uid=500 ++minimum-uid=1000 + hidden-users=nobody nobody4 noaccess +-hidden-shells=/bin/false /usr/sbin/nologin /sbin/nologin ++hidden-shells=/bin/false /usr/bin/nologin /bin/nologin Copied: lightdm/repos/testing-x86_64/lightdm.pam (from rev 394033, lightdm/trunk/lightdm.pam) =================================================================== --- testing-x86_64/lightdm.pam (rev 0) +++ testing-x86_64/lightdm.pam 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,7 @@ +#%PAM-1.0 +auth include system-login +-auth optional pam_gnome_keyring.so +account include system-login +password include system-login +session include system-login +-session optional pam_gnome_keyring.so auto_start Copied: lightdm/repos/testing-x86_64/lightdm.rules (from rev 394033, lightdm/trunk/lightdm.rules) =================================================================== --- testing-x86_64/lightdm.rules (rev 0) +++ testing-x86_64/lightdm.rules 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,15 @@ +polkit.addRule(function(action, subject) { + if (subject.user == "lightdm") { + polkit.log("action=" + action); + polkit.log("subject=" + subject); + if (action.id.indexOf("org.freedesktop.login1.") == 0) { + return polkit.Result.YES; + } + if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) { + return polkit.Result.YES; + } + if (action.id.indexOf("org.freedesktop.upower.") == 0) { + return polkit.Result.YES; + } + } +}); Copied: lightdm/repos/testing-x86_64/lightdm.service (from rev 394033, lightdm/trunk/lightdm.service) =================================================================== --- testing-x86_64/lightdm.service (rev 0) +++ testing-x86_64/lightdm.service 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,14 @@ +[Unit] +Description=Light Display Manager +Documentation=man:lightdm(1) +Conflicts=getty@tty1.service +After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service + +[Service] +ExecStart=/usr/bin/lightdm +Restart=always +IgnoreSIGPIPE=no +BusName=org.freedesktop.DisplayManager + +[Install] +Alias=display-manager.service Copied: lightdm/repos/testing-x86_64/lightdm.sysusers (from rev 394033, lightdm/trunk/lightdm.sysusers) =================================================================== --- testing-x86_64/lightdm.sysusers (rev 0) +++ testing-x86_64/lightdm.sysusers 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1 @@ +u lightdm - "Light Display Manager" /var/lib/lightdm Copied: lightdm/repos/testing-x86_64/lightdm.tmpfiles (from rev 394033, lightdm/trunk/lightdm.tmpfiles) =================================================================== --- testing-x86_64/lightdm.tmpfiles (rev 0) +++ testing-x86_64/lightdm.tmpfiles 2020-08-14 12:55:57 UTC (rev 394034) @@ -0,0 +1,5 @@ +d /run/lightdm 0711 lightdm lightdm - +d /var/cache/lightdm 0711 root lightdm - +d /var/lib/lightdm 1770 lightdm lightdm - +d /var/lib/lightdm-data 1770 lightdm lightdm - +d /var/log/lightdm 0711 root lightdm -