wok-6.x rev 14601
SLiM session: slim up 1.3.5; added slim-theme manager; added three hand-made themes. Read forum for details
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 28 13:24:15 2013 +0000 (2013-05-28) |
parents | a711303a3220 |
children | 33abf360fce7 |
files | slim-pam/receipt slim-theme-7legs/receipt slim-theme-7legs/stuff/7_legged_spider.svg slim-theme-7legs/stuff/README slim-theme-7legs/stuff/slim.theme slim-theme-7legs/stuff/strings slim-theme-cat/receipt slim-theme-cat/stuff/README slim-theme-cat/stuff/cat_and_spider.svg slim-theme-cat/stuff/slim.theme slim-theme-cat/stuff/strings slim-theme-default/receipt slim-theme-mascot/receipt slim-theme-mascot/stuff/README slim-theme-mascot/stuff/slim.theme slim-theme-mascot/stuff/slitaz_spider.svg slim-theme-mascot/stuff/strings slim/receipt slim/stuff/NoPwdForCmd.patch slim/stuff/etc/init.d/slim slim/stuff/etc/slim.conf slim/stuff/gcc44.patch slim/stuff/slim-1.3.5.patch slim/stuff/slim-theme slim/stuff/slim.service |
line diff
1.1 --- a/slim-pam/receipt Mon May 27 22:37:57 2013 +0200 1.2 +++ b/slim-pam/receipt Tue May 28 13:24:15 2013 +0000 1.3 @@ -1,66 +1,67 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="slim-pam" 1.7 -VERSION="1.3.3" 1.8 +VERSION="1.3.5" 1.9 CATEGORY="x-window" 1.10 -SHORT_DESC="Desktop-independent graphical login manager for X11." 1.11 +SHORT_DESC="Desktop-independent graphical login manager for X11 (PAM enabled)." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 -SUGGESTED="slim-theme-default slitaz-configs" 1.14 +LICENSE="GPL2" 1.15 +WEB_SITE="http://slim.berlios.de/" 1.16 SOURCE="slim" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://slim.berlios.de" 1.19 WGET_URL="http://download.berlios.de/slim/$TARBALL" 1.20 CONFIG_FILES="/etc/slim.conf" 1.21 + 1.22 PROVIDE="slim:pam" 1.23 - 1.24 -DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \ 1.25 -zlib jpeg libpng xorg-libXft xorg-libXmu pam" 1.26 -BUILD_DEPENDS="pam-dev xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake" 1.27 +DEPENDS="gcc-lib-base libjpeg libpng pam xorg-libXft xorg-libXmu" 1.28 +SUGGESTED="slim-theme-default slitaz-configs" 1.29 +BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \ 1.30 +xorg-libXmu-dev pam-dev" 1.31 +RELATED="slim slim-theme-default" 1.32 1.33 # Rules to configure and make the package. 1.34 compile_rules() 1.35 { 1.36 - cd $src 1.37 + patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION.patch || return 1 1.38 + mkdir build; cd build 1.39 cmake \ 1.40 -DCMAKE_INSTALL_PREFIX=/usr \ 1.41 - -DUSE_PAM=yes . && 1.42 - make && make DESTDIR=$DESTDIR install 1.43 + -DX11_Xmu_LIB=-lXmu \ 1.44 + -DUSE_PAM=yes \ 1.45 + .. && 1.46 + make && 1.47 + make DESTDIR=$DESTDIR install 1.48 } 1.49 1.50 # Rules to gen a SliTaz package suitable for Tazpkg. 1.51 genpkg_rules() 1.52 { 1.53 mkdir -p $fs/usr/share/slim 1.54 - cp -a ../$SOURCE/stuff/themes $fs/usr/share/slim 1.55 + cp -a $install/etc $fs 1.56 cp -a $install/usr/bin $fs/usr 1.57 + cp -a $WOK/$SOURCE/stuff/themes $fs/usr/share/slim 1.58 1.59 # Config file and rc script. 1.60 - cp -a ../$SOURCE/stuff/etc $fs 1.61 + cp -a $WOK/$SOURCE/stuff/etc $fs 1.62 chown -R root.root $fs 1.63 -} 1.64 1.65 -pre_install() 1.66 -{ 1.67 - local root 1.68 - root=$1 1.69 - # Backup config file. 1.70 - if [ -f $root/etc/slim.conf ]; then 1.71 - cp $root/etc/slim.conf $root/etc/slim.conf.bak 1.72 - fi 1.73 + # slim-theme manager 1.74 + install -m755 $WOK/$SOURCE/stuff/slim-theme $fs/usr/bin/slim-theme 1.75 } 1.76 1.77 post_install() 1.78 { 1.79 - local root 1.80 - root=$1 1.81 - # Restore original config. 1.82 - if [ -f $root/etc/slim.conf.bak ]; then 1.83 - mv -f $root/etc/slim.conf.bak $root/etc/slim.conf 1.84 - fi 1.85 local USER 1.86 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) 1.87 [ -n "$USER" ] && 1.88 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf 1.89 + 1.90 + # In order to update the SLiM, we need to restart it. 1.91 + # We can't just "/etc/init.d/slim restart" because it momentarily interrupts 1.92 + # X session and the user will get a terrible console with strange letters. 1.93 + printf '%40s\n' | tr ' ' '=' 1.94 + echo "In order to update the SLiM," 1.95 + echo "please, reboot your system!" 1.96 } 1.97 1.98 pre_remove()
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/slim-theme-7legs/receipt Tue May 28 13:24:15 2013 +0000 2.3 @@ -0,0 +1,43 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="slim-theme-7legs" 2.7 +VERSION="20130527" 2.8 +CATEGORY="x-window" 2.9 +SHORT_DESC="Seven legged Spider - theme for SLiM" 2.10 +MAINTAINER="al.bobylev@gmail.com" 2.11 +LICENSE="CC-BY" 2.12 +WEB_SITE="http://www.slitaz.org/" 2.13 + 2.14 +DEPENDS="slim slitaz-configs-base" 2.15 +BUILD_DEPENDS="inkscape optipng" 2.16 + 2.17 +# Rules to configure and make the package. 2.18 +compile_rules() 2.19 +{ 2.20 + mkdir -p $install 2.21 + inkscape -f $stuff/7_legged_spider.svg -e $install/panel.png 2.22 + optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 $install/panel.png 2.23 +} 2.24 + 2.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.26 +genpkg_rules() 2.27 +{ 2.28 + theme=$fs/usr/share/slim/themes/7_legged_spider 2.29 + mkdir -p $theme 2.30 + # link SLiM background to SliTaz desktop background; 2.31 + # system is almost here... 2.32 + cp -s /usr/share/images/slitaz-background.jpg $theme/background.jpg 2.33 + cp -a $install/panel.png $theme 2.34 + cp -a $stuff/slim.theme $theme 2.35 + cp -a $stuff/strings $theme 2.36 +} 2.37 + 2.38 +post_install() 2.39 +{ 2.40 + slim-theme -s7_legged_spider 2.41 +} 2.42 + 2.43 +pre_remove() 2.44 +{ 2.45 + slim-theme -f7_legged_spider 2.46 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/slim-theme-7legs/stuff/7_legged_spider.svg Tue May 28 13:24:15 2013 +0000 3.3 @@ -0,0 +1,46 @@ 3.4 +<!-- Created with Inkscape (http://www.inkscape.org/) --> 3.5 +<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="250" width="420" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"> 3.6 + <title>Seven legged Spider</title> 3.7 + <defs> 3.8 + <linearGradient id="g1"> 3.9 + <stop offset="0" stop-color="#000"/> 3.10 + <stop offset="1" stop-color="#CCC"/> 3.11 + </linearGradient> 3.12 + <linearGradient id="g2" y2="440" gradientUnits="userSpaceOnUse" x2="707" gradientTransform="translate(-499,-205)" y1="220" x1="707"> 3.13 + <stop offset="0" stop-color="#FFF" stop-opacity="0.8"/> 3.14 + <stop offset="1" stop-color="#666" stop-opacity="0.8"/> 3.15 + </linearGradient> 3.16 + <filter id="f1"> 3.17 + <feGaussianBlur stdDeviation="3"/> 3.18 + </filter> 3.19 + <linearGradient id="g3" x1="708" y1="454" x2="708" y2="205" xlink:href="#g1" gradientUnits="userSpaceOnUse" gradientTransform="translate(2,-2)"/> 3.20 + </defs> 3.21 + <metadata> 3.22 + <rdf:RDF> 3.23 + <cc:Work rdf:about=""> 3.24 + <dc:format>image/svg+xml</dc:format> 3.25 + <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> 3.26 + <dc:title>Seven legged Spider</dc:title> 3.27 + <dc:date>2013-05-27</dc:date> 3.28 + <dc:description>SLiM theme for SliTaz</dc:description> 3.29 + </cc:Work> 3.30 + </rdf:RDF> 3.31 + </metadata> 3.32 + <path id="shadow" opacity="0.2" d="m890,211c-121.5,0.8-243.1-0.1-364.6,0.5-12.4-0.4-19.4,13.7-16.8,24.6,0.3,64.7-0.6,129.5,0.5,194.2,2.6,10.9,15.4,15,25.3,13,121-0.3,242.1,0.7,363.1-0.5,11.3-2.7,15-16.1,13-26.3-0.4-64.1,0.7-128.3-0.6-192.3-2.2-8.7-11.4-13.6-19.9-13.1zm-363.9,8.3c122.9,0.1,245.8-0.2,368.7,0.2,7,1.1,9,9.3,7.7,15.4-0.1,64.2,0.2,128.5-0.2,192.8-1.1,7-9.3,9-15.3,7.7-120.9-0.1-241.8,0.2-362.7-0.2-7-1.1-9-9.3-7.7-15.3,0.1-64.2-0.2-128.5,0.2-192.8,0.8-4.4,4.9-7.9,9.3-7.8z" filter="url(#f1)" fill="url(#g3)" transform="translate(-501,-203)"/> 3.33 + <rect id="out_border" x="14" y="14" ry="11.5" height="220" width="390" opacity="0.8" stroke-opacity="0.4" stroke="#FFF" stroke-width="1" fill="url(#g2)"/> 3.34 + <rect id="pass_field" x="190.5" y="160.5" ry="4" height="35" width="195" fill="#fefefe" fill-opacity="0.4" stroke="#000" stroke-opacity="0.8" stroke-width="1"/> 3.35 + <rect id="user_field" x="190.5" y="98.5" ry="4" height="35" width="195" fill="#fefefe" fill-opacity="0.4" stroke="#000" stroke-opacity="0.8" stroke-width="1"/> 3.36 + <g transform="matrix(1.0968665,0,0,1.0968665,-233.44764,-179.73575)"> 3.37 + <path id="l1" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="M237,280c15-14,16-10,34-9"/> 3.38 + <path id="l2" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="m232,304c9-11,23-17,37-17,3-0,6-0,9-0"/> 3.39 + <path id="l3" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="m252,336c7-18,12-35,31-40"/> 3.40 + <path id="l4" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="m299,348c-3-15-4-29,1-42"/> 3.41 + <path id="l5" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="m339,245c-22-0-31-6-30,16"/> 3.42 + <path id="l6" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="m377,274c-21-12-32-22-53-6"/> 3.43 + <path id="l7" stroke="#000" stroke-linecap="round" stroke-width="4" fill="none" d="M385,303c-19-14-35-43-53-26"/> 3.44 + <path id="body" fill="#O00" d="m272,271c2,11,5,22,14,29,8,7,20,11,30,7,7-2,13-7,16-13,2-5,2-11,0-16-3-7-9-11-14-15-7-4-14-5-22-8-7-2-15-2-21,3-4,3-6,8-3,13l0,1z"/> 3.45 + <path id="mouth" d="m306,287c4,5,9,4,12-1" stroke="#FFF" stroke-linecap="round" stroke-width="4" fill="none"/> 3.46 + </g> 3.47 + <path id="reye" d="m113,124,1-0" stroke="#FFF" stroke-linecap="round" stroke-width="6" fill="none"/> 3.48 + <path id="leye" d="m103,125,1-0" stroke="#FFF" stroke-linecap="round" stroke-width="6" fill="none"/> 3.49 +</svg>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/slim-theme-7legs/stuff/README Tue May 28 13:24:15 2013 +0000 4.3 @@ -0,0 +1,9 @@ 4.4 +I hope you already know him. This seven legged spider is a main hero of David 4.5 +Thorne's humorous article. This article was reprinted on many websites. But 4.6 +nevertheless, the original is here: http://www.27bslash6.com/overdue.html 4.7 +Author of original artwork is David Thorne, certainly! 4.8 +Image was outlined in the Inkscape, simplified and saved in vector format. 4.9 + 4.10 +Panel was inspired by "flat" SLiM's theme panel. 4.11 +It was outlined too, and semi-transparent gradients and shadow was adjusted 4.12 +to have similar look.
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/slim-theme-7legs/stuff/slim.theme Tue May 28 13:24:15 2013 +0000 5.3 @@ -0,0 +1,51 @@ 5.4 +# "Seven legged Spider" SLiM theme for SliTaz 5.5 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2013 5.6 +# SliTaz Linux, 2013 5.7 + 5.8 +# Messages 5.9 +msg_color #FFFFFF 5.10 +msg_font DejaVu Sans:size=16:bold 5.11 +msg_x 50% 5.12 +msg_y 30 5.13 +msg_shadow_xoffset 1 5.14 +msg_shadow_yoffset 1 5.15 +msg_shadow_color #AAAAAA 5.16 + 5.17 +# Screen background style. Valid values: stretch, tile 5.18 +background_style stretch 5.19 +background_color #351A0A 5.20 + 5.21 +# Input controls 5.22 +input_color #060A0F 5.23 +input_font DejaVu Sans:size=12 5.24 +input_panel_x 50% 5.25 +input_panel_y 50% 5.26 +input_name_x 200 5.27 +input_name_y 122 5.28 +input_pass_x 200 5.29 +input_pass_y 184 5.30 + 5.31 +# Welcome message 5.32 +welcome_color #333333 5.33 +welcome_font DejaVu Sans:size=15:bold 5.34 +welcome_x 30 5.35 +welcome_y 50 5.36 +welcome_shadow_xoffset 1 5.37 +welcome_shadow_yoffset 1 5.38 +welcome_shadow_color #FFFFFF 5.39 + 5.40 +# Username / password request 5.41 +username_font DejaVu Sans:size=10:bold 5.42 +username_color #000000 5.43 +username_x 192 5.44 +username_y 94 5.45 +username_shadow_color #CCCCCC 5.46 +username_shadow_xoffset 1 5.47 +username_shadow_yoffset 1 5.48 +password_x 192 5.49 +password_y 156 5.50 + 5.51 +# Translatable strings 5.52 +welcome_msg Welcome to %host 5.53 +username_msg Username: 5.54 +password_msg Password:
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/slim-theme-7legs/stuff/strings Tue May 28 13:24:15 2013 +0000 6.3 @@ -0,0 +1,119 @@ 6.4 +# English 6.5 +w:en Welcome to %host! 6.6 +u:en Username: 6.7 +p:en Password: 6.8 +# Български 6.9 +w:bg Добре дошли в %host! 6.10 +u:bg Потребителско име: 6.11 +p:bg Парола: 6.12 +# Bosanski 6.13 +w:bs Dobrodošli u %host! 6.14 +u:bs Korisničko ime: 6.15 +p:bs Šifra: 6.16 +# Català 6.17 +w:ca Benvinguts a la %host! 6.18 +u:ca Nom d'usuari 6.19 +p:ca Contrasenya 6.20 +# Česky 6.21 +w:cs Vítejte ve %host! 6.22 +u:cs Uživatelské jméno: 6.23 +p:cs Heslo: 6.24 +# Dansk 6.25 +w:da Velkommen til %host! 6.26 +u:da Dit brugernavn: 6.27 +p:da Din adgangskode: 6.28 +# Deutsch 6.29 +w:de Willkommen auf %host! 6.30 +u:de Benutzername: 6.31 +p:de Passwort: 6.32 +# Ελληνικά 6.33 +w:el Καλώς ήρθατε στο %host! 6.34 +u:el Όνομα χρήστη: 6.35 +p:el Κωδικός: 6.36 +# Español 6.37 +w:es Bienvenido a %host! 6.38 +u:es Nombre de usuario: 6.39 +p:es Contraseña: 6.40 +# Esperanto 6.41 +w:eo Bonvenon al %host! 6.42 +u:eo Salutnomo: 6.43 +p:eo Pasvorto: 6.44 +# Suomi 6.45 +w:fi Tervetuloa %host! 6.46 +u:fi Käyttäjätunnus 6.47 +p:fi Salasana 6.48 +# Français 6.49 +w:fr Bienvenue à l'%host! 6.50 +u:fr Nom d'utilisateur : 6.51 +p:fr Mot de passe : 6.52 +# Hrvatski 6.53 +w:hr Dobrodošli na %host! 6.54 +u:hr Suradničko ime: 6.55 +p:hr Lozinka: 6.56 +# Magyar 6.57 +w:hu Üdvözöljük a %host! 6.58 +i:hu Szerkesztőneved: 6.59 +p:hu Jelszavad: 6.60 +# Indonesia 6.61 +w:id Selamat Datang %host! 6.62 +u:id Nama pengguna: 6.63 +p:id Kata sandi: 6.64 +# Italiano 6.65 +w:it Benvenuti %host! 6.66 +u:it Nome utente: 6.67 +p:it Password: 6.68 +# Lietuvos 6.69 +w:lt Sveiki atvykę į %host! 6.70 +u:lt Jūsų naudotojo vardas 6.71 +p:lt Pasirinktas slaptažodis 6.72 +# Nederlands 6.73 +w:nl Welkom bij %host! 6.74 +u:nl Gebruikersnaam: 6.75 +p:nl Wachtwoord: 6.76 +# Norsk (bokmål) 6.77 +w:no Velkommen til %host! 6.78 +u:no Brukernavn: 6.79 +p:no Passord: 6.80 +# Polski 6.81 +w:pl Witamy na %host! 6.82 +u:pl Nazwa użytkownika 6.83 +p:pl Hasło 6.84 +# Português 6.85 +w:pt Bem-vindo ao %host! 6.86 +u:pt Nome de utilizador: 6.87 +p:pt Palavra-chave: 6.88 +# Português (Brasil) 6.89 +u:pt_BR Nome de usuário: 6.90 +p:pt_BR Senha: 6.91 +# Română 6.92 +w:ro Bine ați venit la %host! 6.93 +u:ro Nume de utilizator: 6.94 +p:ro Parolă: 6.95 +# Русский 6.96 +w:ru Добро пожаловать в %host! 6.97 +u:ru Имя учётной записи: 6.98 +p:ru Пароль: 6.99 +# Slovenčina 6.100 +w:sk Vitajte %host! 6.101 +u:sk Používateľské meno: 6.102 +p:sk Heslo: 6.103 +# Slovenščina 6.104 +w:sl Dobrodošli v %host! 6.105 +u:sl Uporabniško ime: 6.106 +p:sl Geslo: 6.107 +# Српски / Srpski 6.108 +w:sr Добродошли у %host! 6.109 +u:sr Корисничко име: 6.110 +p:sr Лозинка: 6.111 +# Svenska 6.112 +w:sv Välkommen till %host! 6.113 +u:sv Användarnamn: 6.114 +p:sv Lösenord: 6.115 +# Türkçe 6.116 +w:tr %host Hoşgeldiniz! 6.117 +u:tr Kullanıcı adı: 6.118 +p:tr Parola: 6.119 +# Українська 6.120 +w:uk Ласкаво просимо до %host! 6.121 +u:uk Ім'я користувача: 6.122 +p:uk Пароль:
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/slim-theme-cat/receipt Tue May 28 13:24:15 2013 +0000 7.3 @@ -0,0 +1,43 @@ 7.4 +# SliTaz package receipt. 7.5 + 7.6 +PACKAGE="slim-theme-cat" 7.7 +VERSION="20130524" 7.8 +CATEGORY="x-window" 7.9 +SHORT_DESC="Cat and Spider - theme for SLiM" 7.10 +MAINTAINER="al.bobylev@gmail.com" 7.11 +LICENSE="CC-BY" 7.12 +WEB_SITE="http://www.slitaz.org/" 7.13 + 7.14 +DEPENDS="slim slitaz-configs-base" 7.15 +BUILD_DEPENDS="inkscape optipng" 7.16 + 7.17 +# Rules to configure and make the package. 7.18 +compile_rules() 7.19 +{ 7.20 + mkdir -p $install 7.21 + inkscape -f $stuff/cat_and_spider.svg -e $install/panel.png 7.22 + optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 $install/panel.png 7.23 +} 7.24 + 7.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 7.26 +genpkg_rules() 7.27 +{ 7.28 + theme=$fs/usr/share/slim/themes/cat_and_spider 7.29 + mkdir -p $theme 7.30 + # link SLiM background to SliTaz desktop background; 7.31 + # system is almost here... 7.32 + cp -s /usr/share/images/slitaz-background.jpg $theme/background.jpg 7.33 + cp -a $install/panel.png $theme 7.34 + cp -a $stuff/slim.theme $theme 7.35 + cp -a $stuff/strings $theme 7.36 +} 7.37 + 7.38 +post_install() 7.39 +{ 7.40 + slim-theme -s cat_and_spider 7.41 +} 7.42 + 7.43 +pre_remove() 7.44 +{ 7.45 + slim-theme -fcat_and_spider 7.46 +}
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/slim-theme-cat/stuff/README Tue May 28 13:24:15 2013 +0000 8.3 @@ -0,0 +1,7 @@ 8.4 +Source clip art "Cat and Spider" was found in the Google Pictures. 8.5 +It's widely used for T-shirts and Mouse pads background (author unknown, sorry). 8.6 +Image was outlined in the Inkscape, simplified and saved in vector format. 8.7 + 8.8 +Panel was inspired by "flat" SLiM's theme panel. 8.9 +It was outlined too, and semi-transparent gradients and shadow was adjusted 8.10 +to have similar look.
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/slim-theme-cat/stuff/cat_and_spider.svg Tue May 28 13:24:15 2013 +0000 9.3 @@ -0,0 +1,42 @@ 9.4 +<!-- Created with Inkscape (http://www.inkscape.org/) --> 9.5 +<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="250" width="420" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"> 9.6 + <title>Cat and Spider</title> 9.7 + <defs> 9.8 + <linearGradient id="g1"> 9.9 + <stop offset="0" stop-color="#000"/> 9.10 + <stop offset="1" stop-color="#CCC"/> 9.11 + </linearGradient> 9.12 + <linearGradient id="g2" y2="440" gradientUnits="userSpaceOnUse" x2="707" gradientTransform="translate(-499,-205)" y1="220" x1="707"> 9.13 + <stop offset="0" stop-color="#FFF" stop-opacity="0.8"/> 9.14 + <stop offset="1" stop-color="#666" stop-opacity="0.8"/> 9.15 + </linearGradient> 9.16 + <filter id="f1"> 9.17 + <feGaussianBlur stdDeviation="3"/> 9.18 + </filter> 9.19 + <linearGradient id="g3" x1="708" y1="454" x2="708" y2="205" xlink:href="#g1" gradientUnits="userSpaceOnUse" gradientTransform="translate(2,-2)"/> 9.20 + </defs> 9.21 + <metadata> 9.22 + <rdf:RDF> 9.23 + <cc:Work rdf:about=""> 9.24 + <dc:format>image/svg+xml</dc:format> 9.25 + <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> 9.26 + <dc:title>Cat and Spider</dc:title> 9.27 + <dc:date>2013-05-26</dc:date> 9.28 + <dc:description>SLiM theme for SliTaz</dc:description> 9.29 + </cc:Work> 9.30 + </rdf:RDF> 9.31 + </metadata> 9.32 + <path id="shadow" opacity="0.2" d="m890,211c-121.5,0.8-243.1-0.1-364.6,0.5-12.4-0.4-19.4,13.7-16.8,24.6,0.3,64.7-0.6,129.5,0.5,194.2,2.6,10.9,15.4,15,25.3,13,121-0.3,242.1,0.7,363.1-0.5,11.3-2.7,15-16.1,13-26.3-0.4-64.1,0.7-128.3-0.6-192.3-2.2-8.7-11.4-13.6-19.9-13.1zm-363.9,8.3c122.9,0.1,245.8-0.2,368.7,0.2,7,1.1,9,9.3,7.7,15.4-0.1,64.2,0.2,128.5-0.2,192.8-1.1,7-9.3,9-15.3,7.7-120.9-0.1-241.8,0.2-362.7-0.2-7-1.1-9-9.3-7.7-15.3,0.1-64.2-0.2-128.5,0.2-192.8,0.8-4.4,4.9-7.9,9.3-7.8z" filter="url(#f1)" fill="url(#g3)" transform="translate(-501,-203)"/> 9.33 + <rect id="out_border" x="14" y="14" ry="11.5" height="220" width="390" opacity="0.8" stroke-opacity="0.4" stroke="#FFF" stroke-width="1" fill="url(#g2)"/> 9.34 + <rect id="pass_field" x="190.5" y="160.5" ry="4" height="35" width="195" fill="#fefefe" fill-opacity="0.4" stroke="#000" stroke-opacity="0.8" stroke-width="1"/> 9.35 + <rect id="user_field" x="190.5" y="98.5" ry="4" height="35" width="195" fill="#fefefe" fill-opacity="0.4" stroke="#000" stroke-opacity="0.8" stroke-width="1"/> 9.36 + <path id="spider_body" fill="#000" d="m755,110-1,66.5s-4.6,0.2-8.2-0.4c-3.1-0.5-5.2-1.5-8-4.3-2.9-3-5.9-6.4-10-7.3-6.3-1.3-12.5,1.6-18.5,3.6,5.4-1,10.9-2,16.3-1.1,3,0.5,6.3,3.3,8.6,6.4,1.7,2.3,3.1,5.5,2,7.7-0.8,1.6-4.1,1.4-5,1.3-3.2-0.2-6.2-3.2-10.7-2.9-4.4,0.2-16.9,6.3-23.1,11.5,8.1-2.6,15.5-7.1,23.7-6.8,3.6,0.1,6.9,1.7,10.2,3.8,1.2,0.7-0.5,2-1.5,2.2-4.4,0.7-9.3-0.8-13.3,1.3-3.5,1.9-5.9,5.4-7.7,9.3-0.8,1.8-1.4,3.5-2.2,5.3,2.3-2.1,3.9-5.1,6.4-6.8,3.2-2.2,6.3-3.5,10.3-3.8,3.3-0.2,5.3,0.3,5.9,1.7,2.8,6.2,2.9,11,6.8,14.6,6.6,6,14,8.7,20.3,8.4,6.9-0.3,11.3-6.9,18.4-6.9,3.4,0,6.8,3.5,8.2,6.2,2.5,4.9,3,17.3,3,17.3s3.3-9.3,3.5-13.5c0.5-10.7-13.3-17.8-13.3-17.8s9.6-1,14.3,0.5,12.9,15.2,12.9,15.2-3.9-15.3-9.5-19.3c-3.4-2.4-12.3,0-15.4-3.9-1.1-1.4,0.5-2.9,2.9-3.4,4.7-1.1,12.1-2.1,14.3-0.5,4.1,3.2,10.9,14,10.9,14s-2.4-11-6.6-15.3c-2-2-4.6-3.3-7.5-3.3-4.7,0-14,1.3-14,1.3s-6.5-5.7-10-8.3c-2.8-2.1-8.8-5.8-8.8-5.8l1.5-66.6z" transform="matrix(0.66,0,0,0.66,-130,-58)"/> 9.37 + <path id="spider_eyes" fill="#FFF" d="m357.5,72.7c-2.2,0.2-3.2,3.8-2.7,5.9,0.3,1.3,1.9,2.5,3.2,2.3,1.5-0.2,2.9-2.0,3-3.6,0-1.7-1.5-4.6-3.4-4.4v-0.2zm13.2,5.5c-1.1,0-2.2,0.5-3,1.2-1.4,1.2-2.6,3.7-1.5,5.2,0.9,1.3,3.4,1,4.6,0.1,1.7-1.2,2.8-4.4,1.4-5.9-0.4-0.4-0.9-0.5-1.6-0.5z"/> 9.38 + <path id="cat_body" fill="#000" d="m128.1,78.6c-4,3.2-5.5,8.4-8,12.7-2.8,5.7-6.7,12.6-14.1,12.6-8.6,0.3-16.8,2.2-24.9,5.7-4.3,1.8-8.4,6-13.4,3.8-8.4-3.4-17.2-6.5-25.9-9-1.7,2-0.9,5.1-0.9,7.5,2.3,9.4,6.2,18.3,9.8,27.4,1.1,2.8,3.4,8.2,3.4,8.2s-7.4,0.7-17.4,7.1c-4.8,3-11.9,9-19.7,16.4,10-5.8,13.5-9.3,19.5-13.2,5.3-3.5,12-7.6,19.3-8.1,1.2,2.4,1.5,2.4,2.6,5.5-14.7,2.7-18.2,7.5-28.6,14.9-6.5,4.5-13.1,11.7-13.1,11.7s8.4-5.9,11.3-8.1c7.2-5.3,14.5-10.1,20-12.9,3.6-1.8,11.7-3.9,11.7-3.9l3.3,4.8s-7.7,5.3-12.7,10.1c-3.8,3.6-6.6,8.1-6.6,8.1s4.2-3.6,8.3-7.3,6.5-5.4,12.0-9.3c5.2,5.3,8.8,11.9,11.7,18.7,1.5,4.8-3,8.2-6.8,10-5.9,3-12.9,6.9-13.6,14.1-0.8,1.8-0.1,7-2.8,6-4-3.2-6.7-8-9.4-12.3-3.2-8.8-0.1-18.7-4-27.3-2.8-3.4-6.5,0.9-8.1,3.4-5.1,9.3-2.3,20.8,2.4,29.7,5.1,10.3,13.2,19.2,23,25.2,4.2,2.6,10.6,3.2,13.5-1.5,1.5-3.2,4.4-1.1,6.6,0.1,3.9,2,8.2,4.4,12.7,3.2,0.2-2.8,0.5-5.3,0.5-5.3s1.6-0.3,2.1,0.3c1.2,1.3,0.9,3.8,1.5,4.2s2.4-0.3,3.0-2.2c3.1-9,1.7-18.6,1.4-27.9-0.1-5.1-1.3-10-3.7-14.5-1.5-3.3-0.7-7.7,3.8-8.5,11.5-1.8,22.4-2.4,33.1-6.5,6.1-2.4,10.7-7.3,14.6-12.4,3.8-4.2,6.7-14.9,6.7-14.9s13.6,2.6,22.6,6.2c5.8,2.3,13.7,5.9,13.7,5.9s-3.8-3.1-11-6.7c-9.4-4.7-25-7.5-25-7.5l-0.2-4.5s20.9-0.8,30.8,0.1c7.7,0.7,18.5,1.7,18.5,1.7s-2.6-2.6-11.2-3.5c-12.1-1.1-39.2-0.8-39.2-0.8s-0.1-2.7-0.2-4.1c5.8-4,13.3-2.7,16.7-2.4,3,0.3,18.1,3.2,18.1,3.2s-2.7-1.6-12.1-3.6c-7.3-1.5-16.8-3.6-23.3,0.3-3-5.7-3.7-10.6-6.3-16.2-3.2-6.7-12.5-33.5-15.7-34.8z"/> 9.39 + <path id="cat_lear" fill="#FFF" d="m46.2,109.6c4-0.3,10.4,4.6,14.3,7.8-3.3,3.1-5.5,4.4-9.2,6.7-1.9-2.8-6.3-9.3-5.1-14.5z"/> 9.40 + <path id="cat_rear" fill="#FFF" d="m128.7,83.9c3.4,3.8,4.4,9.5,5.5,15.3-4.3,0.1-5.9-0.1-10.2-0.1-0.5-5.3,1.1-12.7,4.6-15.2z"/> 9.41 + <path id="cat_leye" fill="#FFF" d="m90,138a6.3,5.8,0,1,1,-12.6,0,6.3,5.8,0,1,1,12.6,0z" transform="matrix(2.97,0,0,3.06,-165.41,-285.23)"/> 9.42 + <path id="cat_reye" fill="#FFF" d="m141,125a18.1,17.6,0,1,1,-36.2,0,18.1,17.6,0,1,1,36.2,0z" transform="matrix(1.02,0,0,1.01,-2.38,-1.38)"/> 9.43 + <path id="cat_lpup" fill="#000" d="m98,134a2.6,2.2,0,1,1,-5.3,0,2.6,2.2,0,1,1,5.3,0z" transform="matrix(1.03,-0.21,0.21,1,-31.17,19.84)"/> 9.44 + <path id="cat_rpup" fill="#000" d="m138,123a3.2,2.3,0,1,1,-6.4,0,3.2,2.3,0,1,1,6.4,0z" transform="matrix(0.88,0,0,0.98,16.16,2.13)"/> 9.45 +</svg>
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/slim-theme-cat/stuff/slim.theme Tue May 28 13:24:15 2013 +0000 10.3 @@ -0,0 +1,51 @@ 10.4 +# "Cat and Spider" SLiM theme for SliTaz 10.5 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2013 10.6 +# SliTaz Linux, 2013 10.7 + 10.8 +# Messages 10.9 +msg_color #FFFFFF 10.10 +msg_font DejaVu Sans:size=16:bold 10.11 +msg_x 50% 10.12 +msg_y 30 10.13 +msg_shadow_xoffset 1 10.14 +msg_shadow_yoffset 1 10.15 +msg_shadow_color #AAAAAA 10.16 + 10.17 +# Screen background style. Valid values: stretch, tile 10.18 +background_style stretch 10.19 +background_color #351A0A 10.20 + 10.21 +# Input controls 10.22 +input_color #060A0F 10.23 +input_font DejaVu Sans:size=12 10.24 +input_panel_x 50% 10.25 +input_panel_y 50% 10.26 +input_name_x 200 10.27 +input_name_y 122 10.28 +input_pass_x 200 10.29 +input_pass_y 184 10.30 + 10.31 +# Welcome message 10.32 +welcome_color #333333 10.33 +welcome_font DejaVu Sans:size=14:bold 10.34 +welcome_x 30 10.35 +welcome_y 50 10.36 +welcome_shadow_xoffset 1 10.37 +welcome_shadow_yoffset 1 10.38 +welcome_shadow_color #FFFFFF 10.39 + 10.40 +# Username / password request 10.41 +username_font DejaVu Sans:size=10:bold 10.42 +username_color #000000 10.43 +username_x 192 10.44 +username_y 94 10.45 +username_shadow_color #CCCCCC 10.46 +username_shadow_xoffset 1 10.47 +username_shadow_yoffset 1 10.48 +password_x 192 10.49 +password_y 156 10.50 + 10.51 +# Translatable strings 10.52 +welcome_msg Welcome to %host 10.53 +username_msg Username: 10.54 +password_msg Password:
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/slim-theme-cat/stuff/strings Tue May 28 13:24:15 2013 +0000 11.3 @@ -0,0 +1,119 @@ 11.4 +# English 11.5 +w:en Welcome to %host! 11.6 +u:en Username: 11.7 +p:en Password: 11.8 +# Български 11.9 +w:bg Добре дошли в %host! 11.10 +u:bg Потребителско име: 11.11 +p:bg Парола: 11.12 +# Bosanski 11.13 +w:bs Dobrodošli u %host! 11.14 +u:bs Korisničko ime: 11.15 +p:bs Šifra: 11.16 +# Català 11.17 +w:ca Benvinguts a la %host! 11.18 +u:ca Nom d'usuari 11.19 +p:ca Contrasenya 11.20 +# Česky 11.21 +w:cs Vítejte ve %host! 11.22 +u:cs Uživatelské jméno: 11.23 +p:cs Heslo: 11.24 +# Dansk 11.25 +w:da Velkommen til %host! 11.26 +u:da Dit brugernavn: 11.27 +p:da Din adgangskode: 11.28 +# Deutsch 11.29 +w:de Willkommen auf %host! 11.30 +u:de Benutzername: 11.31 +p:de Passwort: 11.32 +# Ελληνικά 11.33 +w:el Καλώς ήρθατε στο %host! 11.34 +u:el Όνομα χρήστη: 11.35 +p:el Κωδικός: 11.36 +# Español 11.37 +w:es Bienvenido a %host! 11.38 +u:es Nombre de usuario: 11.39 +p:es Contraseña: 11.40 +# Esperanto 11.41 +w:eo Bonvenon al %host! 11.42 +u:eo Salutnomo: 11.43 +p:eo Pasvorto: 11.44 +# Suomi 11.45 +w:fi Tervetuloa %host! 11.46 +u:fi Käyttäjätunnus 11.47 +p:fi Salasana 11.48 +# Français 11.49 +w:fr Bienvenue à l'%host! 11.50 +u:fr Nom d'utilisateur : 11.51 +p:fr Mot de passe : 11.52 +# Hrvatski 11.53 +w:hr Dobrodošli na %host! 11.54 +u:hr Suradničko ime: 11.55 +p:hr Lozinka: 11.56 +# Magyar 11.57 +w:hu Üdvözöljük a %host! 11.58 +i:hu Szerkesztőneved: 11.59 +p:hu Jelszavad: 11.60 +# Indonesia 11.61 +w:id Selamat Datang %host! 11.62 +u:id Nama pengguna: 11.63 +p:id Kata sandi: 11.64 +# Italiano 11.65 +w:it Benvenuti %host! 11.66 +u:it Nome utente: 11.67 +p:it Password: 11.68 +# Lietuvos 11.69 +w:lt Sveiki atvykę į %host! 11.70 +u:lt Jūsų naudotojo vardas 11.71 +p:lt Pasirinktas slaptažodis 11.72 +# Nederlands 11.73 +w:nl Welkom bij %host! 11.74 +u:nl Gebruikersnaam: 11.75 +p:nl Wachtwoord: 11.76 +# Norsk (bokmål) 11.77 +w:no Velkommen til %host! 11.78 +u:no Brukernavn: 11.79 +p:no Passord: 11.80 +# Polski 11.81 +w:pl Witamy na %host! 11.82 +u:pl Nazwa użytkownika 11.83 +p:pl Hasło 11.84 +# Português 11.85 +w:pt Bem-vindo ao %host! 11.86 +u:pt Nome de utilizador: 11.87 +p:pt Palavra-chave: 11.88 +# Português (Brasil) 11.89 +u:pt_BR Nome de usuário: 11.90 +p:pt_BR Senha: 11.91 +# Română 11.92 +w:ro Bine ați venit la %host! 11.93 +u:ro Nume de utilizator: 11.94 +p:ro Parolă: 11.95 +# Русский 11.96 +w:ru Добро пожаловать в %host! 11.97 +u:ru Имя учётной записи: 11.98 +p:ru Пароль: 11.99 +# Slovenčina 11.100 +w:sk Vitajte %host! 11.101 +u:sk Používateľské meno: 11.102 +p:sk Heslo: 11.103 +# Slovenščina 11.104 +w:sl Dobrodošli v %host! 11.105 +u:sl Uporabniško ime: 11.106 +p:sl Geslo: 11.107 +# Српски / Srpski 11.108 +w:sr Добродошли у %host! 11.109 +u:sr Корисничко име: 11.110 +p:sr Лозинка: 11.111 +# Svenska 11.112 +w:sv Välkommen till %host! 11.113 +u:sv Användarnamn: 11.114 +p:sv Lösenord: 11.115 +# Türkçe 11.116 +w:tr %host Hoşgeldiniz! 11.117 +u:tr Kullanıcı adı: 11.118 +p:tr Parola: 11.119 +# Українська 11.120 +w:uk Ласкаво просимо до %host! 11.121 +u:uk Ім'я користувача: 11.122 +p:uk Пароль:
12.1 --- a/slim-theme-default/receipt Mon May 27 22:37:57 2013 +0200 12.2 +++ b/slim-theme-default/receipt Tue May 28 13:24:15 2013 +0000 12.3 @@ -1,13 +1,16 @@ 12.4 # SliTaz package receipt. 12.5 12.6 PACKAGE="slim-theme-default" 12.7 -VERSION="1.3.3" 12.8 +VERSION="1.3.5" 12.9 CATEGORY="x-window" 12.10 -SHORT_DESC="Slim login manager themes pack." 12.11 +SHORT_DESC="Default theme bundled with SLiM." 12.12 MAINTAINER="pankso@slitaz.org" 12.13 +LICENSE="GPL2" 12.14 +WEB_SITE="http://slim.berlios.de/" 12.15 + 12.16 DEPENDS="slim" 12.17 WANTED="slim" 12.18 -WEB_SITE="http://slim.berlios.de" 12.19 +RELATED="slim slim-pam" 12.20 12.21 # Rules to gen a SliTaz package suitable for Tazpkg. 12.22 genpkg_rules() 12.23 @@ -15,3 +18,13 @@ 12.24 mkdir -p $fs/usr/share/slim 12.25 cp -a $install/usr/share/slim/themes $fs/usr/share/slim 12.26 } 12.27 + 12.28 +post_install() 12.29 +{ 12.30 + slim-theme -sdefault 12.31 +} 12.32 + 12.33 +pre_remove() 12.34 +{ 12.35 + slim-theme -fdefault 12.36 +}
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 13.2 +++ b/slim-theme-mascot/receipt Tue May 28 13:24:15 2013 +0000 13.3 @@ -0,0 +1,43 @@ 13.4 +# SliTaz package receipt. 13.5 + 13.6 +PACKAGE="slim-theme-mascot" 13.7 +VERSION="20130527" 13.8 +CATEGORY="x-window" 13.9 +SHORT_DESC="Mascot (SliTaz Spider) - theme for SLiM" 13.10 +MAINTAINER="al.bobylev@gmail.com" 13.11 +LICENSE="CC-BY" 13.12 +WEB_SITE="http://www.slitaz.org/" 13.13 + 13.14 +DEPENDS="slim slitaz-configs-base" 13.15 +BUILD_DEPENDS="inkscape optipng" 13.16 + 13.17 +# Rules to configure and make the package. 13.18 +compile_rules() 13.19 +{ 13.20 + mkdir -p $install 13.21 + inkscape -f $stuff/slitaz_spider.svg -e $install/panel.png 13.22 + optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 $install/panel.png 13.23 +} 13.24 + 13.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 13.26 +genpkg_rules() 13.27 +{ 13.28 + theme=$fs/usr/share/slim/themes/mascot 13.29 + mkdir -p $theme 13.30 + # link SLiM background to SliTaz desktop background; 13.31 + # system is almost here... 13.32 + cp -s /usr/share/images/slitaz-background.jpg $theme/background.jpg 13.33 + cp -a $install/panel.png $theme 13.34 + cp -a $stuff/slim.theme $theme 13.35 + cp -a $stuff/strings $theme 13.36 +} 13.37 + 13.38 +post_install() 13.39 +{ 13.40 + slim-theme -smascot 13.41 +} 13.42 + 13.43 +pre_remove() 13.44 +{ 13.45 + slim-theme -fmascot 13.46 +}
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 14.2 +++ b/slim-theme-mascot/stuff/README Tue May 28 13:24:15 2013 +0000 14.3 @@ -0,0 +1,9 @@ 14.4 +This schematic spider is the official logo of SliTaz. 14.5 +Author of original image is Christophe Lincoln (?). 14.6 +Source file "slitaz-spider.svg" originally appeared Sat Mar 26, 2011 at 2:45:56 14.7 +in commit http://hg.slitaz.org/website/rev/447f2d77a98f, made by Christophe 14.8 +Lincoln. 14.9 +I'm just a bit touched up the original image in the Inkscape. 14.10 + 14.11 +Panel was inspired by "flat" SLiM's theme panel. 14.12 +Colors and gradients were set up to be more suitable for a logo.
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 15.2 +++ b/slim-theme-mascot/stuff/slim.theme Tue May 28 13:24:15 2013 +0000 15.3 @@ -0,0 +1,51 @@ 15.4 +# "Mascot (SliTaz Spider)" SLiM theme for SliTaz 15.5 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2013 15.6 +# SliTaz Linux, 2013 15.7 + 15.8 +# Messages 15.9 +msg_color #FFFFFF 15.10 +msg_font DejaVu Sans:size=16:bold 15.11 +msg_x 50% 15.12 +msg_y 30 15.13 +msg_shadow_xoffset 1 15.14 +msg_shadow_yoffset 1 15.15 +msg_shadow_color #AAAAAA 15.16 + 15.17 +# Screen background style. Valid values: stretch, tile 15.18 +background_style stretch 15.19 +background_color #351A0A 15.20 + 15.21 +# Input controls 15.22 +input_color #060A0F 15.23 +input_font DejaVu Sans:size=12 15.24 +input_panel_x 50% 15.25 +input_panel_y 50% 15.26 +input_name_x 200 15.27 +input_name_y 122 15.28 +input_pass_x 200 15.29 +input_pass_y 184 15.30 + 15.31 +# Welcome message 15.32 +welcome_color #FFFFFF 15.33 +welcome_font DejaVu Sans:size=15:bold 15.34 +welcome_x 30 15.35 +welcome_y 50 15.36 +welcome_shadow_xoffset 1 15.37 +welcome_shadow_yoffset 1 15.38 +welcome_shadow_color #000000 15.39 + 15.40 +# Username / password request 15.41 +username_font DejaVu Sans:size=10 15.42 +username_color #CCCCCC 15.43 +username_x 192 15.44 +username_y 94 15.45 +username_shadow_color #000000 15.46 +username_shadow_xoffset 1 15.47 +username_shadow_yoffset 1 15.48 +password_x 192 15.49 +password_y 156 15.50 + 15.51 +# Translatable strings 15.52 +welcome_msg Welcome to %host 15.53 +username_msg Username: 15.54 +password_msg Password:
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 16.2 +++ b/slim-theme-mascot/stuff/slitaz_spider.svg Tue May 28 13:24:15 2013 +0000 16.3 @@ -0,0 +1,37 @@ 16.4 +<!-- Created with Inkscape (http://www.inkscape.org/) --> 16.5 +<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="250" width="420" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"> 16.6 + <title>SliTaz Spider</title> 16.7 + <defs> 16.8 + <linearGradient id="g2" x1="707" gradientUnits="userSpaceOnUse" y1="220" gradientTransform="translate(-499,-205)" x2="707" y2="440"> 16.9 + <stop stop-color="#d66018" stop-opacity="0.95" offset="0"/> 16.10 + <stop stop-color="#351a0a" stop-opacity="0.95" offset="1"/> 16.11 + </linearGradient> 16.12 + <filter id="f1"> 16.13 + <feGaussianBlur stdDeviation="3"/> 16.14 + </filter> 16.15 + <linearGradient id="g3" y2="205" gradientUnits="userSpaceOnUse" x2="708" gradientTransform="translate(2,-2)" y1="454" x1="708"> 16.16 + <stop stop-color="#000" offset="0"/> 16.17 + <stop stop-color="#888" offset="1"/> 16.18 + </linearGradient> 16.19 + <linearGradient id="g4" y2="147" spreadMethod="reflect" gradientUnits="userSpaceOnUse" x2="208" y1="147" x1="114"> 16.20 + <stop stop-color="#351a0a" offset="0"/> 16.21 + <stop stop-color="#000" stop-opacity="0.7" offset="1"/> 16.22 + </linearGradient> 16.23 + </defs> 16.24 + <metadata> 16.25 + <rdf:RDF> 16.26 + <cc:Work rdf:about=""> 16.27 + <dc:format>image/svg+xml</dc:format> 16.28 + <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> 16.29 + <dc:title>SliTaz Spider</dc:title> 16.30 + <dc:date>2013-05-27</dc:date> 16.31 + <dc:description>SLiM theme for SliTaz</dc:description> 16.32 + </cc:Work> 16.33 + </rdf:RDF> 16.34 + </metadata> 16.35 + <path id="shadow" opacity="0.4" d="m890,211c-121.5,0.8-243.1-0.1-364.6,0.5-12.4-0.4-19.4,13.7-16.8,24.6,0.3,64.7-0.6,129.5,0.5,194.2,2.6,10.9,15.4,15,25.3,13,121-0.3,242.1,0.7,363.1-0.5,11.3-2.7,15-16.1,13-26.3-0.4-64.1,0.7-128.3-0.6-192.3-2.2-8.7-11.4-13.6-19.9-13.1zm-363.9,8.3c122.9,0.1,245.8-0.2,368.7,0.2,7,1.1,9,9.3,7.7,15.4-0.1,64.2,0.2,128.5-0.2,192.8-1.1,7-9.3,9-15.3,7.7-120.9-0.1-241.8,0.2-362.7-0.2-7-1.1-9-9.3-7.7-15.3,0.1-64.2-0.2-128.5,0.2-192.8,0.8-4.4,4.9-7.9,9.3-7.8z" transform="translate(-501,-203)" filter="url(#f1)" fill="url(#g3)"/> 16.36 + <rect id="out_border" opacity="0.95" stroke-opacity="0.6" ry="11.5" height="220" width="390" stroke="#000" y="14" x="14" stroke-width="1" fill="url(#g2)"/> 16.37 + <rect id="pass_field" stroke-opacity="0.8" fill-opacity="0.4" ry="4" height="35" width="195" stroke="#000" y="160.5" x="190.5" stroke-width="1" fill="#fefefe"/> 16.38 + <rect id="user_field" stroke-opacity="0.8" fill-opacity="0.4" ry="4" height="35" width="195" stroke="#000" y="98.5" x="190.5" stroke-width="1" fill="#fefefe"/> 16.39 + <path id="spider" stroke-linejoin="miter" d="m125.7,216.6s16.1-22.3,20.1-33.1c3.8-10.6,3.6-11.4-4.3-17.3-7.3-5.5-14.1-9.1-14.1-9.1s-0.5,2.7-0.1,6c1.8,17.7-8.1,38.2-21.8,44.8-4.5,2.2-12.5,2.4-16.2,0.5-13.1-6.9-16.7-28.2-8.2-48.7,0.5-1.1,0.3-1.6-0.6-1.6-1.8,0-21.6,11.8-23.1,13.8-1.8,2.4-1.4,14.9,0.6,23.0,1,3.9,3.5,10.6,5.7,14.9l3.9,7.9-5.3-5.6c-7.1-7.6-13.8-21.5-16.3-34l-1.9-9.2,2.5-2.1c1.4-1.1,6.3-4.1,10.8-6.6,11.1-6,12.2-7.4,5.4-6.5-16.9,2.1-19.8,2.7-20.7,4.4-4.8,11.9-6.1,39.3-6.1,39.3s-2.7-6.5-3.4-9.9c-1.4-6.7-2-8.8-1.4-20.5,0.8-17.9,0.8-18.0,5.6-18.8,2.1-0.3,7.7-1.2,12.3-1.9,4.6-0.7,10.7-1.6,13.4-1.9,4.9-0.6,6.4-1.9,3.3-2.9-5.2-1.6-26.7-10.2-27.1-10.9-0.8-1.3,4-12.9,7.2-18.8,5.2-9.6,19.5-26.3,19.5-26.3s-15.3,31.5-14.2,39.1c0.5,1.3,24.5,10.4,25.3,9.6,0.3-0.3-3.2-3.6-7.8-7.4s-8.4-7.6-8.5-8.4c-0.2-0.8,1.9-5.2,4.7-9.8,3.6-6,7.7-11.1,14.8-18.2,5.1-5,16.5-13.5,16.5-13.5s-19.3,22.4-24.3,38.9l4.2,4.3c5.8,6,15.7,13.7,16.7,13.1,0.5-0.3,1.1-2.2,1.3-4.4,0.8-5.7,4.6-10.8,10.1-13.6,6.8-3.4,11.4-2.4,16.4,3.5,2.3,2.8,2.5,3.6,2.2,9.4-0.2,3.5-0,6.4,0.3,6.4,1.7,0,24.4-15.7,26.4-18.3,1.2-1.5-0.5-12.4-2.1-18.4-1.8-6.9-8.5-19.6-8.5-19.6s16.2,19,20.2,31.2c2.6,8.1,2.6,8.1,0.8,10.2-1,1.1-6,4.8-11.2,8.2-5.1,3.4-8.3,6.5-8.3,6.5s24.8-7.4,26.7-9.3c1-1,1.7-3.1,1.7-4.8,0.4-12.3-4.4-36-4.4-36s5.8,7.8,8.5,13.7c2.9,6.4,6.5,23.6,6.1,29.2l-0.3,4.1-10.8,4c-5.9,2.2-13.2,4.7-16.2,5.5-5.9,1.7-6.6,3.5-1.5,3.9,7,0.6,27.7,4.1,28.5,4.9,1.1,1.1-1.5,14.1-4.9,25.1-2.4,7.61-12.4,23.7-12.4,23.7s8.6-36.1,5.2-41.2c-0.5-0.4-4.5-1.3-8.9-1.9-4.4-0.6-9.4-1.3-11-1.6-4.3-0.7-3.9,1,0.9,4.1,9.6,6.2,13.9,9.8,13.9,11.7,0,3-8,17.8-13.9,25.6-6.1,8.2-21.8,21.6-21.8,21.6z" stroke="#c5c5c5" stroke-miterlimit="40" stroke-width="2" fill="url(#g4)"/> 16.40 +</svg>
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 17.2 +++ b/slim-theme-mascot/stuff/strings Tue May 28 13:24:15 2013 +0000 17.3 @@ -0,0 +1,119 @@ 17.4 +# English 17.5 +w:en Welcome to %host! 17.6 +u:en Username: 17.7 +p:en Password: 17.8 +# Български 17.9 +w:bg Добре дошли в %host! 17.10 +u:bg Потребителско име: 17.11 +p:bg Парола: 17.12 +# Bosanski 17.13 +w:bs Dobrodošli u %host! 17.14 +u:bs Korisničko ime: 17.15 +p:bs Šifra: 17.16 +# Català 17.17 +w:ca Benvinguts a la %host! 17.18 +u:ca Nom d'usuari 17.19 +p:ca Contrasenya 17.20 +# Česky 17.21 +w:cs Vítejte ve %host! 17.22 +u:cs Uživatelské jméno: 17.23 +p:cs Heslo: 17.24 +# Dansk 17.25 +w:da Velkommen til %host! 17.26 +u:da Dit brugernavn: 17.27 +p:da Din adgangskode: 17.28 +# Deutsch 17.29 +w:de Willkommen auf %host! 17.30 +u:de Benutzername: 17.31 +p:de Passwort: 17.32 +# Ελληνικά 17.33 +w:el Καλώς ήρθατε στο %host! 17.34 +u:el Όνομα χρήστη: 17.35 +p:el Κωδικός: 17.36 +# Español 17.37 +w:es Bienvenido a %host! 17.38 +u:es Nombre de usuario: 17.39 +p:es Contraseña: 17.40 +# Esperanto 17.41 +w:eo Bonvenon al %host! 17.42 +u:eo Salutnomo: 17.43 +p:eo Pasvorto: 17.44 +# Suomi 17.45 +w:fi Tervetuloa %host! 17.46 +u:fi Käyttäjätunnus 17.47 +p:fi Salasana 17.48 +# Français 17.49 +w:fr Bienvenue à l'%host! 17.50 +u:fr Nom d'utilisateur : 17.51 +p:fr Mot de passe : 17.52 +# Hrvatski 17.53 +w:hr Dobrodošli na %host! 17.54 +u:hr Suradničko ime: 17.55 +p:hr Lozinka: 17.56 +# Magyar 17.57 +w:hu Üdvözöljük a %host! 17.58 +i:hu Szerkesztőneved: 17.59 +p:hu Jelszavad: 17.60 +# Indonesia 17.61 +w:id Selamat Datang %host! 17.62 +u:id Nama pengguna: 17.63 +p:id Kata sandi: 17.64 +# Italiano 17.65 +w:it Benvenuti %host! 17.66 +u:it Nome utente: 17.67 +p:it Password: 17.68 +# Lietuvos 17.69 +w:lt Sveiki atvykę į %host! 17.70 +u:lt Jūsų naudotojo vardas 17.71 +p:lt Pasirinktas slaptažodis 17.72 +# Nederlands 17.73 +w:nl Welkom bij %host! 17.74 +u:nl Gebruikersnaam: 17.75 +p:nl Wachtwoord: 17.76 +# Norsk (bokmål) 17.77 +w:no Velkommen til %host! 17.78 +u:no Brukernavn: 17.79 +p:no Passord: 17.80 +# Polski 17.81 +w:pl Witamy na %host! 17.82 +u:pl Nazwa użytkownika 17.83 +p:pl Hasło 17.84 +# Português 17.85 +w:pt Bem-vindo ao %host! 17.86 +u:pt Nome de utilizador: 17.87 +p:pt Palavra-chave: 17.88 +# Português (Brasil) 17.89 +u:pt_BR Nome de usuário: 17.90 +p:pt_BR Senha: 17.91 +# Română 17.92 +w:ro Bine ați venit la %host! 17.93 +u:ro Nume de utilizator: 17.94 +p:ro Parolă: 17.95 +# Русский 17.96 +w:ru Добро пожаловать в %host! 17.97 +u:ru Имя учётной записи: 17.98 +p:ru Пароль: 17.99 +# Slovenčina 17.100 +w:sk Vitajte %host! 17.101 +u:sk Používateľské meno: 17.102 +p:sk Heslo: 17.103 +# Slovenščina 17.104 +w:sl Dobrodošli v %host! 17.105 +u:sl Uporabniško ime: 17.106 +p:sl Geslo: 17.107 +# Српски / Srpski 17.108 +w:sr Добродошли у %host! 17.109 +u:sr Корисничко име: 17.110 +p:sr Лозинка: 17.111 +# Svenska 17.112 +w:sv Välkommen till %host! 17.113 +u:sv Användarnamn: 17.114 +p:sv Lösenord: 17.115 +# Türkçe 17.116 +w:tr %host Hoşgeldiniz! 17.117 +u:tr Kullanıcı adı: 17.118 +p:tr Parola: 17.119 +# Українська 17.120 +w:uk Ласкаво просимо до %host! 17.121 +u:uk Ім'я користувача: 17.122 +p:uk Пароль:
18.1 --- a/slim/receipt Mon May 27 22:37:57 2013 +0200 18.2 +++ b/slim/receipt Tue May 28 13:24:15 2013 +0000 18.3 @@ -1,61 +1,62 @@ 18.4 # SliTaz package receipt. 18.5 18.6 PACKAGE="slim" 18.7 -VERSION="1.3.3" # 1.3.4 18.8 +VERSION="1.3.5" 18.9 CATEGORY="x-window" 18.10 SHORT_DESC="Desktop-independent graphical login manager for X11." 18.11 MAINTAINER="pankso@slitaz.org" 18.12 -SUGGESTED="slim-theme-default slitaz-configs" 18.13 +LICENSE="GPL2" 18.14 +WEB_SITE="http://slim.berlios.de/" 18.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 18.16 -WEB_SITE="http://slim.berlios.de" 18.17 WGET_URL="http://download.berlios.de/slim/$TARBALL" 18.18 CONFIG_FILES="/etc/slim.conf" 18.19 18.20 -DEPENDS="glibc-base gcc-lib-base expat fontconfig freetype util-linux-uuid \ 18.21 -zlib jpeg libpng xorg-libXft xorg-libXmu" 18.22 -BUILD_DEPENDS="xorg-libXft-dev xorg-libXmu-dev jpeg-dev libpng-dev cmake" 18.23 +DEPENDS="gcc-lib-base libjpeg libpng xorg-libXft xorg-libXmu" 18.24 +SUGGESTED="slim-theme-default slitaz-configs" 18.25 +BUILD_DEPENDS="cmake freetype-dev jpeg-dev libpng-dev xorg-libXft-dev \ 18.26 +xorg-libXmu-dev" 18.27 +RELATED="slim-pam slim-theme-default" # don't forget to upgrade them too 18.28 18.29 # Rules to configure and make the package. 18.30 compile_rules() 18.31 { 18.32 - cd $src 18.33 - #patch -p1 < $stuff/NoPwdForCmd.patch || return 1 18.34 - cmake -DCMAKE_INSTALL_PREFIX=/usr . && 18.35 - make && make DESTDIR=$DESTDIR install 18.36 + patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1 18.37 + mkdir build; cd build 18.38 + cmake \ 18.39 + -DCMAKE_INSTALL_PREFIX=/usr \ 18.40 + -DX11_Xmu_LIB=-lXmu \ 18.41 + .. && 18.42 + make && 18.43 + make DESTDIR=$DESTDIR install 18.44 } 18.45 18.46 # Rules to gen a SliTaz package suitable for Tazpkg. 18.47 genpkg_rules() 18.48 { 18.49 mkdir -p $fs/usr/share/slim 18.50 + cp -a $install/etc $fs 18.51 + cp -a $install/usr/bin $fs/usr 18.52 cp -a $stuff/themes $fs/usr/share/slim 18.53 - cp -a $install/usr/bin $fs/usr 18.54 18.55 # Config file and rc script. 18.56 cp -a $stuff/etc $fs 18.57 chown -R root.root $fs 18.58 -} 18.59 18.60 -pre_install() 18.61 -{ 18.62 - local root 18.63 - root=$1 18.64 - # Backup config file. 18.65 - if [ -f $root/etc/slim.conf ]; then 18.66 - cp $root/etc/slim.conf $root/etc/slim.conf.bak 18.67 - fi 18.68 + # slim-theme manager 18.69 + install -m755 $stuff/slim-theme $fs/usr/bin/slim-theme 18.70 } 18.71 18.72 post_install() 18.73 { 18.74 - local root 18.75 - root=$1 18.76 - # Restore original config. 18.77 - if [ -f $root/etc/slim.conf.bak ]; then 18.78 - mv -f $root/etc/slim.conf.bak $root/etc/slim.conf 18.79 - fi 18.80 local USER 18.81 USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd) 18.82 [ -n "$USER" ] && 18.83 sed -i s/"default_user .*"/"default_user $USER"/ $1/etc/slim.conf 18.84 + 18.85 + # In order to update the SLiM, we need to restart it. 18.86 + # We can't just "/etc/init.d/slim restart" because it momentarily interrupts 18.87 + # X session and the user will get a terrible console with strange letters. 18.88 + printf '%40s\n' | tr ' ' '=' 18.89 + echo "In order to update the SLiM," 18.90 + echo "please, reboot your system!" 18.91 }
19.1 --- a/slim/stuff/NoPwdForCmd.patch Mon May 27 22:37:57 2013 +0200 19.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 19.3 @@ -1,33 +0,0 @@ 19.4 ---- slim-1.3.1/app.cpp Fri Sep 26 00:54:15 2008 19.5 -+++ slim-1.3.1nopwd/app.cpp Mon May 3 19:44:41 2010 19.6 -@@ -413,6 +413,7 @@ 19.7 - case Panel::Exit: 19.8 - case Panel::Console: 19.9 - return true; // <--- This is simply fake! 19.10 -+ 19.11 - default: 19.12 - break; 19.13 - }; 19.14 -@@ -434,6 +435,11 @@ 19.15 - case Panel::Console: 19.16 - cerr << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl; 19.17 - return true; // <--- This is simply fake! 19.18 -+ case Panel::Suspend: 19.19 -+ case Panel::Halt: 19.20 -+ case Panel::Reboot: 19.21 -+ if (cfg->getOption("root_password") == "false") 19.22 -+ return true; 19.23 - default: 19.24 - break; 19.25 - } 19.26 ---- slim-1.3.1/cfg.cpp Fri Sep 26 00:54:15 2008 19.27 -+++ slim-1.3.1nopwd/cfg.cpp Sun May 2 23:36:46 2010 19.28 -@@ -37,6 +37,7 @@ 19.29 - options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc %session")); 19.30 - options.insert(option("halt_cmd","/sbin/shutdown -h now")); 19.31 - options.insert(option("reboot_cmd","/sbin/shutdown -r now")); 19.32 -+ options.insert(option("root_password","true")); 19.33 - options.insert(option("suspend_cmd","")); 19.34 - options.insert(option("sessionstart_cmd","")); 19.35 - options.insert(option("sessionstop_cmd","")); 19.36 -Common subdirectories: slim-1.3.1/themes and slim-1.3.1nopwd/themes
20.1 --- a/slim/stuff/etc/init.d/slim Mon May 27 22:37:57 2013 +0200 20.2 +++ b/slim/stuff/etc/init.d/slim Tue May 28 13:24:15 2013 +0000 20.3 @@ -7,8 +7,8 @@ 20.4 # 20.5 . /etc/init.d/rc.functions 20.6 20.7 -NAME=Slim 20.8 -DESC="slim login manager" 20.9 +NAME=SLiM 20.10 +DESC="Simple login manager" 20.11 DAEMON=/usr/bin/slim 20.12 OPTION="-d" 20.13 LOCK_FILE=/var/lock/slim.lock
21.1 --- a/slim/stuff/etc/slim.conf Mon May 27 22:37:57 2013 +0200 21.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 21.3 @@ -1,81 +0,0 @@ 21.4 -# /etc/slim.conf: Slim login manger configuration file 21.5 -# 21.6 - 21.7 -# Path, X server and arguments (if needed) 21.8 -# Note: -xauth $authfile is automatically appended 21.9 -default_path ./:/bin:/usr/bin:/usr/local/bin 21.10 -default_xserver /usr/bin/Xorg 21.11 -xserver_arguments -nolisten tcp 21.12 - 21.13 -# Commands for halt, login, etc. 21.14 -halt_cmd /sbin/poweroff 21.15 -reboot_cmd /sbin/reboot 21.16 -console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -l -c "exec /bin/login" 21.17 -#suspend_cmd /usr/sbin/suspend 21.18 - 21.19 -# Full path to the xauth binary 21.20 -xauth_path /usr/bin/xauth 21.21 - 21.22 -# Xauth file for server 21.23 -authfile /var/run/slim.auth 21.24 - 21.25 -# Activate numlock when slim starts. Valid values: on|off 21.26 -# numlock on 21.27 - 21.28 -# Hide the mouse cursor (note: does not work with some WMs). 21.29 -# Valid values: true|false 21.30 -hidecursor true 21.31 - 21.32 -# This command is executed after a succesful login. 21.33 -# you can place the %session and %theme variables 21.34 -# to handle launching of specific commands in .xinitrc 21.35 -# depending of chosen session and slim theme 21.36 -login_cmd exec /bin/sh -l ~/.xinitrc %session 21.37 - 21.38 -# Commands executed when starting and exiting a session. 21.39 -# They can be used for registering a X11 session with 21.40 -# sessreg. You can use the %user variable 21.41 -# 21.42 -# sessionstart_cmd some command 21.43 -# sessionstop_cmd some command 21.44 - 21.45 -# Start in daemon mode. Valid values: yes | no 21.46 -# Note that this can overridden by the command line 21.47 -# option "-d" 21.48 -#daemon yes 21.49 - 21.50 -# Available sessions (first one is the default). 21.51 -# The current chosen session name is replaced in the login_cmd 21.52 -# above, so your login command can handle different sessions. 21.53 -# see the xinitrc.sample file shipped with slim sources 21.54 -sessions openbox 21.55 - 21.56 -# Executed when pressing F11 (requires imagemagick) 21.57 -#screenshot_cmd mtpaint -s /root/slim-shot.png 21.58 - 21.59 -# welcome message. Available variables: %host, %domain 21.60 -welcome_msg Welcome to %host 21.61 - 21.62 -# shutdown / reboot messages 21.63 -shutdown_msg The system is going down... 21.64 -reboot_msg The system is rebooting... 21.65 - 21.66 -# default user, leave blank or remove this line 21.67 -# for avoid pre-loading the username. 21.68 -default_user tux 21.69 -#focus_password true 21.70 - 21.71 -# current theme, use comma separated list to specify a set to 21.72 -# randomly choose from 21.73 -current_theme slitaz,base 21.74 - 21.75 -# Lock file 21.76 -lockfile /var/lock/slim.lock 21.77 - 21.78 -# Log file 21.79 -logfile /var/log/slim.log 21.80 - 21.81 -# Let normal users have access to systems commands. If the value is true, 21.82 -# then the root password is requiered to start a system command. 21.83 -# Valid values: true|false 21.84 -# root_password false
22.1 --- a/slim/stuff/gcc44.patch Mon May 27 22:37:57 2013 +0200 22.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 22.3 @@ -1,10 +0,0 @@ 22.4 ---- switchuser.cpp Fri Sep 26 02:54:15 2008 22.5 -+++ switchuser.cpp Thu Aug 6 12:50:06 2009 22.6 -@@ -9,6 +9,7 @@ 22.7 - (at your option) any later version. 22.8 - */ 22.9 - 22.10 -+#include <cstdio> 22.11 - #include "switchuser.h" 22.12 - 22.13 - using namespace std;
23.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 23.2 +++ b/slim/stuff/slim-1.3.5.patch Tue May 28 13:24:15 2013 +0000 23.3 @@ -0,0 +1,169 @@ 23.4 +--- slim-1.3.5/app.cpp 23.5 ++++ slim-1.3.5/app.cpp 23.6 + 23.7 +Link forgotten header. 23.8 +@@ -25,6 +25,7 @@ 23.9 + #include "app.h" 23.10 + #include "numlock.h" 23.11 + #include "util.h" 23.12 ++#include <X11/Xmu/WinUtil.h> 23.13 + 23.14 + #ifdef HAVE_SHADOW 23.15 + #include <shadow.h> 23.16 + 23.17 +Option not to enter root's password if special command was given in the 23.18 +login field (suspend, halt or reboot). 23.19 +@@ -437,6 +438,11 @@ 23.20 + case Panel::Console: 23.21 + logStream << APPNAME << ": Got a special command (" << LoginPanel->GetName() << ")" << endl; 23.22 + return true; /* <--- This is simply fake! */ 23.23 ++ case Panel::Suspend: 23.24 ++ case Panel::Halt: 23.25 ++ case Panel::Reboot: 23.26 ++ if (cfg->getOption("root_password") == "false") 23.27 ++ return true; 23.28 + default: 23.29 + break; 23.30 + } 23.31 + 23.32 + 23.33 +--- slim-1.3.5/cfg.cpp 23.34 ++++ slim-1.3.5/cfg.cpp 23.35 + 23.36 +Change default settings for SliTaz. 23.37 +@@ -28,34 +28,35 @@ 23.38 + : currentSession(-1) 23.39 + { 23.40 + /* Configuration options */ 23.41 +- options.insert(option("default_path","/bin:/usr/bin:/usr/local/bin")); 23.42 +- options.insert(option("default_xserver","/usr/bin/X")); 23.43 ++ options.insert(option("default_path","/sbin:/bin:/usr/sbin:/usr/bin")); 23.44 ++ options.insert(option("default_xserver","/usr/bin/Xorg")); 23.45 + options.insert(option("xserver_arguments","")); 23.46 + options.insert(option("numlock","")); 23.47 + options.insert(option("daemon","")); 23.48 + options.insert(option("xauth_path","/usr/bin/xauth")); 23.49 +- options.insert(option("login_cmd","exec /bin/bash -login ~/.xinitrc %session")); 23.50 +- options.insert(option("halt_cmd","/sbin/shutdown -h now")); 23.51 +- options.insert(option("reboot_cmd","/sbin/shutdown -r now")); 23.52 ++ options.insert(option("login_cmd","exec /bin/sh -l ~/.xinitrc %session")); 23.53 ++ options.insert(option("halt_cmd","/sbin/poweroff")); 23.54 ++ options.insert(option("reboot_cmd","/sbin/reboot")); 23.55 ++ options.insert(option("root_password","true")); 23.56 + options.insert(option("suspend_cmd","")); 23.57 + options.insert(option("sessionstart_cmd","")); 23.58 + options.insert(option("sessionstop_cmd","")); 23.59 +- options.insert(option("console_cmd","/usr/bin/xterm -C -fg white -bg black +sb -g %dx%d+%d+%d -fn %dx%d -T ""Console login"" -e /bin/sh -c ""/bin/cat /etc/issue; exec /bin/login""")); 23.60 +- options.insert(option("screenshot_cmd","import -window root /slim.png")); 23.61 ++ options.insert(option("console_cmd","/usr/bin/xterm -C -fg white -bg black +sb -T ""Console login"" -e /bin/sh -l -c ""exec /bin/login""")); 23.62 ++ options.insert(option("screenshot_cmd","mtpaint -s /root/slim-shot.png")); 23.63 + options.insert(option("welcome_msg","Welcome to %host")); 23.64 + options.insert(option("session_msg","Session:")); 23.65 +- options.insert(option("default_user","")); 23.66 ++ options.insert(option("default_user","tux")); 23.67 + options.insert(option("focus_password","no")); 23.68 + options.insert(option("auto_login","no")); 23.69 +- options.insert(option("current_theme","default")); 23.70 +- options.insert(option("lockfile","/var/run/slim.lock")); 23.71 ++ options.insert(option("current_theme","slitaz,base")); 23.72 ++ options.insert(option("lockfile","/var/lock/slim.lock")); 23.73 + options.insert(option("logfile","/var/log/slim.log")); 23.74 + options.insert(option("authfile","/var/run/slim.auth")); 23.75 +- options.insert(option("shutdown_msg","The system is halting...")); 23.76 ++ options.insert(option("shutdown_msg","The system is going down...")); 23.77 + options.insert(option("reboot_msg","The system is rebooting...")); 23.78 +- options.insert(option("sessions","wmaker,blackbox,icewm")); 23.79 ++ options.insert(option("sessions","openbox,e17,jwm")); 23.80 + options.insert(option("sessiondir","")); 23.81 +- options.insert(option("hidecursor","false")); 23.82 ++ options.insert(option("hidecursor","true")); 23.83 + 23.84 + /* Theme stuff */ 23.85 + options.insert(option("input_panel_x","50%")); 23.86 + 23.87 + 23.88 +--- slim-1.3.5/slim.conf.original 23.89 ++++ slim-1.3.5/slim.conf 23.90 + 23.91 +Change default settings for SliTaz too. 23.92 +@@ -1,13 +1,16 @@ 23.93 ++# /etc/slim.conf: Slim LogIn Manger configuration file 23.94 ++# 23.95 ++ 23.96 + # Path, X server and arguments (if needed) 23.97 + # Note: -xauth $authfile is automatically appended 23.98 +-default_path /bin:/usr/bin:/usr/local/bin 23.99 +-default_xserver /usr/bin/X 23.100 ++default_path ./:/bin:/usr/bin:/usr/local/bin 23.101 ++default_xserver /usr/bin/Xorg 23.102 + #xserver_arguments -dpi 75 23.103 + 23.104 + # Commands for halt, login, etc. 23.105 +-halt_cmd /sbin/shutdown -h now 23.106 +-reboot_cmd /sbin/shutdown -r now 23.107 +-console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login" 23.108 ++halt_cmd /sbin/poweroff 23.109 ++reboot_cmd /sbin/reboot 23.110 ++console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -l -c "exec /bin/login" 23.111 + #suspend_cmd /usr/sbin/suspend 23.112 + 23.113 + # Full path to the xauth binary 23.114 +@@ -22,7 +25,7 @@ 23.115 + 23.116 + # Hide the mouse cursor (note: does not work with some WMs). 23.117 + # Valid values: true|false 23.118 +-# hidecursor false 23.119 ++hidecursor true 23.120 + 23.121 + # This command is executed after a succesful login. 23.122 + # you can place the %session and %theme variables 23.123 +@@ -33,7 +36,7 @@ 23.124 + # to adjust the command according to your preferred shell, 23.125 + # i.e. for freebsd use: 23.126 + # login_cmd exec /bin/sh - ~/.xinitrc %session 23.127 +-login_cmd exec /bin/bash -login ~/.xinitrc %session 23.128 ++login_cmd exec /bin/sh -l ~/.xinitrc %session 23.129 + 23.130 + # Commands executed when starting and exiting a session. 23.131 + # They can be used for registering a X11 session with 23.132 +@@ -51,10 +54,10 @@ 23.133 + # The current chosen session name is replaced in the login_cmd 23.134 + # above, so your login command can handle different sessions. 23.135 + # see the xinitrc.sample file shipped with slim sources 23.136 +-sessions xfce4,icewm-session,wmaker,blackbox 23.137 ++sessions openbox,e17,jwm 23.138 + 23.139 + # Executed when pressing F11 (requires imagemagick) 23.140 +-screenshot_cmd import -window root /slim.png 23.141 ++#screenshot_cmd mtpaint -s /root/slim-shot.png 23.142 + 23.143 + # welcome message. Available variables: %host, %domain 23.144 + welcome_msg Welcome to %host 23.145 +@@ -63,12 +66,12 @@ 23.146 + # session_msg Session: 23.147 + 23.148 + # shutdown / reboot messages 23.149 +-shutdown_msg The system is halting... 23.150 ++shutdown_msg The system is going down... 23.151 + reboot_msg The system is rebooting... 23.152 + 23.153 + # default user, leave blank or remove this line 23.154 + # for avoid pre-loading the username. 23.155 +-#default_user simone 23.156 ++default_user tux 23.157 + 23.158 + # Focus the password field on start when default_user is set 23.159 + # Set to "yes" to enable this feature 23.160 +@@ -81,10 +84,10 @@ 23.161 + 23.162 + # current theme, use comma separated list to specify a set to 23.163 + # randomly choose from 23.164 +-current_theme default 23.165 ++current_theme slitaz,base 23.166 + 23.167 + # Lock file 23.168 +-lockfile /var/run/slim.lock 23.169 ++lockfile /var/lock/slim.lock 23.170 + 23.171 + # Log file 23.172 + logfile /var/log/slim.log
24.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 24.2 +++ b/slim/stuff/slim-theme Tue May 28 13:24:15 2013 +0000 24.3 @@ -0,0 +1,135 @@ 24.4 +#/bin/sh 24.5 +# slim-theme: manage SLiM themes 24.6 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2013 24.7 + 24.8 +ME=$(basename $0) 24.9 +VERSION=20130525 24.10 +CONF=/etc/slim.conf 24.11 + 24.12 +help() 24.13 +{ 24.14 + cat >&2 << EOT 24.15 +$ME: Manage SLiM themes 24.16 + 24.17 +Usage: $ME OPTION [NAME] 24.18 + 24.19 +Options: 24.20 + -h Display this short help and exit 24.21 + -l List available themes (comma separated) 24.22 + -g Get the name of current theme (note, it can be comma separated list) 24.23 + -s NAME Set NAME theme as current; name of previous theme will be stored 24.24 + (note, you can set comma separated list for random theme behavior) 24.25 + -f NAME Forget about NAME theme and return to previous used theme 24.26 + -V Display information about $ME version 24.27 + -t Translate current theme's strings according to global LANG value 24.28 + (note, its done auto when -s processed) 24.29 + -T LANG Same as above, but use specified language 24.30 + 24.31 +Set option works like stack: you can "set" theme several times (every time you 24.32 +install new SLiM theme). Use "forget" option at every theme uninstall to revert 24.33 +to previous theme, if it was current. 24.34 +EOT 24.35 + exit 0 24.36 +} 24.37 + 24.38 +get_current() awk '/current_theme/ { print $2 }' $CONF 24.39 +get_prev() awk '/previous_theme/ { print $2 }' $CONF 24.40 +set_current() sed -i 's|^current_theme .*$|current_theme '$1'|' $CONF 24.41 +set_prev() 24.42 +{ 24.43 + sed -i '/^previous_theme/d' $CONF 24.44 + [ x$1 != x ] && echo "previous_theme $1" >> $CONF 24.45 +} 24.46 +find_theme() 24.47 +{ 24.48 + cd /usr/share/slim/themes 24.49 + theme=$(ls -Ad $1 2>/dev/null | head -n1) 24.50 + [ x$theme == x ] && echo "Theme \"$1\" not exist!" >&2 && exit 1 24.51 + echo $theme 24.52 +} 24.53 +i18n() 24.54 +{ 24.55 + lang=$1 24.56 + curr=$(get_current) 24.57 + strings=/usr/share/slim/themes/$curr/strings 24.58 + [ ! -e $strings ] && exit 0 24.59 + conf=/usr/share/slim/themes/$curr/slim.theme 24.60 + for str in welcome_msg username_msg password_msg; do 24.61 + # ll_CC.UTF-8@euro ; ll_CC.UTF-8 ; ll_CC ; ll ; en 24.62 + for langtry in $lang ${lang%@*} ${lang%\.*} ${lang%_*} en; do 24.63 + try="$(grep '^'${str:0:1}':'$langtry' ' $strings | cut -d' ' -f2)" 24.64 + [ x"$try" != x ] && break 24.65 + done 24.66 + sed -i 's|^\('$str'\).*$|\1 '"$try"'|' $conf 24.67 + echo "$str[$langtry]=$try" >&2 24.68 + done 24.69 +} 24.70 + 24.71 +set_theme() 24.72 +{ 24.73 + theme=$(find_theme "$1") 24.74 + curr=$(get_current) 24.75 + prev=$(get_prev) 24.76 + if [ x$theme != x$curr ]; then 24.77 + echo "Set theme $theme" >&2 24.78 + [ x$prev != x ] && curr=$curr:$prev 24.79 + set_prev $curr 24.80 + set_current $theme 24.81 + else 24.82 + echo "Already set" >&2 24.83 + fi 24.84 + 24.85 + i18n $LANG 24.86 + exit 0 24.87 +} 24.88 + 24.89 +forget_theme() 24.90 +{ 24.91 + theme=$(find_theme "$1") 24.92 + curr=$(get_current) 24.93 + prev=$(get_prev) 24.94 + echo "Forget theme \"$theme\"" >&2 24.95 + if [ x$theme == x$curr ]; then 24.96 + last=$(echo $prev | cut -d: -f1); [ x$last == x ] && last=base 24.97 + rest=${prev#*:}; [ x$rest == x$prev ] && rest= 24.98 + prev=$rest; set_prev $prev 24.99 + echo "Back to \"$last\" theme" >&2 24.100 + set_current $last 24.101 + fi 24.102 + prev=$(echo $(echo $prev | tr ':' '\n' | sed "/$theme/d") | tr ' ' ':') 24.103 + set_prev $prev 24.104 + 24.105 + exit 0 24.106 +} 24.107 + 24.108 + 24.109 +# parse only first option 24.110 +getopts ":lgs:f:VhtT:" opt 24.111 +case $opt in 24.112 + l) 24.113 + list=$(find /usr/share/slim/themes/*/slim.theme | sort | awk -F/ '{ print $6 }') 24.114 + echo $list | tr ' ' ','; exit 0 ;; 24.115 + g) 24.116 + get_current; exit 0 ;; 24.117 + s) 24.118 + set_theme "$OPTARG" ;; 24.119 + f) 24.120 + forget_theme "$OPTARG" ;; 24.121 + V) 24.122 + echo $VERSION; exit 0 ;; 24.123 + h) 24.124 + help; exit 0 ;; 24.125 + t) 24.126 + i18n $LANG; exit 0 ;; 24.127 + T) 24.128 + i18n $OPTARG; exit 0 ;; 24.129 + *) 24.130 + if [ x$OPTARG == xs -o x$OPTARG == xf -o x$OPTARG == xT ]; then 24.131 + echo "Option \"$OPTARG\" requires an argument." 24.132 + else 24.133 + [ x$OPTARG != x ] && echo "Illegal option \"$OPTARG\"." 24.134 + fi 24.135 + echo "$ME -h for help."; exit 1 ;; 24.136 +esac 24.137 + 24.138 +help
25.1 --- a/slim/stuff/slim.service Mon May 27 22:37:57 2013 +0200 25.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 25.3 @@ -1,11 +0,0 @@ 25.4 -# Systemd service file for Slim on SliTaz 25.5 - 25.6 -[Unit] 25.7 -Description=Slim Login Manager 25.8 -After=systemd-user-sessions.service 25.9 - 25.10 -[Service] 25.11 -ExecStart=/usr/bin/slim 25.12 - 25.13 -[Install] 25.14 -Alias=display-manager.service