wok-current view slitaz-boot-scripts/receipt @ rev 6280
Up: lxappearance to 0.4.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Sep 15 11:57:46 2010 +0000 (2010-09-15) |
parents | 568dbaaaaff7 |
children | 4d4c91d29008 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="3.4.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Provide all the initialisation scripts used at boot time."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 # Using an hg URL because tarball is not avaible at this moment
11 #WGET_URL="http://mirror.slitaz.org/sources/boot-scripts/$TARBALL"
12 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$TARBALL"
13 CONFIG_FILES="/etc/inittab /etc/init.d/local.sh /etc/rcS.conf /etc/network.conf"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 #
17 # This package is all build by genpkg, it provide the boot scripts found
18 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also
19 # the default inittab and the network config file used with network.sh
20 #
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share $fs/bin $fs/etc/X11
24 cp -a $src/etc $fs
25 cp $src/bootlog $fs/bin
26 cp -a $src/applications $fs/usr/share
28 # Perms
29 chown -R root.root $fs
30 chmod 755 $fs/etc/init.d/*.sh
31 chmod 755 $fs/etc/init.d/rc*
32 }
34 # Pre install commands.
35 #
36 pre_install()
37 {
38 local root
39 root=$1
41 # Backup file to restore with post install
42 echo "Creating backups of configs..."
43 cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null
44 cp $root/etc/network.conf $root/etc/network.conf.bak 2>/dev/null
45 cp $root/etc/inittab $root/etc/inittab.bak 2>/dev/null
46 cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak 2>/dev/null
47 }
49 post_install()
50 {
51 local root
52 root=$1
53 echo "Restoring configs backups..."
54 mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null
55 mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
56 mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
57 mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
59 # Fast boot X config from 3.0
60 if ! grep -q ^FAST_BOOT_X $root/etc/rcS.conf; then
61 cat >> $root/etc/rcS.conf << "EOT"
62 # Fast boot into X by setting the system keymap-locale and starting
63 # the Slim login manager earlier at boot time. If fast X is enabled
64 # then dbus, hald and slim can be removed from RUN_DAEMONS.
65 FAST_BOOT_X="no"
67 EOT
68 fi
69 # Remove old desktop file
70 rm -f /usr/share/applications/boot-log.desktop
71 }