wok-6.x view slitaz-boot-scripts/receipt @ rev 30

Add : libIDL, libSDL, libtool, linux-headers
author Christophe Lincoln <pankso@slitaz.org>
date Tue Dec 18 14:01:32 2007 +0100 (2007-12-18)
parents
children fa1dad350eb2
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="1.2"
5 CATEGORY="base-files"
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 for upgrade from 1.2 to 1.3.
29 #
30 pre_install()
31 {
32 local root
33 root=$1
34 echo "Checking for version compatibility..."
35 if [ -d "$root/etc/rc.d" ]; then
36 rm -rf $root/etc/rc.d
37 rm -rf $root/etc/rc.scripts
38 fi
39 # Remove motd to be rebuils by /etc/init.d/i18n.sh in
40 # the right language.
41 rm -f $root/etc/motd
43 # Backup file to restore with post install
44 echo -n "Creating backups of configs..."
45 cp $root/etc/rcS.conf $root/etc/rcS.conf.bak
46 cp $root/etc/network.conf $root/etc/network.conf.bak
47 cp $root/etc/inittab $root/etc/inittab.bak
48 cp $root/etc/init.d/local.sh $root/etc/init.d/local.sh.bak
49 status
50 }
52 post_install()
53 {
54 local root
55 root=$1
56 echo -n "Restoring configs backups..."
57 mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf
58 mv -f $root/etc/network.conf.bak $root/etc/network.conf
59 mv -f $root/etc/inittab.bak $root/etc/inittab
60 mv -f $root/etc/init.d/local.sh.bak $root/etc/init.d/local.sh
61 status
62 }