# HG changeset patch # User Christophe Lincoln # Date 1203882519 -3600 # Node ID 0ac581c055b4a282256af53c2383b34b53c94bb3 # Parent a8e90ba274016dba9e7384f3cc725274c24fbcfa Add slim X login manager + deps diff -r a8e90ba27401 -r 0ac581c055b4 slim/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/receipt Sun Feb 24 20:48:39 2008 +0100 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="slim" +VERSION="1.3.0" +CATEGORY="x-window" +SHORT_DESC="Desktop-independent graphical login manager for X11." +MAINTAINER="pankso@slitaz.org" +DEPENDS="jpeg libpng" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://slim.berlios.de" +WGET_URL="http://download.berlios.de/slim/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile + sed -i "s|/usr/X11R6/|/usr/|g" Makefile + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/share/slim + cp -a $src/slim $fs/usr/bin + + # Config file, rc script and SliTaz theme. + cp -a stuff/etc $fs + cp -a stuff/themes $fs/usr/share/slim +} + diff -r a8e90ba27401 -r 0ac581c055b4 slim/stuff/etc/init.d/slim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/stuff/etc/init.d/slim Sun Feb 24 20:48:39 2008 +0100 @@ -0,0 +1,56 @@ +#!/bin/sh +# /etc/init.d/slim: Start, stop and restart Slim deamon on SliTaz, at boot +# time or with the command line. +# +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/slim.conf. +# +. /etc/init.d/rc.functions + +NAME=Slim +DESC="slim login manager" +DAEMON=/usr/bin/slim +OPTION="-d" +LOCK_FILE=/var/lock/slim.lock + +case "$1" in + start) + if [ -f $LOCK_FILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTION + status + ;; + stop) + if [ ! -f $LOCK_FILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + killall slim + rm $LOCK_FILE + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + killall slim + rm $LOCK_FILE + sleep 2 + $DAEMON $OPTION + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r a8e90ba27401 -r 0ac581c055b4 slim/stuff/etc/slim.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/stuff/etc/slim.conf Sun Feb 24 20:48:39 2008 +0100 @@ -0,0 +1,76 @@ +# /etc/slim.conf: Slim login manger configuration file +# + +# Path, X server and arguments (if needed) +# Note: -xauth $authfile is automatically appended +default_path ./:/bin:/usr/bin:/usr/local/bin +default_xserver /usr/bin/Xvesa +xserver_arguments -ac -shadow dpms -screen 1024x768x24 + +# Commands for halt, login, etc. +halt_cmd /sbin/poweroff +reboot_cmd /sbin/reboot +console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -l -c "exec /bin/login" +#suspend_cmd /usr/sbin/suspend + +# Full path to the xauth binary +xauth_path /usr/bin/xauth + +# Xauth file for server +authfile /var/run/slim.auth + +# Activate numlock when slim starts. Valid values: on|off +# numlock on + +# Hide the mouse cursor (note: does not work with some WMs). +# Valid values: true|false +hidecursor true + +# This command is executed after a succesful login. +# you can place the %session and %theme variables +# to handle launching of specific commands in .xinitrc +# depending of chosen session and slim theme +login_cmd exec /bin/sh -l ~/.xinitrc %session + +# Commands executed when starting and exiting a session. +# They can be used for registering a X11 session with +# sessreg. You can use the %user variable +# +# sessionstart_cmd some command +# sessionstop_cmd some command + +# Start in daemon mode. Valid values: yes | no +# Note that this can overridden by the command line +# option "-d" +#daemon yes + +# Available sessions (first one is the default). +# The current chosen session name is replaced in the login_cmd +# above, so your login command can handle different sessions. +# see the xinitrc.sample file shipped with slim sources +sessions jwm,e17 + +# Executed when pressing F11 (requires imagemagick) +#screenshot_cmd mtpaint -s /root/slim-shot.png + +# welcome message. Available variables: %host, %domain +welcome_msg Welcome to %host + +# shutdown / reboot messages +shutdown_msg The system is going down... +reboot_msg The system is rebooting... + +# default user, leave blank or remove this line +# for avoid pre-loading the username. +default_user hacker + +# current theme, use comma separated list to specify a set to +# randomly choose from +current_theme slitaz + +# Lock file +lockfile /var/lock/slim.lock + +# Log file +logfile /var/log/slim.log + diff -r a8e90ba27401 -r 0ac581c055b4 slim/stuff/themes/slitaz/background.png Binary file slim/stuff/themes/slitaz/background.png has changed diff -r a8e90ba27401 -r 0ac581c055b4 slim/stuff/themes/slitaz/panel.png Binary file slim/stuff/themes/slitaz/panel.png has changed diff -r a8e90ba27401 -r 0ac581c055b4 slim/stuff/themes/slitaz/slim.theme --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/stuff/themes/slitaz/slim.theme Sun Feb 24 20:48:39 2008 +0100 @@ -0,0 +1,37 @@ +# SliTaz theme for SLiM +# + +# Messages +msg_color #000000 +msg_font Verdana:size=18:bold:dpi=75 +msg_x 50% +msg_y 40% +msg_shadow_color #FFFFFF +msg_shadow_xoffset 1 +msg_shadow_yoffset 1 + +# valid values: stretch, tile +background_style stretch +background_color #222222 + +# Input controls +input_panel_x 50% +input_panel_y 50% +input_name_x 59 +input_name_y 161 +input_font Verdana:size=12:dpi=75 +input_fgcolor #000000 + +# Username / password request +username_font Verdana:size=14:bold:dpi=75 +username_color #000000 +username_x 50% +username_y 122 +password_x 50% +password_y 122 +username_shadow_color #FFFFFF +username_shadow_xoffset 1 +username_shadow_yoffset 1 + +username_msg Username: +password_msg Password: diff -r a8e90ba27401 -r 0ac581c055b4 xorg-xauth/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xorg-xauth/receipt Sun Feb 24 20:48:39 2008 +0100 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="xorg-xauth" +VERSION="1.0.2" +CATEGORY="x-window" +SHORT_DESC="X app to show system resources usage." +MAINTAINER="pankso@slitaz.org" +DEPENDS="xorg" +SOURCE="xauth" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.x.org/" +WGET_URL="$XORG_MIRROR/app/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr +}