wok-next view slitaz-boot-scripts/receipt @ rev 269
Back to e2fsprogs 1.39 (ext3 fs bug with GRUB)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 25 13:35:27 2008 +0100 (2008-02-25) |
parents | d35736b2e79e |
children | 2f567f737feb |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="1.5"
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://download.tuxfamily.org/slitaz/sources/boot-scripts/$TARBALL"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 #
14 # This package is all build by genpkg, it provide the boot scripts found
15 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also
16 # the default inittab and the network config file used with network.sh
17 #
18 genpkg_rules()
19 {
20 cp -a $src/etc $fs
22 # Perms
23 chown -R root.root $fs/etc/init.d
24 chmod 755 $fs/etc/init.d/*.sh
25 chmod 755 $fs/etc/init.d/rc*
26 }
28 # Pre install commands.
29 #
30 pre_install()
31 {
32 local root
33 root=$1
35 # Remove motd to be rebuils by /etc/init.d/i18n.sh in
36 # the right language.
37 rm -f $root/etc/motd
39 # Backup file to restore with post install
40 echo "Creating backups of configs..."
41 cp $root/etc/rcS.conf $root/etc/rcS.conf.bak 2>/dev/null
42 cp $root/etc/network.conf $root/etc/network.conf.bak 2>/dev/null
43 cp $root/etc/inittab $root/etc/inittab.bak 2>/dev/null
44 cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak 2>/dev/null
45 }
47 post_install()
48 {
49 local root
50 root=$1
51 echo "Restoring configs backups..."
52 mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null
53 mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
54 mv -f $root/etc/inittab.bak $root/etc/inittab 2>/dev/null
55 mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh 2>/dev/null
56 }