wok-current rev 2838

slim: Avoid dep on slitaz-configs/GTK and add slim-theme-default
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 30 20:44:27 2009 +0200 (2009-04-30)
parents 496049365d58
children f259119f0cf5
files slim-theme-default/receipt slim/receipt slim/stuff/etc/slim.conf slim/stuff/themes/base/background.png slim/stuff/themes/base/panel.png slim/stuff/themes/base/slim.theme slitaz-configs/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/slim-theme-default/receipt	Thu Apr 30 20:44:27 2009 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="slim-theme-default"
     1.7 +VERSION="1.3.1"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Slim login manager themes pack."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="slim"
    1.12 +WANTED="slim"
    1.13 +WEB_SITE="http://slim.berlios.de"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/share/slim
    1.19 +	cp -a $src/themes $fs/usr/share/slim
    1.20 +}
     2.1 --- a/slim/receipt	Thu Apr 30 20:09:19 2009 +0200
     2.2 +++ b/slim/receipt	Thu Apr 30 20:44:27 2009 +0200
     2.3 @@ -5,8 +5,9 @@
     2.4  CATEGORY="x-window"
     2.5  SHORT_DESC="Desktop-independent graphical login manager for X11."
     2.6  MAINTAINER="pankso@slitaz.org"
     2.7 -DEPENDS="xorg jpeg libpng slitaz-configs"
     2.8 +DEPENDS="xorg jpeg libpng"
     2.9  BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev"
    2.10 +SUGGESTED="slim-theme-default slitaz-configs"
    2.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12  WEB_SITE="http://slim.berlios.de"
    2.13  WGET_URL="http://download.berlios.de/slim/$TARBALL"
    2.14 @@ -27,8 +28,8 @@
    2.15  {
    2.16  	mkdir -p $fs/usr/bin $fs/usr/share/slim
    2.17  	cp -a $src/slim $fs/usr/bin
    2.18 -	
    2.19 -	# Config file and rc script (theme is in slitaz-configs).
    2.20 +	cp -a stuff/themes/base $fs/usr/share/slim
    2.21 +	# Config file and rc script.
    2.22  	cp -a stuff/etc $fs
    2.23  	chown -R root.root $fs
    2.24  }
     3.1 --- a/slim/stuff/etc/slim.conf	Thu Apr 30 20:09:19 2009 +0200
     3.2 +++ b/slim/stuff/etc/slim.conf	Thu Apr 30 20:44:27 2009 +0200
     3.3 @@ -66,7 +66,7 @@
     3.4  
     3.5  # current theme, use comma separated list to specify a set to 
     3.6  # randomly choose from
     3.7 -current_theme       slitaz
     3.8 +current_theme       slitaz,base
     3.9  
    3.10  # Lock file
    3.11  lockfile            /var/lock/slim.lock
     4.1 Binary file slim/stuff/themes/base/background.png has changed
     5.1 Binary file slim/stuff/themes/base/panel.png has changed
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/slim/stuff/themes/base/slim.theme	Thu Apr 30 20:44:27 2009 +0200
     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                Vera:size=18:bold:dpi=75
    6.10 +msg_x                   50%
    6.11 +msg_y                   35%
    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        tile
    6.18 +background_color        #1e0a0c
    6.19 +
    6.20 +# Input controls
    6.21 +input_panel_x           50%
    6.22 +input_panel_y           50%
    6.23 +input_name_x            64
    6.24 +input_name_y            179
    6.25 +input_font          	Vera:size=11:dpi=75
    6.26 +input_fgcolor           #000000
    6.27 +
    6.28 +# Username / password request
    6.29 +username_font          	Vera:size=18:bold:dpi=75
    6.30 +username_color        	#eeede9
    6.31 +username_x              50%
    6.32 +username_y              140
    6.33 +password_x              50%
    6.34 +password_y              140
    6.35 +username_shadow_color   #000000
    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 --- a/slitaz-configs/receipt	Thu Apr 30 20:09:19 2009 +0200
     7.2 +++ b/slitaz-configs/receipt	Thu Apr 30 20:44:27 2009 +0200
     7.3 @@ -20,3 +20,14 @@
     7.4  	chown -R root.root $fs
     7.5  	chmod 0750 $fs/root
     7.6  }
     7.7 +
     7.8 +post_install()
     7.9 +{
    7.10 +	# By default slim provide a base theme and config file have both
    7.11 +	# base and slitaz who will be choose randomly, so make sure we use
    7.12 +	# only slitaz theme.
    7.13 +	if grep -q 'current_theme       slitaz,base' $1/etc/slim.conf; then
    7.14 +		sed -i s/"current_theme .*"/"current_theme       slitaz"/ \
    7.15 +			$1/etc/slim.conf
    7.16 +	fi
    7.17 +}