wok rev 263

Add slim X login manager + deps
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 24 20:48:39 2008 +0100 (2008-02-24)
parents a8e90ba27401
children fcb21d360ae2
files slim/receipt slim/stuff/etc/init.d/slim slim/stuff/etc/slim.conf slim/stuff/themes/slitaz/background.png slim/stuff/themes/slitaz/panel.png slim/stuff/themes/slitaz/slim.theme xorg-xauth/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slim/receipt	Sun Feb 24 20:48:39 2008 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="slim"
     1.7 +VERSION="1.3.0"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Desktop-independent graphical login manager for X11."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="jpeg libpng"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://slim.berlios.de"
    1.14 +WGET_URL="http://download.berlios.de/slim/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile
    1.21 +	sed -i "s|/usr/X11R6/|/usr/|g" Makefile
    1.22 +	make
    1.23 +}
    1.24 +
    1.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 +genpkg_rules()
    1.27 +{
    1.28 +	mkdir -p $fs/usr/bin $fs/usr/share/slim
    1.29 +	cp -a $src/slim $fs/usr/bin
    1.30 +	
    1.31 +	# Config file, rc script and SliTaz theme.
    1.32 +	cp -a stuff/etc $fs
    1.33 +	cp -a stuff/themes $fs/usr/share/slim
    1.34 +}
    1.35 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/slim/stuff/etc/init.d/slim	Sun Feb 24 20:48:39 2008 +0100
     2.3 @@ -0,0 +1,56 @@
     2.4 +#!/bin/sh
     2.5 +# /etc/init.d/slim: Start, stop and restart Slim deamon on SliTaz, at boot
     2.6 +# time or with the command line.
     2.7 +#
     2.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
     2.9 +# variable of /etc/rcS.conf and configure options with /etc/slim.conf.
    2.10 +#
    2.11 +. /etc/init.d/rc.functions
    2.12 +
    2.13 +NAME=Slim
    2.14 +DESC="slim login manager"
    2.15 +DAEMON=/usr/bin/slim
    2.16 +OPTION="-d"
    2.17 +LOCK_FILE=/var/lock/slim.lock
    2.18 +
    2.19 +case "$1" in
    2.20 +  start)
    2.21 +    if [ -f $LOCK_FILE ] ; then
    2.22 +      echo "$NAME already running."
    2.23 +      exit 1
    2.24 +    fi
    2.25 +    echo -n "Starting $DESC: $NAME... "
    2.26 +    $DAEMON $OPTION
    2.27 +    status
    2.28 +    ;;
    2.29 +  stop)
    2.30 +    if [ ! -f $LOCK_FILE ] ; then
    2.31 +      echo "$NAME is not running."
    2.32 +      exit 1
    2.33 +    fi
    2.34 +    echo -n "Stopping $DESC: $NAME... "
    2.35 +    killall slim
    2.36 +    rm $LOCK_FILE
    2.37 +    status
    2.38 +    ;;
    2.39 +  restart)
    2.40 +    if [ ! -f $PIDFILE ] ; then
    2.41 +      echo "$NAME is not running."
    2.42 +      exit 1
    2.43 +    fi
    2.44 +    echo -n "Restarting $DESC: $NAME... "
    2.45 +    killall slim
    2.46 +    rm $LOCK_FILE
    2.47 +    sleep 2
    2.48 +    $DAEMON $OPTION
    2.49 +    status
    2.50 +    ;;
    2.51 +  *)
    2.52 +    echo ""
    2.53 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    2.54 +    echo ""
    2.55 +    exit 1
    2.56 +    ;;
    2.57 +esac
    2.58 +
    2.59 +exit 0
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/slim/stuff/etc/slim.conf	Sun Feb 24 20:48:39 2008 +0100
     3.3 @@ -0,0 +1,76 @@
     3.4 +# /etc/slim.conf: Slim login manger configuration file
     3.5 +#
     3.6 +
     3.7 +# Path, X server and arguments (if needed)
     3.8 +# Note: -xauth $authfile is automatically appended
     3.9 +default_path        ./:/bin:/usr/bin:/usr/local/bin
    3.10 +default_xserver     /usr/bin/Xvesa
    3.11 +xserver_arguments   -ac -shadow dpms -screen 1024x768x24
    3.12 +
    3.13 +# Commands for halt, login, etc.
    3.14 +halt_cmd            /sbin/poweroff
    3.15 +reboot_cmd          /sbin/reboot
    3.16 +console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -l -c "exec /bin/login"
    3.17 +#suspend_cmd         /usr/sbin/suspend
    3.18 +
    3.19 +# Full path to the xauth binary
    3.20 +xauth_path          /usr/bin/xauth 
    3.21 +
    3.22 +# Xauth file for server
    3.23 +authfile            /var/run/slim.auth
    3.24 +
    3.25 +# Activate numlock when slim starts. Valid values: on|off
    3.26 +# numlock             on
    3.27 +
    3.28 +# Hide the mouse cursor (note: does not work with some WMs).
    3.29 +# Valid values: true|false
    3.30 +hidecursor          true
    3.31 +
    3.32 +# This command is executed after a succesful login.
    3.33 +# you can place the %session and %theme variables
    3.34 +# to handle launching of specific commands in .xinitrc
    3.35 +# depending of chosen session and slim theme
    3.36 +login_cmd           exec /bin/sh -l ~/.xinitrc %session
    3.37 +
    3.38 +# Commands executed when starting and exiting a session.
    3.39 +# They can be used for registering a X11 session with
    3.40 +# sessreg. You can use the %user variable
    3.41 +#
    3.42 +# sessionstart_cmd	some command
    3.43 +# sessionstop_cmd	some command
    3.44 +
    3.45 +# Start in daemon mode. Valid values: yes | no
    3.46 +# Note that this can overridden by the command line
    3.47 +# option "-d"
    3.48 +#daemon	            yes
    3.49 +
    3.50 +# Available sessions (first one is the default).
    3.51 +# The current chosen session name is replaced in the login_cmd
    3.52 +# above, so your login command can handle different sessions.
    3.53 +# see the xinitrc.sample file shipped with slim sources
    3.54 +sessions            jwm,e17
    3.55 +
    3.56 +# Executed when pressing F11 (requires imagemagick)
    3.57 +#screenshot_cmd      mtpaint -s /root/slim-shot.png
    3.58 +
    3.59 +# welcome message. Available variables: %host, %domain
    3.60 +welcome_msg         Welcome to %host
    3.61 +
    3.62 +# shutdown / reboot messages
    3.63 +shutdown_msg       The system is going down...
    3.64 +reboot_msg         The system is rebooting...
    3.65 +
    3.66 +# default user, leave blank or remove this line
    3.67 +# for avoid pre-loading the username.
    3.68 +default_user        hacker
    3.69 +
    3.70 +# current theme, use comma separated list to specify a set to 
    3.71 +# randomly choose from
    3.72 +current_theme       slitaz
    3.73 +
    3.74 +# Lock file
    3.75 +lockfile            /var/lock/slim.lock
    3.76 +
    3.77 +# Log file
    3.78 +logfile             /var/log/slim.log
    3.79 +
     4.1 Binary file slim/stuff/themes/slitaz/background.png has changed
     5.1 Binary file slim/stuff/themes/slitaz/panel.png has changed
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/slim/stuff/themes/slitaz/slim.theme	Sun Feb 24 20:48:39 2008 +0100
     6.3 @@ -0,0 +1,37 @@
     6.4 +# SliTaz theme for SLiM
     6.5 +# 
     6.6 +
     6.7 +# Messages
     6.8 +msg_color               #000000
     6.9 +msg_font                Verdana:size=18:bold:dpi=75
    6.10 +msg_x                   50%
    6.11 +msg_y                   40%
    6.12 +msg_shadow_color #FFFFFF
    6.13 +msg_shadow_xoffset 1
    6.14 +msg_shadow_yoffset 1
    6.15 +
    6.16 +# valid values: stretch, tile
    6.17 +background_style        stretch
    6.18 +background_color        #222222
    6.19 +
    6.20 +# Input controls
    6.21 +input_panel_x           50%
    6.22 +input_panel_y           50%
    6.23 +input_name_x            59
    6.24 +input_name_y            161
    6.25 +input_font          	Verdana:size=12:dpi=75
    6.26 +input_fgcolor           #000000
    6.27 +
    6.28 +# Username / password request
    6.29 +username_font          	Verdana:size=14:bold:dpi=75
    6.30 +username_color        	#000000
    6.31 +username_x              50%
    6.32 +username_y              122
    6.33 +password_x              50%
    6.34 +password_y              122
    6.35 +username_shadow_color   #FFFFFF
    6.36 +username_shadow_xoffset 1
    6.37 +username_shadow_yoffset 1
    6.38 +
    6.39 +username_msg            Username:
    6.40 +password_msg            Password:
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/xorg-xauth/receipt	Sun Feb 24 20:48:39 2008 +0100
     7.3 @@ -0,0 +1,29 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="xorg-xauth"
     7.7 +VERSION="1.0.2"
     7.8 +CATEGORY="x-window"
     7.9 +SHORT_DESC="X app to show system resources usage."
    7.10 +MAINTAINER="pankso@slitaz.org"
    7.11 +DEPENDS="xorg"
    7.12 +SOURCE="xauth"
    7.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    7.14 +WEB_SITE="http://www.x.org/"
    7.15 +WGET_URL="$XORG_MIRROR/app/$TARBALL"
    7.16 +
    7.17 +# Rules to configure and make the package.
    7.18 +compile_rules()
    7.19 +{
    7.20 +	cd $src
    7.21 +	./configure --prefix=/usr --mandir=/usr/share/man \
    7.22 +	$CONFIGURE_ARGS
    7.23 +	make
    7.24 +	make DESTDIR=$PWD/_pkg install
    7.25 +}
    7.26 +
    7.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.28 +genpkg_rules()
    7.29 +{
    7.30 +	mkdir -p $fs/usr/share
    7.31 +	cp -a $_pkg/usr/bin $fs/usr
    7.32 +}