wok-6.x rev 12880

Remove slitaz-fbsplash (broken)
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 25 19:46:33 2012 +0200 (2012-05-25)
parents 614c08d23ef5
children 4d4b18813d25
files slitaz-boot-scripts/receipt slitaz-fbsplash/receipt slitaz-fbsplash/stuff/README slitaz-fbsplash/stuff/applications/tazfbsplash.desktop slitaz-fbsplash/stuff/fbsplash.cfg slitaz-fbsplash/stuff/fbsplash.ppm.gz slitaz-fbsplash/stuff/tazfbsplash
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Fri May 25 19:40:12 2012 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Fri May 25 19:46:33 2012 +0200
     1.3 @@ -8,6 +8,8 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://www.slitaz.org/"
     1.6  WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
     1.7 +HOST_ARCH="i486 arm"
     1.8 +
     1.9  CONFIG_FILES="/etc/inittab /etc/init.d/local.sh /etc/rcS.conf /etc/network.conf"
    1.10  
    1.11  # Needed to fetch the keymaps and test the filesystem.
    1.12 @@ -82,7 +84,7 @@
    1.13  	# No more hwconf.sh and i18n.sh --> system.sh
    1.14  	sed -i s'/hwconf.sh/system.sh/' $root/etc/rcS.conf
    1.15  	sed -i s'/i18n.sh//' $root/etc/rcS.conf
    1.16 -	
    1.17 +
    1.18  	# Remove old desktop file
    1.19  	rm -f /usr/share/applications/boot-log.desktop
    1.20  }
     2.1 --- a/slitaz-fbsplash/receipt	Fri May 25 19:40:12 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,42 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="slitaz-fbsplash"
     2.7 -VERSION="1.1"
     2.8 -CATEGORY="base-system"
     2.9 -SHORT_DESC="SliTaz theme and config for Busybox fbsplash (graphical boot)"
    2.10 -MAINTAINER="pankso@slitaz.org"
    2.11 -DEPENDS="busybox slitaz-boot-scripts"
    2.12 -WEB_SITE="http://www.slitaz.org/"
    2.13 -
    2.14 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.15 -genpkg_rules()
    2.16 -{
    2.17 -	mkdir -p $fs/usr/bin $fs/etc/fbsplash/slitaz
    2.18 -	cp $stuff/tazfbsplash $fs/usr/bin
    2.19 -	cp -a $stuff/fbsplash.cfg $fs/etc/fbsplash/slitaz
    2.20 -	cp -a $stuff/fbsplash.ppm.gz $fs/etc/fbsplash/slitaz
    2.21 -	mkfifo $fs/etc/fbsplash/fifo
    2.22 -	gzip -d $fs/etc/fbsplash/slitaz/fbsplash.ppm.gz
    2.23 -}
    2.24 -
    2.25 -post_install()
    2.26 -{
    2.27 -	[ ! `grep "rcS > /dev/null" $1/etc/inittab` ] && \
    2.28 -		sed -i s'/rcS/rcS > \/dev\/null/' $1/etc/inittab
    2.29 -	sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' $1/etc/rcS.conf
    2.30 -	# Config may not yet exist.
    2.31 -	if ! grep -q ^FBSPLASH $1/etc/rcS.conf; then
    2.32 -		cat >> $1/etc/rcS.conf << EOT
    2.33 -
    2.34 -# Graphical boot with fbsplash (To configure please use: tazfbsplash)
    2.35 -FBSPLASH="yes"
    2.36 -FBSPLASH_THEME="slitaz"
    2.37 -EOT
    2.38 -	fi
    2.39 -}
    2.40 -
    2.41 -post_remove()
    2.42 -{
    2.43 -	sed -i s'/rcS > \/dev\/null/rcS/' $1/etc/inittab
    2.44 -	sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' $1/etc/rcS.conf
    2.45 -}
     3.1 --- a/slitaz-fbsplash/stuff/README	Fri May 25 19:40:12 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,32 +0,0 @@
     3.4 -README for Tazfbsplash
     3.5 -================================================================================
     3.6 -
     3.7 -Basic information
     3.8 ------------------
     3.9 -
    3.10 - * Use kernel options 'quiet' and 'vga=xxx' at boot time
    3.11 - * The slitaz theme is for 1024x788 resolution (vga=791)
    3.12 - * Enable fbsplash in /etc/rcS.conf
    3.13 - * Tweak /etc/inittab to hide text messages
    3.14 - 
    3.15 -Testing, enabling or disabling fbsplash and managing themes can be done
    3.16 -with the tazfbsplash utility. Enjoy :-)
    3.17 -
    3.18 -Simple code example
    3.19 --------------------
    3.20 -
    3.21 - fbsplash -c 	
    3.22 -	-s /etc/fbsplash/slitaz/slitaz-fbsplash.ppm \
    3.23 -	-i /etc/fbsplash/slitaz/fbsplash.cfg \
    3.24 -	-f /etc/fbsplash/fifo &
    3.25 - 
    3.26 - echo 25 > /etc/fbsplash/fifo
    3.27 - sleep 1
    3.28 - echo 50 > /etc/fbsplash/fifo
    3.29 - sleep 1
    3.30 - echo 75 > /etc/fbsplash/fifo
    3.31 - sleep 1
    3.32 - echo "exit" > /boot/fbsplash/fifo
    3.33 - 
    3.34 - ===============================================================================
    3.35 - 
     4.1 --- a/slitaz-fbsplash/stuff/applications/tazfbsplash.desktop	Fri May 25 19:40:12 2012 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,8 +0,0 @@
     4.4 -[Desktop Entry]
     4.5 -Encoding=UTF-8
     4.6 -Name=Graphical Boot
     4.7 -Exec=tazfbsplash box
     4.8 -Icon=preferences-desktop-wallpaper
     4.9 -Terminal=false
    4.10 -Type=Application
    4.11 -Categories=Settings;DesktopSettings;
     5.1 --- a/slitaz-fbsplash/stuff/fbsplash.cfg	Fri May 25 19:40:12 2012 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,9 +0,0 @@
     5.4 -# progress bar position
     5.5 -BAR_LEFT=740
     5.6 -BAR_TOP=292
     5.7 -BAR_WIDTH=244
     5.8 -BAR_HEIGHT=10
     5.9 -# progress bar color
    5.10 -BAR_R=250
    5.11 -BAR_G=196
    5.12 -BAR_B=17
     6.1 Binary file slitaz-fbsplash/stuff/fbsplash.ppm.gz has changed
     7.1 --- a/slitaz-fbsplash/stuff/tazfbsplash	Fri May 25 19:40:12 2012 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,173 +0,0 @@
     7.4 -#!/bin/sh
     7.5 -#
     7.6 -# Tazfbsplash - Tool to manage and configure Busybox fbsplash on SliTaz
     7.7 -# (C) 2011 SliTaz - GNU General Public License.
     7.8 -#
     7.9 -# TODO:
    7.10 -#	box - on/off with curent status 
    7.11 -#	box - change/install/remove themes
    7.12 -#   check GRUB settings: quiet vga=*
    7.13 -#
    7.14 -
    7.15 -. /etc/rcS.conf
    7.16 -
    7.17 -# Functions
    7.18 -
    7.19 -. /usr/lib/slitaz/libtaz
    7.20 -source_lib commons
    7.21 -
    7.22 -usage() {
    7.23 -	echo -e "\nSliTaz graphical boot configuration tool\n
    7.24 -\033[1mUsage:\033[0m `basename $0` [command] [theme]
    7.25 -\033[1mCommands: \033[0m
    7.26 -  on             Enable graphical boot.
    7.27 -  off            Disable graphical boot.
    7.28 -  list-themes    List all installed themes.
    7.29 -  change-theme   Change current theme.
    7.30 -  pack-theme     Pack a system theme in a tar archive.
    7.31 -  install-theme  Install a fbsplash-theme-* archive.
    7.32 -  test           Test a theme configuration (Must be run in text mode).
    7.33 -  box            Graphical configuration box.\n"
    7.34 -}
    7.35 -
    7.36 -separator() {
    7.37 -	echo "================================================================================"
    7.38 -}
    7.39 -
    7.40 -change_theme()
    7.41 -{
    7.42 -	sed -i s~FBSPLASH_THEME=.*~FBSPLASH_THEME=\"$new_theme\"~ /etc/rcS.conf
    7.43 -}
    7.44 -
    7.45 -# GUI box (not yet ready :-)
    7.46 -box() {
    7.47 -	export MAIN_DIALOG='
    7.48 -	<window title="Tazfbsplash Box" icon-name="preferences-desktop-wallpaper">
    7.49 -	<vbox>
    7.50 -		<text use-markup="true">
    7.51 -			<label>"
    7.52 -<b>SliTaz Fbsplash Box</b>"</label>
    7.53 -		</text>
    7.54 -		<text wrap="true" width-chars="50" use-markup="true">
    7.55 -			<label>"SliTaz graphical boot manager
    7.56 -			"</label>
    7.57 -		</text>
    7.58 -		<hbox>
    7.59 -			<text use-markup="true">
    7.60 -				<label>"<b>Theme:</b>"</label>
    7.61 -			</text>
    7.62 -			<entry>
    7.63 -				<default>'$FBSPLASH_THEME'</default>
    7.64 -				<variable>NEW_THEME</variable>
    7.65 -			</entry>
    7.66 -			<button>
    7.67 -				<input file icon="text-editor"></input>
    7.68 -				<action>editor /etc/fbsplash/$NEW_THEME/fbsplash.cfg</action>
    7.69 -			</button>
    7.70 -			<button>
    7.71 -				<input file icon="forward"></input>
    7.72 -				<action>tazfbsplash -ct $NEW_THEME</action>
    7.73 -			</button>
    7.74 -		</hbox>
    7.75 -		<tree>
    7.76 -			<width>320</width><height>120</height>
    7.77 -			<variable>EDIT_THEME</variable>
    7.78 -			<label>Themes list (double-click to edit config)</label>
    7.79 -			<input>tazfbsplash -lt --box</input>
    7.80 -			<action>editor /etc/fbsplash/$EDIT_THEME/fbsplash.cfg</action>
    7.81 -		</tree>
    7.82 -		<hbox>
    7.83 -			<button>
    7.84 -				<input file icon="exit"></input>
    7.85 -				<action type="exit">exit</action>
    7.86 -			</button>
    7.87 -		</hbox>
    7.88 -	</vbox>
    7.89 -	</window>'
    7.90 -	gtkdialog --center --program=MAIN_DIALOG 
    7.91 -}
    7.92 -
    7.93 -# Commands
    7.94 -
    7.95 -case "$1" in
    7.96 -	on)
    7.97 -		# Enable graphical boot.
    7.98 -		echo -en "\nEnabling SliTaz graphical boot..."
    7.99 -		if [ ! `grep "rcS > /dev/null" /etc/inittab` ]; then
   7.100 -			sed -i s'/rcS/rcS > \/dev\/null/' /etc/inittab
   7.101 -		fi
   7.102 -		sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' /etc/rcS.conf
   7.103 -		status && echo "" ;;
   7.104 -	off)
   7.105 -		# Disable graphical boot.
   7.106 -		echo -en "\nDisabling SliTaz graphical boot..."
   7.107 -		sed -i s'/rcS > \/dev\/null/rcS/' /etc/inittab
   7.108 -		sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' /etc/rcS.conf
   7.109 -		status && echo "" ;;
   7.110 -	list-themes|-lt)
   7.111 -		# List all themes
   7.112 -		if [ "$2" != "--box" ]; then
   7.113 -			echo -en "\n\033[1mBoot splash themes\033[0m"
   7.114 -			separator
   7.115 -		fi
   7.116 -		cd /etc/fbsplash
   7.117 -		for i in *
   7.118 -		do
   7.119 -			[ -f "/etc/fbsplash/$i/fbsplash.cfg" ] && echo $i
   7.120 -		done
   7.121 -		[ "$2" != "--box" ] && echo "" ;;
   7.122 -	change-theme|-ct)
   7.123 -		new_theme="$2"
   7.124 -		[ -z "$new_theme" ] && exit 0
   7.125 -		[ ! -d "/etc/fbsplash/$new_theme" ] && exit 0
   7.126 -		echo -n "Activing fbsplash theme: $new_theme"
   7.127 -		change_theme && status ;;
   7.128 -	pack-theme|-pt)
   7.129 -		# Pack a theme into .tar.gz
   7.130 -		theme="$2"
   7.131 -		tmp=slitaz-fbsplash-$theme
   7.132 -		if [ ! -d "/etc/fbsplash/$theme" ]; then
   7.133 -			echo -e "\nNo theme found in: /etc/fbsplash/$theme\n"
   7.134 -			exit 0
   7.135 -		fi
   7.136 -		echo -n "Creating fbsplash theme archive for: $theme"
   7.137 -		mkdir -p $tmp
   7.138 -		cp -r /etc/fbsplash/$theme $tmp
   7.139 -		cat > $tmp/README << EOT
   7.140 -SliTaz graphical boot theme
   7.141 -================================================================================
   7.142 -
   7.143 -This is a Busybox fbsplash theme created on and for SliTaz GNU/Linux. To use it
   7.144 -you can copy files manually to /etc/fbsplash or use 'tazfbsplash install-theme'
   7.145 -EOT
   7.146 -		busybox tar czf slitaz-fbsplash-$theme.tar.gz $tmp
   7.147 -		rm -rf $tmp && status ;;
   7.148 -	install-theme|-it)
   7.149 -		check_root
   7.150 -		file=$2
   7.151 -		if [ ! -f "$file" ]; then
   7.152 -			echo -e "\nNo theme archive: $file\n"
   7.153 -			exit 0
   7.154 -		fi
   7.155 -		echo -n "Installing fbsplash theme..."
   7.156 -		tar xzf $file -C /tmp
   7.157 -		rm /tmp/slitaz-fbsplash-*/README
   7.158 -		cp -r /tmp/slitaz-fbsplash-*/* /etc/fbsplash
   7.159 -		status ;;
   7.160 -	test|-t)
   7.161 -		# Test suite for fbsplash on SliTaz (must be run in text mode).
   7.162 -		fbsplash -c \
   7.163 -			-s /etc/fbsplash/$FBSPLASH_THEME/fbsplash.ppm \
   7.164 -			-i /etc/fbsplash/$FBSPLASH_THEME/fbsplash.cfg \
   7.165 -			-f /etc/fbsplash/fifo &
   7.166 -		for p in 0 10 20 30 40 50 60 70 80 90 100
   7.167 -		do
   7.168 -			echo "$p" > /etc/fbsplash/fifo && sleep 1
   7.169 -		done > /dev/null
   7.170 -		echo "exit" > /etc/fbsplash/fifo ;;
   7.171 -	box|-b)
   7.172 -		box ;;
   7.173 -	*)
   7.174 -		usage ;;
   7.175 -esac
   7.176 -exit 0