Date: Wednesday, December 7, 2016 @ 18:41:21 Author: bgyorgy Revision: 198359
archrelease: copy trunk to community-i686, community-x86_64 Added: lxdm/repos/community-i686/PKGBUILD (from rev 198358, lxdm/trunk/PKGBUILD) lxdm/repos/community-i686/Xsession (from rev 198358, lxdm/trunk/Xsession) lxdm/repos/community-i686/default-config.patch (from rev 198358, lxdm/trunk/default-config.patch) lxdm/repos/community-i686/git-fixes.patch (from rev 198358, lxdm/trunk/git-fixes.patch) lxdm/repos/community-i686/lxdm.install (from rev 198358, lxdm/trunk/lxdm.install) lxdm/repos/community-i686/lxdm.pam (from rev 198358, lxdm/trunk/lxdm.pam) lxdm/repos/community-x86_64/PKGBUILD (from rev 198358, lxdm/trunk/PKGBUILD) lxdm/repos/community-x86_64/Xsession (from rev 198358, lxdm/trunk/Xsession) lxdm/repos/community-x86_64/default-config.patch (from rev 198358, lxdm/trunk/default-config.patch) lxdm/repos/community-x86_64/git-fixes.patch (from rev 198358, lxdm/trunk/git-fixes.patch) lxdm/repos/community-x86_64/lxdm.install (from rev 198358, lxdm/trunk/lxdm.install) lxdm/repos/community-x86_64/lxdm.pam (from rev 198358, lxdm/trunk/lxdm.pam) Deleted: lxdm/repos/community-i686/PKGBUILD lxdm/repos/community-i686/Xsession lxdm/repos/community-i686/default-config.patch lxdm/repos/community-i686/git-fixes.patch lxdm/repos/community-i686/lxdm.install lxdm/repos/community-i686/lxdm.pam lxdm/repos/community-x86_64/PKGBUILD lxdm/repos/community-x86_64/Xsession lxdm/repos/community-x86_64/default-config.patch lxdm/repos/community-x86_64/git-fixes.patch lxdm/repos/community-x86_64/lxdm.install lxdm/repos/community-x86_64/lxdm.pam ---------------------------------------+ /PKGBUILD | 168 ++++++++++++++++++++++++++++++++ /Xsession | 142 +++++++++++++++++++++++++++ /default-config.patch | 50 +++++++++ /git-fixes.patch | 142 +++++++++++++++++++++++++++ /lxdm.install | 24 ++++ /lxdm.pam | 14 ++ community-i686/PKGBUILD | 84 ---------------- community-i686/Xsession | 71 ------------- community-i686/default-config.patch | 25 ---- community-i686/git-fixes.patch | 71 ------------- community-i686/lxdm.install | 12 -- community-i686/lxdm.pam | 7 - community-x86_64/PKGBUILD | 84 ---------------- community-x86_64/Xsession | 71 ------------- community-x86_64/default-config.patch | 25 ---- community-x86_64/git-fixes.patch | 71 ------------- community-x86_64/lxdm.install | 12 -- community-x86_64/lxdm.pam | 7 - 18 files changed, 540 insertions(+), 540 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/PKGBUILD 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,84 +0,0 @@ -# $Id$ -# Maintainer: Balló György <ballogyor+arch at gmail dot com> -# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> -# Contributor: AndyRTR <andy...@archlinux.org> -# Contributor: kiefer <jorgelmad...@gmail.com> - -pkgbase=lxdm -pkgname=(lxdm lxdm-gtk3) -pkgver=0.5.3 -pkgrel=3 -pkgdesc='Lightweight X11 Display Manager' -arch=('i686' 'x86_64') -url="http://lxde.org/" -license=('GPL') -depends=('gtk2' 'gtk3' 'xorg-server') -makedepends=('intltool' 'iso-codes') -optdepends=('iso-codes: show language names in language chooser' - 'librsvg: display the default background') -install=$pkgbase.install -backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' - 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' - 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') -source=(http://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz - git-fixes.patch - default-config.patch - lxdm.pam - Xsession) -md5sums=('061caae432634e6db38bbdc84bc6ffa0' - '007fc1b0ea74500ffb0817a2fa2c76e8' - 'fb2fb99acb11b6dfdb8d5fd72605b8da' - 'c941ef896248bc7c03901b513490425c' - '6ff73570368501a06ee7badc8e415d0a') - -prepare(){ - cd $pkgbase-$pkgver - - # Apply fixes from git - patch -Np1 -i ../git-fixes.patch - - # Adjust Arch-specific settings - patch -Np1 -i ../default-config.patch - - # Use our custom pam and Xsession files - cp ../lxdm.pam pam/lxdm - cp ../Xsession data/Xsession -} - -build() { - # GTK+ 2 version - [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2 - cd gtk2 - ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ - --sysconfdir=/etc --localstatedir=/var - make - - cd "$srcdir" - # GTK+ 3 version - [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3 - cd gtk3 - ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ - --sysconfdir=/etc --localstatedir=/var --enable-gtk3 - make -} - -package_lxdm() { - groups=('lxde') - depends=('gtk2' 'xorg-server') - optdepends+=('gnome-themes-standard: default GTK+ theme') - - cd gtk2 - make DESTDIR="$pkgdir" install - chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" -} - -package_lxdm-gtk3() { - groups=('lxde-gtk3') - pkgdesc+=' (GTK+ 3 version)' - depends=('gtk3' 'xorg-server') - conflicts=('lxdm') - - cd gtk3 - make DESTDIR="$pkgdir" install - chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" -} Copied: lxdm/repos/community-i686/PKGBUILD (from rev 198358, lxdm/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,84 @@ +# $Id$ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: AndyRTR <andy...@archlinux.org> +# Contributor: kiefer <jorgelmad...@gmail.com> + +pkgbase=lxdm +pkgname=(lxdm lxdm-gtk3) +pkgver=0.5.3 +pkgrel=3 +pkgdesc='Lightweight X11 Display Manager' +arch=('i686' 'x86_64') +url="http://lxde.org/" +license=('GPL') +depends=('gtk2' 'gtk3' 'xorg-server') +makedepends=('intltool' 'iso-codes') +optdepends=('iso-codes: show language names in language chooser' + 'librsvg: display the default background') +install=$pkgbase.install +backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' + 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' + 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') +source=(https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz + git-fixes.patch + default-config.patch + lxdm.pam + Xsession) +md5sums=('061caae432634e6db38bbdc84bc6ffa0' + '007fc1b0ea74500ffb0817a2fa2c76e8' + 'fb2fb99acb11b6dfdb8d5fd72605b8da' + 'c941ef896248bc7c03901b513490425c' + '6ff73570368501a06ee7badc8e415d0a') + +prepare(){ + cd $pkgbase-$pkgver + + # Apply fixes from git + patch -Np1 -i ../git-fixes.patch + + # Adjust Arch-specific settings + patch -Np1 -i ../default-config.patch + + # Use our custom pam and Xsession files + cp ../lxdm.pam pam/lxdm + cp ../Xsession data/Xsession +} + +build() { + # GTK+ 2 version + [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2 + cd gtk2 + ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ + --sysconfdir=/etc --localstatedir=/var + make + + cd "$srcdir" + # GTK+ 3 version + [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3 + cd gtk3 + ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ + --sysconfdir=/etc --localstatedir=/var --enable-gtk3 + make +} + +package_lxdm() { + groups=('lxde') + depends=('gtk2' 'xorg-server') + optdepends+=('gnome-themes-standard: default GTK+ theme') + + cd gtk2 + make DESTDIR="$pkgdir" install + chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" +} + +package_lxdm-gtk3() { + groups=('lxde-gtk3') + pkgdesc+=' (GTK+ 3 version)' + depends=('gtk3' 'xorg-server') + conflicts=('lxdm') + + cd gtk3 + make DESTDIR="$pkgdir" install + chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" +} Deleted: community-i686/Xsession =================================================================== --- community-i686/Xsession 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/Xsession 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,71 +0,0 @@ -#!/bin/sh -# -# LXDM wrapper to run around X sessions. - -echo "Running X session wrapper" - -if [ $# -eq 1 -a -n "$1" ]; then - LXSESSION=$1 -else -# default session - LXSESSION=/usr/bin/startlxde -fi - -# 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 $LXSESSION" - -exec $LXSESSION Copied: lxdm/repos/community-i686/Xsession (from rev 198358, lxdm/trunk/Xsession) =================================================================== --- community-i686/Xsession (rev 0) +++ community-i686/Xsession 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,71 @@ +#!/bin/sh +# +# LXDM wrapper to run around X sessions. + +echo "Running X session wrapper" + +if [ $# -eq 1 -a -n "$1" ]; then + LXSESSION=$1 +else +# default session + LXSESSION=/usr/bin/startlxde +fi + +# 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 $LXSESSION" + +exec $LXSESSION Deleted: community-i686/default-config.patch =================================================================== --- community-i686/default-config.patch 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/default-config.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,25 +0,0 @@ -diff -Naur lxdm.orig/data/lxdm.conf.in lxdm/data/lxdm.conf.in ---- lxdm.orig/data/lxdm.conf.in 2013-08-30 17:56:16.097006000 +0200 -+++ lxdm/data/lxdm.conf.in 2013-09-04 01:54:12.942117085 +0200 -@@ -23,7 +23,7 @@ - - [server] - ## arg used to start xserver, not fully function --# arg=/usr/bin/X -background vt1 -+arg=/usr/bin/X -background vt1 - # uncomment this if you really want xserver listen to tcp - # tcp_listen=1 - # uncoment this if you want reset the xserver after logou -@@ -31,10 +31,10 @@ - - [display] - ## gtk theme used by greeter --gtk_theme=Clearlooks -+gtk_theme=Adwaita - - ## background of the greeter --bg=/usr/share/backgrounds/default.png -+# bg=/usr/share/backgrounds/default.png - - ## if show bottom pane - bottom_pane=1 Copied: lxdm/repos/community-i686/default-config.patch (from rev 198358, lxdm/trunk/default-config.patch) =================================================================== --- community-i686/default-config.patch (rev 0) +++ community-i686/default-config.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,25 @@ +diff -Naur lxdm.orig/data/lxdm.conf.in lxdm/data/lxdm.conf.in +--- lxdm.orig/data/lxdm.conf.in 2013-08-30 17:56:16.097006000 +0200 ++++ lxdm/data/lxdm.conf.in 2013-09-04 01:54:12.942117085 +0200 +@@ -23,7 +23,7 @@ + + [server] + ## arg used to start xserver, not fully function +-# arg=/usr/bin/X -background vt1 ++arg=/usr/bin/X -background vt1 + # uncomment this if you really want xserver listen to tcp + # tcp_listen=1 + # uncoment this if you want reset the xserver after logou +@@ -31,10 +31,10 @@ + + [display] + ## gtk theme used by greeter +-gtk_theme=Clearlooks ++gtk_theme=Adwaita + + ## background of the greeter +-bg=/usr/share/backgrounds/default.png ++# bg=/usr/share/backgrounds/default.png + + ## if show bottom pane + bottom_pane=1 Deleted: community-i686/git-fixes.patch =================================================================== --- community-i686/git-fixes.patch 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/git-fixes.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,71 +0,0 @@ -diff --git a/src/greeter-gdk.c b/src/greeter-gdk.c -index 1abbefa..ad3267a 100644 ---- a/src/greeter-gdk.c -+++ b/src/greeter-gdk.c -@@ -22,6 +22,7 @@ - - #define XLIB_ILLEGAL_ACCESS - -+#include <gtk/gtk.h> - #include <gdk/gdk.h> - #include <gdk/gdkx.h> - #include <gdk/gdkkeysyms.h> -@@ -88,12 +89,14 @@ static void on_ui_expose(void) - } - - cr=gdk_cairo_create(win); -+#if GTK_CHECK_VERSION(3,0,0) - cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); - if(pattern) - { - cairo_set_source(cr,pattern); - cairo_paint(cr); - } -+#endif - - gdk_cairo_set_source_color(cr, &bg); - cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); -diff --git a/src/greeter.c b/src/greeter.c -index 10b7f3f..03503b6 100644 ---- a/src/greeter.c -+++ b/src/greeter.c -@@ -146,7 +146,7 @@ static void switch_to_input_user(void) - if(user_list_scrolled) - gtk_widget_show(user_list_scrolled); - else -- gtk_widget_hide(user_list); -+ gtk_widget_show(user_list); - gtk_widget_grab_focus(user_list); - } - else -diff --git a/src/lxdm.c b/src/lxdm.c -index a37f051..e00d219 100644 ---- a/src/lxdm.c -+++ b/src/lxdm.c -@@ -750,7 +750,13 @@ static char ** create_client_auth(struct passwd *pw,char **env) - if(xauth_write_file(authfile,s->display,s->mcookie)==-1) - { - g_free(authfile); -- authfile = g_strdup_printf("/var/run/lxdm/.Xauth%d",pw->pw_uid); -+ -+ gchar *authdir = g_strdup_printf("/var/run/lxdm/%d", pw->pw_uid); -+ g_mkdir_with_parents(authdir, S_IRWXU); -+ chown(authdir, pw->pw_uid, pw->pw_gid); -+ -+ authfile = g_strdup_printf("%s/.Xauthority", authdir); -+ g_free(authdir); - remove(authfile); - xauth_write_file(authfile,s->display,s->mcookie); - } -@@ -956,6 +962,11 @@ static void on_xserver_stop(void *data,int pid, int status) - s->dpy=NULL; - ui_drop(); - lxdm_startx(s); -+ #ifndef DISABLE_XAUTH -+ char temp[256]; -+ sprintf(temp,"/var/run/lxdm/lxdm-:%d.auth",s->display); -+ setenv("XAUTHORITY",temp,1); -+ #endif - ui_prepare(); - lxsession_set_active(s); - } Copied: lxdm/repos/community-i686/git-fixes.patch (from rev 198358, lxdm/trunk/git-fixes.patch) =================================================================== --- community-i686/git-fixes.patch (rev 0) +++ community-i686/git-fixes.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,71 @@ +diff --git a/src/greeter-gdk.c b/src/greeter-gdk.c +index 1abbefa..ad3267a 100644 +--- a/src/greeter-gdk.c ++++ b/src/greeter-gdk.c +@@ -22,6 +22,7 @@ + + #define XLIB_ILLEGAL_ACCESS + ++#include <gtk/gtk.h> + #include <gdk/gdk.h> + #include <gdk/gdkx.h> + #include <gdk/gdkkeysyms.h> +@@ -88,12 +89,14 @@ static void on_ui_expose(void) + } + + cr=gdk_cairo_create(win); ++#if GTK_CHECK_VERSION(3,0,0) + cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); + if(pattern) + { + cairo_set_source(cr,pattern); + cairo_paint(cr); + } ++#endif + + gdk_cairo_set_source_color(cr, &bg); + cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); +diff --git a/src/greeter.c b/src/greeter.c +index 10b7f3f..03503b6 100644 +--- a/src/greeter.c ++++ b/src/greeter.c +@@ -146,7 +146,7 @@ static void switch_to_input_user(void) + if(user_list_scrolled) + gtk_widget_show(user_list_scrolled); + else +- gtk_widget_hide(user_list); ++ gtk_widget_show(user_list); + gtk_widget_grab_focus(user_list); + } + else +diff --git a/src/lxdm.c b/src/lxdm.c +index a37f051..e00d219 100644 +--- a/src/lxdm.c ++++ b/src/lxdm.c +@@ -750,7 +750,13 @@ static char ** create_client_auth(struct passwd *pw,char **env) + if(xauth_write_file(authfile,s->display,s->mcookie)==-1) + { + g_free(authfile); +- authfile = g_strdup_printf("/var/run/lxdm/.Xauth%d",pw->pw_uid); ++ ++ gchar *authdir = g_strdup_printf("/var/run/lxdm/%d", pw->pw_uid); ++ g_mkdir_with_parents(authdir, S_IRWXU); ++ chown(authdir, pw->pw_uid, pw->pw_gid); ++ ++ authfile = g_strdup_printf("%s/.Xauthority", authdir); ++ g_free(authdir); + remove(authfile); + xauth_write_file(authfile,s->display,s->mcookie); + } +@@ -956,6 +962,11 @@ static void on_xserver_stop(void *data,int pid, int status) + s->dpy=NULL; + ui_drop(); + lxdm_startx(s); ++ #ifndef DISABLE_XAUTH ++ char temp[256]; ++ sprintf(temp,"/var/run/lxdm/lxdm-:%d.auth",s->display); ++ setenv("XAUTHORITY",temp,1); ++ #endif + ui_prepare(); + lxsession_set_active(s); + } Deleted: community-i686/lxdm.install =================================================================== --- community-i686/lxdm.install 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/lxdm.install 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,12 +0,0 @@ -post_install() { - getent passwd lxdm > /dev/null 2>&1 && \ - usermod -L -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \ - useradd -rM -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm - mkdir -p /var/lib/lxdm - chown lxdm:lxdm /var/lib/lxdm - chmod 700 /var/lib/lxdm -} - -post_upgrade() { - post_install -} Copied: lxdm/repos/community-i686/lxdm.install (from rev 198358, lxdm/trunk/lxdm.install) =================================================================== --- community-i686/lxdm.install (rev 0) +++ community-i686/lxdm.install 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,12 @@ +post_install() { + getent passwd lxdm > /dev/null 2>&1 && \ + usermod -L -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \ + useradd -rM -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm + mkdir -p /var/lib/lxdm + chown lxdm:lxdm /var/lib/lxdm + chmod 700 /var/lib/lxdm +} + +post_upgrade() { + post_install +} Deleted: community-i686/lxdm.pam =================================================================== --- community-i686/lxdm.pam 2016-12-07 18:41:08 UTC (rev 198358) +++ community-i686/lxdm.pam 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,7 +0,0 @@ -#%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: lxdm/repos/community-i686/lxdm.pam (from rev 198358, lxdm/trunk/lxdm.pam) =================================================================== --- community-i686/lxdm.pam (rev 0) +++ community-i686/lxdm.pam 2016-12-07 18:41:21 UTC (rev 198359) @@ -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 Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/PKGBUILD 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,84 +0,0 @@ -# $Id$ -# Maintainer: Balló György <ballogyor+arch at gmail dot com> -# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> -# Contributor: AndyRTR <andy...@archlinux.org> -# Contributor: kiefer <jorgelmad...@gmail.com> - -pkgbase=lxdm -pkgname=(lxdm lxdm-gtk3) -pkgver=0.5.3 -pkgrel=3 -pkgdesc='Lightweight X11 Display Manager' -arch=('i686' 'x86_64') -url="http://lxde.org/" -license=('GPL') -depends=('gtk2' 'gtk3' 'xorg-server') -makedepends=('intltool' 'iso-codes') -optdepends=('iso-codes: show language names in language chooser' - 'librsvg: display the default background') -install=$pkgbase.install -backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' - 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' - 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') -source=(http://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz - git-fixes.patch - default-config.patch - lxdm.pam - Xsession) -md5sums=('061caae432634e6db38bbdc84bc6ffa0' - '007fc1b0ea74500ffb0817a2fa2c76e8' - 'fb2fb99acb11b6dfdb8d5fd72605b8da' - 'c941ef896248bc7c03901b513490425c' - '6ff73570368501a06ee7badc8e415d0a') - -prepare(){ - cd $pkgbase-$pkgver - - # Apply fixes from git - patch -Np1 -i ../git-fixes.patch - - # Adjust Arch-specific settings - patch -Np1 -i ../default-config.patch - - # Use our custom pam and Xsession files - cp ../lxdm.pam pam/lxdm - cp ../Xsession data/Xsession -} - -build() { - # GTK+ 2 version - [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2 - cd gtk2 - ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ - --sysconfdir=/etc --localstatedir=/var - make - - cd "$srcdir" - # GTK+ 3 version - [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3 - cd gtk3 - ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ - --sysconfdir=/etc --localstatedir=/var --enable-gtk3 - make -} - -package_lxdm() { - groups=('lxde') - depends=('gtk2' 'xorg-server') - optdepends+=('gnome-themes-standard: default GTK+ theme') - - cd gtk2 - make DESTDIR="$pkgdir" install - chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" -} - -package_lxdm-gtk3() { - groups=('lxde-gtk3') - pkgdesc+=' (GTK+ 3 version)' - depends=('gtk3' 'xorg-server') - conflicts=('lxdm') - - cd gtk3 - make DESTDIR="$pkgdir" install - chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" -} Copied: lxdm/repos/community-x86_64/PKGBUILD (from rev 198358, lxdm/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,84 @@ +# $Id$ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: AndyRTR <andy...@archlinux.org> +# Contributor: kiefer <jorgelmad...@gmail.com> + +pkgbase=lxdm +pkgname=(lxdm lxdm-gtk3) +pkgver=0.5.3 +pkgrel=3 +pkgdesc='Lightweight X11 Display Manager' +arch=('i686' 'x86_64') +url="http://lxde.org/" +license=('GPL') +depends=('gtk2' 'gtk3' 'xorg-server') +makedepends=('intltool' 'iso-codes') +optdepends=('iso-codes: show language names in language chooser' + 'librsvg: display the default background') +install=$pkgbase.install +backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' + 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' + 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') +source=(https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz + git-fixes.patch + default-config.patch + lxdm.pam + Xsession) +md5sums=('061caae432634e6db38bbdc84bc6ffa0' + '007fc1b0ea74500ffb0817a2fa2c76e8' + 'fb2fb99acb11b6dfdb8d5fd72605b8da' + 'c941ef896248bc7c03901b513490425c' + '6ff73570368501a06ee7badc8e415d0a') + +prepare(){ + cd $pkgbase-$pkgver + + # Apply fixes from git + patch -Np1 -i ../git-fixes.patch + + # Adjust Arch-specific settings + patch -Np1 -i ../default-config.patch + + # Use our custom pam and Xsession files + cp ../lxdm.pam pam/lxdm + cp ../Xsession data/Xsession +} + +build() { + # GTK+ 2 version + [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2 + cd gtk2 + ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ + --sysconfdir=/etc --localstatedir=/var + make + + cd "$srcdir" + # GTK+ 3 version + [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3 + cd gtk3 + ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ + --sysconfdir=/etc --localstatedir=/var --enable-gtk3 + make +} + +package_lxdm() { + groups=('lxde') + depends=('gtk2' 'xorg-server') + optdepends+=('gnome-themes-standard: default GTK+ theme') + + cd gtk2 + make DESTDIR="$pkgdir" install + chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" +} + +package_lxdm-gtk3() { + groups=('lxde-gtk3') + pkgdesc+=' (GTK+ 3 version)' + depends=('gtk3' 'xorg-server') + conflicts=('lxdm') + + cd gtk3 + make DESTDIR="$pkgdir" install + chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" +} Deleted: community-x86_64/Xsession =================================================================== --- community-x86_64/Xsession 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/Xsession 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,71 +0,0 @@ -#!/bin/sh -# -# LXDM wrapper to run around X sessions. - -echo "Running X session wrapper" - -if [ $# -eq 1 -a -n "$1" ]; then - LXSESSION=$1 -else -# default session - LXSESSION=/usr/bin/startlxde -fi - -# 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 $LXSESSION" - -exec $LXSESSION Copied: lxdm/repos/community-x86_64/Xsession (from rev 198358, lxdm/trunk/Xsession) =================================================================== --- community-x86_64/Xsession (rev 0) +++ community-x86_64/Xsession 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,71 @@ +#!/bin/sh +# +# LXDM wrapper to run around X sessions. + +echo "Running X session wrapper" + +if [ $# -eq 1 -a -n "$1" ]; then + LXSESSION=$1 +else +# default session + LXSESSION=/usr/bin/startlxde +fi + +# 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 $LXSESSION" + +exec $LXSESSION Deleted: community-x86_64/default-config.patch =================================================================== --- community-x86_64/default-config.patch 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/default-config.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,25 +0,0 @@ -diff -Naur lxdm.orig/data/lxdm.conf.in lxdm/data/lxdm.conf.in ---- lxdm.orig/data/lxdm.conf.in 2013-08-30 17:56:16.097006000 +0200 -+++ lxdm/data/lxdm.conf.in 2013-09-04 01:54:12.942117085 +0200 -@@ -23,7 +23,7 @@ - - [server] - ## arg used to start xserver, not fully function --# arg=/usr/bin/X -background vt1 -+arg=/usr/bin/X -background vt1 - # uncomment this if you really want xserver listen to tcp - # tcp_listen=1 - # uncoment this if you want reset the xserver after logou -@@ -31,10 +31,10 @@ - - [display] - ## gtk theme used by greeter --gtk_theme=Clearlooks -+gtk_theme=Adwaita - - ## background of the greeter --bg=/usr/share/backgrounds/default.png -+# bg=/usr/share/backgrounds/default.png - - ## if show bottom pane - bottom_pane=1 Copied: lxdm/repos/community-x86_64/default-config.patch (from rev 198358, lxdm/trunk/default-config.patch) =================================================================== --- community-x86_64/default-config.patch (rev 0) +++ community-x86_64/default-config.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,25 @@ +diff -Naur lxdm.orig/data/lxdm.conf.in lxdm/data/lxdm.conf.in +--- lxdm.orig/data/lxdm.conf.in 2013-08-30 17:56:16.097006000 +0200 ++++ lxdm/data/lxdm.conf.in 2013-09-04 01:54:12.942117085 +0200 +@@ -23,7 +23,7 @@ + + [server] + ## arg used to start xserver, not fully function +-# arg=/usr/bin/X -background vt1 ++arg=/usr/bin/X -background vt1 + # uncomment this if you really want xserver listen to tcp + # tcp_listen=1 + # uncoment this if you want reset the xserver after logou +@@ -31,10 +31,10 @@ + + [display] + ## gtk theme used by greeter +-gtk_theme=Clearlooks ++gtk_theme=Adwaita + + ## background of the greeter +-bg=/usr/share/backgrounds/default.png ++# bg=/usr/share/backgrounds/default.png + + ## if show bottom pane + bottom_pane=1 Deleted: community-x86_64/git-fixes.patch =================================================================== --- community-x86_64/git-fixes.patch 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/git-fixes.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,71 +0,0 @@ -diff --git a/src/greeter-gdk.c b/src/greeter-gdk.c -index 1abbefa..ad3267a 100644 ---- a/src/greeter-gdk.c -+++ b/src/greeter-gdk.c -@@ -22,6 +22,7 @@ - - #define XLIB_ILLEGAL_ACCESS - -+#include <gtk/gtk.h> - #include <gdk/gdk.h> - #include <gdk/gdkx.h> - #include <gdk/gdkkeysyms.h> -@@ -88,12 +89,14 @@ static void on_ui_expose(void) - } - - cr=gdk_cairo_create(win); -+#if GTK_CHECK_VERSION(3,0,0) - cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); - if(pattern) - { - cairo_set_source(cr,pattern); - cairo_paint(cr); - } -+#endif - - gdk_cairo_set_source_color(cr, &bg); - cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); -diff --git a/src/greeter.c b/src/greeter.c -index 10b7f3f..03503b6 100644 ---- a/src/greeter.c -+++ b/src/greeter.c -@@ -146,7 +146,7 @@ static void switch_to_input_user(void) - if(user_list_scrolled) - gtk_widget_show(user_list_scrolled); - else -- gtk_widget_hide(user_list); -+ gtk_widget_show(user_list); - gtk_widget_grab_focus(user_list); - } - else -diff --git a/src/lxdm.c b/src/lxdm.c -index a37f051..e00d219 100644 ---- a/src/lxdm.c -+++ b/src/lxdm.c -@@ -750,7 +750,13 @@ static char ** create_client_auth(struct passwd *pw,char **env) - if(xauth_write_file(authfile,s->display,s->mcookie)==-1) - { - g_free(authfile); -- authfile = g_strdup_printf("/var/run/lxdm/.Xauth%d",pw->pw_uid); -+ -+ gchar *authdir = g_strdup_printf("/var/run/lxdm/%d", pw->pw_uid); -+ g_mkdir_with_parents(authdir, S_IRWXU); -+ chown(authdir, pw->pw_uid, pw->pw_gid); -+ -+ authfile = g_strdup_printf("%s/.Xauthority", authdir); -+ g_free(authdir); - remove(authfile); - xauth_write_file(authfile,s->display,s->mcookie); - } -@@ -956,6 +962,11 @@ static void on_xserver_stop(void *data,int pid, int status) - s->dpy=NULL; - ui_drop(); - lxdm_startx(s); -+ #ifndef DISABLE_XAUTH -+ char temp[256]; -+ sprintf(temp,"/var/run/lxdm/lxdm-:%d.auth",s->display); -+ setenv("XAUTHORITY",temp,1); -+ #endif - ui_prepare(); - lxsession_set_active(s); - } Copied: lxdm/repos/community-x86_64/git-fixes.patch (from rev 198358, lxdm/trunk/git-fixes.patch) =================================================================== --- community-x86_64/git-fixes.patch (rev 0) +++ community-x86_64/git-fixes.patch 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,71 @@ +diff --git a/src/greeter-gdk.c b/src/greeter-gdk.c +index 1abbefa..ad3267a 100644 +--- a/src/greeter-gdk.c ++++ b/src/greeter-gdk.c +@@ -22,6 +22,7 @@ + + #define XLIB_ILLEGAL_ACCESS + ++#include <gtk/gtk.h> + #include <gdk/gdk.h> + #include <gdk/gdkx.h> + #include <gdk/gdkkeysyms.h> +@@ -88,12 +89,14 @@ static void on_ui_expose(void) + } + + cr=gdk_cairo_create(win); ++#if GTK_CHECK_VERSION(3,0,0) + cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); + if(pattern) + { + cairo_set_source(cr,pattern); + cairo_paint(cr); + } ++#endif + + gdk_cairo_set_source_color(cr, &bg); + cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); +diff --git a/src/greeter.c b/src/greeter.c +index 10b7f3f..03503b6 100644 +--- a/src/greeter.c ++++ b/src/greeter.c +@@ -146,7 +146,7 @@ static void switch_to_input_user(void) + if(user_list_scrolled) + gtk_widget_show(user_list_scrolled); + else +- gtk_widget_hide(user_list); ++ gtk_widget_show(user_list); + gtk_widget_grab_focus(user_list); + } + else +diff --git a/src/lxdm.c b/src/lxdm.c +index a37f051..e00d219 100644 +--- a/src/lxdm.c ++++ b/src/lxdm.c +@@ -750,7 +750,13 @@ static char ** create_client_auth(struct passwd *pw,char **env) + if(xauth_write_file(authfile,s->display,s->mcookie)==-1) + { + g_free(authfile); +- authfile = g_strdup_printf("/var/run/lxdm/.Xauth%d",pw->pw_uid); ++ ++ gchar *authdir = g_strdup_printf("/var/run/lxdm/%d", pw->pw_uid); ++ g_mkdir_with_parents(authdir, S_IRWXU); ++ chown(authdir, pw->pw_uid, pw->pw_gid); ++ ++ authfile = g_strdup_printf("%s/.Xauthority", authdir); ++ g_free(authdir); + remove(authfile); + xauth_write_file(authfile,s->display,s->mcookie); + } +@@ -956,6 +962,11 @@ static void on_xserver_stop(void *data,int pid, int status) + s->dpy=NULL; + ui_drop(); + lxdm_startx(s); ++ #ifndef DISABLE_XAUTH ++ char temp[256]; ++ sprintf(temp,"/var/run/lxdm/lxdm-:%d.auth",s->display); ++ setenv("XAUTHORITY",temp,1); ++ #endif + ui_prepare(); + lxsession_set_active(s); + } Deleted: community-x86_64/lxdm.install =================================================================== --- community-x86_64/lxdm.install 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/lxdm.install 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,12 +0,0 @@ -post_install() { - getent passwd lxdm > /dev/null 2>&1 && \ - usermod -L -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \ - useradd -rM -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm - mkdir -p /var/lib/lxdm - chown lxdm:lxdm /var/lib/lxdm - chmod 700 /var/lib/lxdm -} - -post_upgrade() { - post_install -} Copied: lxdm/repos/community-x86_64/lxdm.install (from rev 198358, lxdm/trunk/lxdm.install) =================================================================== --- community-x86_64/lxdm.install (rev 0) +++ community-x86_64/lxdm.install 2016-12-07 18:41:21 UTC (rev 198359) @@ -0,0 +1,12 @@ +post_install() { + getent passwd lxdm > /dev/null 2>&1 && \ + usermod -L -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \ + useradd -rM -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm + mkdir -p /var/lib/lxdm + chown lxdm:lxdm /var/lib/lxdm + chmod 700 /var/lib/lxdm +} + +post_upgrade() { + post_install +} Deleted: community-x86_64/lxdm.pam =================================================================== --- community-x86_64/lxdm.pam 2016-12-07 18:41:08 UTC (rev 198358) +++ community-x86_64/lxdm.pam 2016-12-07 18:41:21 UTC (rev 198359) @@ -1,7 +0,0 @@ -#%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: lxdm/repos/community-x86_64/lxdm.pam (from rev 198358, lxdm/trunk/lxdm.pam) =================================================================== --- community-x86_64/lxdm.pam (rev 0) +++ community-x86_64/lxdm.pam 2016-12-07 18:41:21 UTC (rev 198359) @@ -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