# HG changeset patch # User Christophe Lincoln # Date 1241117067 -7200 # Node ID c61177674d4d4f64b59390b9025b411cea29448e # Parent 496049365d58d1b9a4e22a97480b44bdc745b87d slim: Avoid dep on slitaz-configs/GTK and add slim-theme-default diff -r 496049365d58 -r c61177674d4d slim-theme-default/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim-theme-default/receipt Thu Apr 30 20:44:27 2009 +0200 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="slim-theme-default" +VERSION="1.3.1" +CATEGORY="x-window" +SHORT_DESC="Slim login manager themes pack." +MAINTAINER="pankso@slitaz.org" +DEPENDS="slim" +WANTED="slim" +WEB_SITE="http://slim.berlios.de" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/slim + cp -a $src/themes $fs/usr/share/slim +} diff -r 496049365d58 -r c61177674d4d slim/receipt --- a/slim/receipt Thu Apr 30 20:09:19 2009 +0200 +++ b/slim/receipt Thu Apr 30 20:44:27 2009 +0200 @@ -5,8 +5,9 @@ CATEGORY="x-window" SHORT_DESC="Desktop-independent graphical login manager for X11." MAINTAINER="pankso@slitaz.org" -DEPENDS="xorg jpeg libpng slitaz-configs" +DEPENDS="xorg jpeg libpng" BUILD_DEPENDS="xorg-dev jpeg-dev libpng-dev xorg-libXft-dev" +SUGGESTED="slim-theme-default slitaz-configs" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://slim.berlios.de" WGET_URL="http://download.berlios.de/slim/$TARBALL" @@ -27,8 +28,8 @@ { mkdir -p $fs/usr/bin $fs/usr/share/slim cp -a $src/slim $fs/usr/bin - - # Config file and rc script (theme is in slitaz-configs). + cp -a stuff/themes/base $fs/usr/share/slim + # Config file and rc script. cp -a stuff/etc $fs chown -R root.root $fs } diff -r 496049365d58 -r c61177674d4d slim/stuff/etc/slim.conf --- a/slim/stuff/etc/slim.conf Thu Apr 30 20:09:19 2009 +0200 +++ b/slim/stuff/etc/slim.conf Thu Apr 30 20:44:27 2009 +0200 @@ -66,7 +66,7 @@ # current theme, use comma separated list to specify a set to # randomly choose from -current_theme slitaz +current_theme slitaz,base # Lock file lockfile /var/lock/slim.lock diff -r 496049365d58 -r c61177674d4d slim/stuff/themes/base/background.png Binary file slim/stuff/themes/base/background.png has changed diff -r 496049365d58 -r c61177674d4d slim/stuff/themes/base/panel.png Binary file slim/stuff/themes/base/panel.png has changed diff -r 496049365d58 -r c61177674d4d slim/stuff/themes/base/slim.theme --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slim/stuff/themes/base/slim.theme Thu Apr 30 20:44:27 2009 +0200 @@ -0,0 +1,37 @@ +# SliTaz theme for SLiM +# + +# Messages +msg_color #000000 +msg_font Vera:size=18:bold:dpi=75 +msg_x 50% +msg_y 35% +msg_shadow_color #FFFFFF +msg_shadow_xoffset 1 +msg_shadow_yoffset 1 + +# valid values: stretch, tile +background_style tile +background_color #1e0a0c + +# Input controls +input_panel_x 50% +input_panel_y 50% +input_name_x 64 +input_name_y 179 +input_font Vera:size=11:dpi=75 +input_fgcolor #000000 + +# Username / password request +username_font Vera:size=18:bold:dpi=75 +username_color #eeede9 +username_x 50% +username_y 140 +password_x 50% +password_y 140 +username_shadow_color #000000 +username_shadow_xoffset 1 +username_shadow_yoffset 1 + +username_msg Username: +password_msg Password: diff -r 496049365d58 -r c61177674d4d slitaz-configs/receipt --- a/slitaz-configs/receipt Thu Apr 30 20:09:19 2009 +0200 +++ b/slitaz-configs/receipt Thu Apr 30 20:44:27 2009 +0200 @@ -20,3 +20,14 @@ chown -R root.root $fs chmod 0750 $fs/root } + +post_install() +{ + # By default slim provide a base theme and config file have both + # base and slitaz who will be choose randomly, so make sure we use + # only slitaz theme. + if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then + sed -i s/"current_theme .*"/"current_theme slitaz"/ \ + $1/etc/slim.conf + fi +}