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