wok-current annotate slitaz-boot-scripts/receipt @ rev 17511
Up slitaz-boot-scripts (5.6.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 10 13:37:52 2015 +0100 (2015-01-10) |
parents | f2c53d996c53 |
children | bc475ac573d9 |
rev | line source |
---|---|
pankso@16 | 1 # SliTaz package receipt. |
pankso@16 | 2 |
pankso@16 | 3 PACKAGE="slitaz-boot-scripts" |
pascal@17511 | 4 VERSION="5.6.6" |
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" |
pascal@15021 | 8 LICENSE="GPL3" |
gokhlayeh@8012 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@12224 | 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@12880 | 12 HOST_ARCH="i486 arm" |
pankso@12880 | 13 |
pankso@16424 | 14 CONFIG_FILES=" |
pankso@16424 | 15 /etc/inittab |
pankso@16424 | 16 /etc/init.d/local.sh |
pankso@16424 | 17 /etc/rcS.conf |
pankso@16424 | 18 /etc/network.conf" |
pankso@16 | 19 |
pankso@12161 | 20 # Needed to fetch the keymaps and test the filesystem. |
pascal@17511 | 21 DEPENDS="kbd-base e2fsprogs busybox" |
pankso@12161 | 22 |
pankso@16 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16 | 24 # |
pankso@16 | 25 # This package is all build by genpkg, it provide the boot scripts found |
pankso@16 | 26 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also |
pankso@16 | 27 # the default inittab and the network config file used with network.sh |
pankso@16 | 28 # |
pankso@16 | 29 genpkg_rules() |
pankso@16 | 30 { |
pankso@12977 | 31 mkdir -p $fs/usr/share |
pankso@16 | 32 cp -a $src/etc $fs |
pankso@12977 | 33 cp -a $src/bin $fs/usr |
pascal@11620 | 34 cp -a $src/init $fs |
pankso@396 | 35 cp -a $src/applications $fs/usr/share |
pankso@806 | 36 |
pankso@2787 | 37 chown -R root.root $fs |
pankso@16 | 38 chmod 755 $fs/etc/init.d/*.sh |
pankso@16 | 39 chmod 755 $fs/etc/init.d/rc* |
pascal@11620 | 40 chmod 755 $fs/init |
pankso@16424 | 41 |
pankso@16424 | 42 case "$ARCH" in |
pankso@16424 | 43 arm*) |
pankso@16424 | 44 # Provided by slitaz-arm-configs |
pankso@16424 | 45 rm \ |
pankso@16424 | 46 $fs/etc/rcS.conf \ |
pankso@16424 | 47 $fs/etc/inittab \ |
pankso@16424 | 48 $fs/etc/init.d/rcS \ |
pankso@16425 | 49 $fs/etc/init.d/rc.shutdown \ |
pankso@16424 | 50 $fs/etc/init.d/system.sh ;; |
pankso@16424 | 51 esac |
pankso@16 | 52 } |
pankso@16 | 53 |
pankso@12977 | 54 # Post install commands. |
pankso@16 | 55 # |
pankso@16 | 56 post_install() |
pankso@16 | 57 { |
pankso@16424 | 58 case "$SLITAZ_ARCH" in |
mojo@17437 | 59 i?86) chroot $1/ /usr/bin/rcSconf up ;; |
mojo@17437 | 60 arm) if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then |
mojo@17437 | 61 spk-add slitaz-arm-configs |
mojo@17437 | 62 fi ;; |
pankso@16424 | 63 esac |
pankso@16 | 64 } |