wok-current rev 12410
lxdm: Up and much better integration
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Apr 20 18:13:35 2012 +0200 (2012-04-20) |
parents | 4db4ca0c9c3e |
children | acfbd6b623b6 |
files | lxdm/receipt lxdm/stuff/PostLogout lxdm/stuff/Xsession lxdm/stuff/init.d/lxdm lxdm/stuff/lxdm.conf |
line diff
1.1 --- a/lxdm/receipt Fri Apr 20 18:12:15 2012 +0200 1.2 +++ b/lxdm/receipt Fri Apr 20 18:13:35 2012 +0200 1.3 @@ -1,36 +1,44 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="lxdm" 1.7 -VERSION="0.2.0" 1.8 +VERSION="0.4.1" 1.9 CATEGORY="x-window" 1.10 SHORT_DESC="Login manager from LXDE." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 -DEPENDS="gtk+" 1.13 -BUILD_DEPENDS="slitaz-toolchain intltool" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://lxde.org/" 1.16 WGET_URL="$SF_MIRROR/lxde/$TARBALL" 1.17 1.18 +DEPENDS="xorg-libX11 gtk+ slitaz-configs" 1.19 +BUILD_DEPENDS="xorg-dev gtk+-dev" 1.20 + 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 cd $src 1.25 ./configure \ 1.26 - --prefix=/usr \ 1.27 --libexecdir=/usr/lib/lxdm \ 1.28 --sysconfdir=/etc \ 1.29 --without-pam \ 1.30 $CONFIGURE_ARGS && 1.31 - make && 1.32 - make DESTDIR=$PWD/_pkg install 1.33 + make && make install 1.34 } 1.35 1.36 # Rules to gen a SliTaz package suitable for Tazpkg. 1.37 genpkg_rules() 1.38 { 1.39 mkdir -p $fs/etc $fs/usr/share 1.40 - cp -a $_pkg/etc/lxdm $fs/etc 1.41 - cp -a $_pkg/usr/lib $fs/usr 1.42 - cp -a $_pkg/usr/sbin $fs/usr 1.43 - cp -a $_pkg/usr/share/lxdm $fs/usr/share 1.44 + cp -a $install/etc/lxdm $fs/etc 1.45 + cp -a $install/usr/lib $fs/usr 1.46 + cp -a $install/usr/sbin $fs/usr 1.47 + cp -a $install/usr/share/lxdm $fs/usr/share 1.48 + cp -a $stuff/init.d $fs/etc 1.49 + # Use /bin/sh 1.50 + sed -i s'/bin\/bash/bin\/sh/' $fs/etc/lxdm/* 1.51 + # Custom SliTaz configuration 1.52 + # NOTE: will move to slitaz-configs when we have a nice theme 1.53 + cp -a $stuff/lxdm.conf $fs/etc/lxdm 1.54 + cp -a $stuff/Xsession $fs/etc/lxdm 1.55 + cp -a $stuff/PostLogout $fs/etc/lxdm 1.56 + chown -R root.root $fs 1.57 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/lxdm/stuff/PostLogout Fri Apr 20 18:13:35 2012 +0200 2.3 @@ -0,0 +1,8 @@ 2.4 +#!/bin/sh 2.5 +# 2.6 + 2.7 +# LXDM does not clear the last user's processes. 2.8 +ps -o "user,pid" | fgrep $USER | while read user pid 2.9 +do 2.10 + kill $pid 2.11 +done
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/lxdm/stuff/Xsession Fri Apr 20 18:13:35 2012 +0200 3.3 @@ -0,0 +1,11 @@ 3.4 +#!/bin/sh 3.5 +# 3.6 +# LXDM Xsession for SliTaz GNU/Linux 3.7 +# 3.8 + 3.9 +if [ $# -eq 1 -a -n "$1" ]; then 3.10 + LXSESSION=$1 3.11 +fi 3.12 + 3.13 +exec /bin/sh -l ~/.xinitrc $LXSESSION 3.14 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/lxdm/stuff/init.d/lxdm Fri Apr 20 18:13:35 2012 +0200 4.3 @@ -0,0 +1,50 @@ 4.4 +#!/bin/sh 4.5 +# /etc/init.d/lxdm: Start, stop and restart LXDM deamon on SliTaz, at boot 4.6 +# time or with the command line. 4.7 +# 4.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS 4.9 +# variable of /etc/rcS.conf and configure options with /etc/lxdm/lxdm.conf 4.10 +# 4.11 +. /etc/init.d/rc.functions 4.12 + 4.13 +NAME=LXDM 4.14 +DESC="LXDE login manager" 4.15 +DAEMON=/usr/sbin/lxdm 4.16 +PIDFILE=/var/run/lxdm.pid 4.17 + 4.18 +case "$1" in 4.19 + start) 4.20 + if active_pidfile $PIDFILE lxdm ; then 4.21 + echo "$NAME already running." 4.22 + exit 1 4.23 + fi 4.24 + echo -n "Starting $DESC: $NAME... " 4.25 + $DAEMON $OPTION 4.26 + status ;; 4.27 + stop) 4.28 + if ! active_pidfile $PIDFILE lxdm ; then 4.29 + echo "$NAME is not running." 4.30 + exit 1 4.31 + fi 4.32 + echo -n "Stopping $DESC: $NAME... " 4.33 + killall lxdm 4.34 + rm $PIDFILE 4.35 + status ;; 4.36 + restart) 4.37 + if ! active_pidfile $PIDFILE lxdm ; then 4.38 + echo "$NAME is not running." 4.39 + exit 1 4.40 + fi 4.41 + echo -n "Restarting $DESC: $NAME... " 4.42 + killall lxdm 4.43 + rm $PIDFILE 4.44 + sleep 2 4.45 + $DAEMON $OPTION 4.46 + status ;; 4.47 + *) 4.48 + echo "" 4.49 + echo -e "\033[1mUsage:\033[0m /etc/init.d/$(basename $0) [start|stop|restart]" 4.50 + echo "" && exit 1 ;; 4.51 +esac 4.52 + 4.53 +exit 0
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/lxdm/stuff/lxdm.conf Fri Apr 20 18:13:35 2012 +0200 5.3 @@ -0,0 +1,55 @@ 5.4 +[base] 5.5 +## uncomment and set autologin username to enable autologin 5.6 +#autologin=tux 5.7 + 5.8 +## uncomment and set timeout to enable timeout autologin, 5.9 +## the value should >=5 5.10 +# timeout=10 5.11 + 5.12 +## default session or desktop used when no systemwide config 5.13 +# session=/usr/bin/openbox-session 5.14 + 5.15 +## uncomment and set to set numlock on your keyboard 5.16 +# numlock=0 5.17 + 5.18 +## set this if you don't want to put xauth file at ~/.Xauthority 5.19 +# xauth_path=/tmp 5.20 + 5.21 +## greeter used to welcome the user 5.22 +greeter=/usr/lib/lxdm/lxdm-greeter-gtk 5.23 + 5.24 +[server] 5.25 +## arg used to start xserver, not fully function 5.26 +# arg=/usr/bin/X -background vt1 5.27 + 5.28 +[display] 5.29 +## gtk theme used by greeter 5.30 +gtk_theme=SliTaz 5.31 + 5.32 +## background of the greeter 5.33 +bg=/usr/share/images/slitaz-background.jpg 5.34 + 5.35 +## if show bottom pane 5.36 +bottom_pane=1 5.37 + 5.38 +## if show language select control 5.39 +lang=1 5.40 + 5.41 +## if show keyboard layout select control 5.42 +keyboard=0 5.43 + 5.44 +## the theme of greeter 5.45 +theme=SliTaz 5.46 + 5.47 +[input] 5.48 + 5.49 +[userlist] 5.50 +## if disable the user list control at greeter 5.51 +disable=0 5.52 + 5.53 +## whitelist user 5.54 +white= 5.55 + 5.56 +## blacklist user 5.57 +black= 5.58 +