wok view slitaz-boot-scripts/receipt @ 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 2dac55a9dbb9
children 8791d537f797
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="5.0"
5 CATEGORY="base-system"
6 SHORT_DESC="Provide all the initialisation scripts used at boot time."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
11 HOST_ARCH="i486 arm"
13 CONFIG_FILES="/etc/inittab /etc/init.d/local.sh /etc/rcS.conf /etc/network.conf"
15 # Needed to fetch the keymaps and test the filesystem.
16 DEPENDS="kbd-base e2fsprogs"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 #
20 # This package is all build by genpkg, it provide the boot scripts found
21 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also
22 # the default inittab and the network config file used with network.sh
23 #
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share $fs/etc/X11
27 cp -a $src/etc $fs
28 cp -a $src/bin $fs
29 cp -a $src/init $fs
30 cp -a $src/applications $fs/usr/share
32 # Perms
33 chown -R root.root $fs
34 chmod 755 $fs/etc/init.d/*.sh
35 chmod 755 $fs/etc/init.d/rc*
36 chmod 755 $fs/init
37 }
39 # Pre install commands.
40 #
41 pre_install()
42 {
43 local root
44 root=$1
46 # Backup file to restore with post install
47 echo "Creating backups of configs..."
48 cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null
49 cp $root/etc/network.conf $root/etc/network.conf.bak 2>/dev/null
50 cp $root/etc/inittab $root/etc/inittab.bak 2>/dev/null
51 cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak 2>/dev/null
52 }
54 post_install()
55 {
56 local root
57 root=$1
58 echo "Restoring configs backups..."
59 mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null
60 mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
61 mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
62 mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
64 # Fast boot X config from 3.0
65 if ! grep -q ^FAST_BOOT_X $root/etc/rcS.conf; then
66 cat >> $root/etc/rcS.conf << "EOT"
67 # Fast boot into X by setting the system keymap-locale and starting
68 # the Slim login manager earlier at boot time. If fast X is enabled
69 # then dbus, hald and slim can be removed from RUN_DAEMONS.
70 FAST_BOOT_X="no"
72 EOT
73 fi
74 # Fbsplash gui boot
75 if ! grep -q ^FBSPLASH $root/etc/rcS.conf; then
76 cat >> $root/etc/rcS.conf << "EOT"
77 # Graphical boot with fbsplash (To easily configure use: tazfbsplash)
78 FBSPLASH="no"
79 FBSPLASH_THEME="slitaz"
81 EOT
82 fi
84 # No more hwconf.sh and i18n.sh --> system.sh
85 sed -i s'/hwconf.sh/system.sh/' $root/etc/rcS.conf
86 sed -i s'/i18n.sh//' $root/etc/rcS.conf
88 # Remove old desktop file
89 rm -f /usr/share/applications/boot-log.desktop
90 }