wok-6.x diff slitaz-fbsplash/receipt @ rev 9179
Up: freeciv to 2.2.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Mar 08 20:38:59 2011 +0000 (2011-03-08) |
parents | |
children | 0890cd592d36 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slitaz-fbsplash/receipt Tue Mar 08 20:38:59 2011 +0000 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="slitaz-fbsplash" 1.7 +VERSION="1.0" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="SliTaz theme and config for Busybox fbsplash (graphical boot)" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="busybox slitaz-boot-scripts" 1.12 +WEB_SITE="http://www.slitaz.org/" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/bin $fs/etc/fbsplash/slitaz 1.18 + cp $stuff/tazfbsplash $fs/usr/bin 1.19 + cp -a $stuff/fbsplash.cfg $fs/etc/fbsplash/slitaz 1.20 + cp -a $stuff/fbsplash.ppm $fs/etc/fbsplash/slitaz 1.21 + mkfifo $fs/etc/fbsplash/fifo 1.22 +} 1.23 + 1.24 +post_install() 1.25 +{ 1.26 + [ ! `grep "rcS > /dev/null" $1/etc/inittab` ] && \ 1.27 + sed -i s'/rcS/rcS > \/dev\/null/' $1/etc/inittab 1.28 + sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' $1/etc/rcS.conf 1.29 + # Config may not yet exist. 1.30 + if ! grep -q ^FBSPLASH $1/etc/rcS.conf; then 1.31 + cat >> $1/etc/rcS.conf << EOT 1.32 + 1.33 +# Graphical boot with fbsplash (To configure please use: tazfbsplash) 1.34 +FBSPLASH="yes" 1.35 +FBSPLASH_THEME="slitaz" 1.36 +EOT 1.37 + fi 1.38 +} 1.39 + 1.40 +post_remove() 1.41 +{ 1.42 + sed -i s'/rcS > \/dev\/null/rcS/' $1/etc/inittab 1.43 + sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' $1/etc/rcS.conf 1.44 +}