wok annotate slitaz-fbsplash/receipt @ rev 11242

gcompris-*: Update all gcompris wanted receipts to 11.09.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 06 15:53:21 2011 +0000 (2011-11-06)
parents f7d3811b21ef
children
rev   line source
pankso@8844 1 # SliTaz package receipt.
pankso@8844 2
pankso@8844 3 PACKAGE="slitaz-fbsplash"
pankso@9333 4 VERSION="1.1"
pankso@8844 5 CATEGORY="base-system"
pankso@8844 6 SHORT_DESC="SliTaz theme and config for Busybox fbsplash (graphical boot)"
pankso@8844 7 MAINTAINER="pankso@slitaz.org"
pankso@8844 8 DEPENDS="busybox slitaz-boot-scripts"
pankso@8844 9 WEB_SITE="http://www.slitaz.org/"
pankso@8844 10
pankso@8844 11 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8844 12 genpkg_rules()
pankso@8844 13 {
pankso@8844 14 mkdir -p $fs/usr/bin $fs/etc/fbsplash/slitaz
pankso@8844 15 cp $stuff/tazfbsplash $fs/usr/bin
pankso@8844 16 cp -a $stuff/fbsplash.cfg $fs/etc/fbsplash/slitaz
pankso@9333 17 cp -a $stuff/fbsplash.ppm.gz $fs/etc/fbsplash/slitaz
pankso@8844 18 mkfifo $fs/etc/fbsplash/fifo
pankso@9333 19 gzip -d $fs/etc/fbsplash/slitaz/fbsplash.ppm.gz
pankso@8844 20 }
pankso@8844 21
pankso@8844 22 post_install()
pankso@8844 23 {
pankso@8844 24 [ ! `grep "rcS > /dev/null" $1/etc/inittab` ] && \
pankso@8844 25 sed -i s'/rcS/rcS > \/dev\/null/' $1/etc/inittab
pankso@8844 26 sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' $1/etc/rcS.conf
pankso@8844 27 # Config may not yet exist.
pankso@8844 28 if ! grep -q ^FBSPLASH $1/etc/rcS.conf; then
pankso@8844 29 cat >> $1/etc/rcS.conf << EOT
pankso@8844 30
pankso@8844 31 # Graphical boot with fbsplash (To configure please use: tazfbsplash)
pankso@8844 32 FBSPLASH="yes"
pankso@8844 33 FBSPLASH_THEME="slitaz"
pankso@8844 34 EOT
pankso@8844 35 fi
pankso@8844 36 }
pankso@8844 37
pankso@8844 38 post_remove()
pankso@8844 39 {
pankso@8844 40 sed -i s'/rcS > \/dev\/null/rcS/' $1/etc/inittab
pankso@8844 41 sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' $1/etc/rcS.conf
pankso@8844 42 }