wok-current view slitaz-fbsplash/receipt @ rev 9117

scim-tables-additional: remove spurrious part of genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 13:01:38 2011 +0100 (2011-03-05)
parents
children 0890cd592d36
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-fbsplash"
4 VERSION="1.0"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz theme and config for Busybox fbsplash (graphical boot)"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="busybox slitaz-boot-scripts"
9 WEB_SITE="http://www.slitaz.org/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/usr/bin $fs/etc/fbsplash/slitaz
15 cp $stuff/tazfbsplash $fs/usr/bin
16 cp -a $stuff/fbsplash.cfg $fs/etc/fbsplash/slitaz
17 cp -a $stuff/fbsplash.ppm $fs/etc/fbsplash/slitaz
18 mkfifo $fs/etc/fbsplash/fifo
19 }
21 post_install()
22 {
23 [ ! `grep "rcS > /dev/null" $1/etc/inittab` ] && \
24 sed -i s'/rcS/rcS > \/dev\/null/' $1/etc/inittab
25 sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' $1/etc/rcS.conf
26 # Config may not yet exist.
27 if ! grep -q ^FBSPLASH $1/etc/rcS.conf; then
28 cat >> $1/etc/rcS.conf << EOT
30 # Graphical boot with fbsplash (To configure please use: tazfbsplash)
31 FBSPLASH="yes"
32 FBSPLASH_THEME="slitaz"
33 EOT
34 fi
35 }
37 post_remove()
38 {
39 sed -i s'/rcS > \/dev\/null/rcS/' $1/etc/inittab
40 sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' $1/etc/rcS.conf
41 }