wok view slitaz-fbsplash/receipt @ rev 11631
gnutls*: improve receipt
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Wed Feb 01 00:27:43 2012 +0100 (2012-02-01) |
parents | f7d3811b21ef |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-fbsplash"
4 VERSION="1.1"
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.gz $fs/etc/fbsplash/slitaz
18 mkfifo $fs/etc/fbsplash/fifo
19 gzip -d $fs/etc/fbsplash/slitaz/fbsplash.ppm.gz
20 }
22 post_install()
23 {
24 [ ! `grep "rcS > /dev/null" $1/etc/inittab` ] && \
25 sed -i s'/rcS/rcS > \/dev\/null/' $1/etc/inittab
26 sed -i s'/FBSPLASH="no"/FBSPLASH="yes"/' $1/etc/rcS.conf
27 # Config may not yet exist.
28 if ! grep -q ^FBSPLASH $1/etc/rcS.conf; then
29 cat >> $1/etc/rcS.conf << EOT
31 # Graphical boot with fbsplash (To configure please use: tazfbsplash)
32 FBSPLASH="yes"
33 FBSPLASH_THEME="slitaz"
34 EOT
35 fi
36 }
38 post_remove()
39 {
40 sed -i s'/rcS > \/dev\/null/rcS/' $1/etc/inittab
41 sed -i s'/FBSPLASH="yes"/FBSPLASH="no"/' $1/etc/rcS.conf
42 }