wok-next annotate slitaz-boot-scripts/receipt @ rev 19881
Up: compton (without mesa and drm), cookutils (976), slitaz-base-files (333, without backup-restore /etc), slitaz-boot-scripts (444), slitaz-tools-boxes (1024), slitaz-tools (1024), tazdrop (1024), tazinst (91, merged with tazinst-gui), tazlito (465), tazpkg (951).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 06 01:28:11 2017 +0300 (2017-10-06) |
parents | 869d235d0e00 |
children | c4e53a39395a |
rev | line source |
---|---|
pankso@16 | 1 # SliTaz package receipt. |
pankso@16 | 2 |
pankso@16 | 3 PACKAGE="slitaz-boot-scripts" |
al@19881 | 4 VERSION="444" |
pankso@178 | 5 CATEGORY="base-system" |
al@19863 | 6 SHORT_DESC="Provide all the initialisation scripts used at boot time" |
pankso@16 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL3" |
pankso@16 | 9 WEB_SITE="http://www.slitaz.org/" |
pankso@12880 | 10 HOST_ARCH="i486 arm" |
pankso@12880 | 11 |
al@19588 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19588 | 13 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" |
al@19588 | 14 |
pankso@16424 | 15 CONFIG_FILES=" |
al@17832 | 16 /etc/inittab |
pankso@16424 | 17 /etc/init.d/local.sh |
pankso@16424 | 18 /etc/rcS.conf |
pankso@16424 | 19 /etc/network.conf" |
pankso@16 | 20 |
pankso@12161 | 21 # Needed to fetch the keymaps and test the filesystem. |
al@19588 | 22 DEPENDS="kbd-base e2fsprogs busybox slitaz-tools" |
pankso@12161 | 23 |
pankso@16 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16 | 25 # |
pankso@16 | 26 # This package is all build by genpkg, it provide the boot scripts found |
al@19588 | 27 # in /etc/init.d with the main config file /etc/rcS.conf. It provide also |
pankso@16 | 28 # the default inittab and the network config file used with network.sh |
pankso@16 | 29 # |
pankso@16 | 30 genpkg_rules() |
pankso@16 | 31 { |
pankso@16 | 32 cp -a $src/etc $fs |
al@17832 | 33 cp -a $src/usr $fs |
pascal@11620 | 34 cp -a $src/init $fs |
pankso@806 | 35 |
pankso@2787 | 36 chown -R root.root $fs |
pankso@16 | 37 chmod 755 $fs/etc/init.d/*.sh |
pankso@16 | 38 chmod 755 $fs/etc/init.d/rc* |
pascal@11620 | 39 chmod 755 $fs/init |
al@17832 | 40 |
pankso@16424 | 41 case "$ARCH" in |
pankso@16424 | 42 arm*) |
pankso@16424 | 43 # Provided by slitaz-arm-configs |
pankso@16424 | 44 rm \ |
pankso@16424 | 45 $fs/etc/rcS.conf \ |
pankso@16424 | 46 $fs/etc/inittab \ |
pankso@16424 | 47 $fs/etc/init.d/rcS \ |
pankso@16425 | 48 $fs/etc/init.d/rc.shutdown \ |
al@19588 | 49 $fs/etc/init.d/system.sh |
al@19588 | 50 ;; |
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 |
al@18545 | 59 i?86) |
al@18640 | 60 echo |
pascal@18730 | 61 chroot "$1/" /usr/bin/rcSconf up ;; |
al@18545 | 62 arm) |
al@18545 | 63 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then |
al@18545 | 64 spk-add slitaz-arm-configs |
al@18545 | 65 fi ;; |
pankso@16424 | 66 esac |
pankso@16 | 67 } |