wok-current annotate slitaz-boot-scripts/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | 895d209fd1dd |
children | 2ac466d9d0a7 |
rev | line source |
---|---|
pankso@16 | 1 # SliTaz package receipt. |
pankso@16 | 2 |
pankso@16 | 3 PACKAGE="slitaz-boot-scripts" |
pascal@24053 | 4 VERSION="471" |
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=" |
al@17832 | 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@19639 | 21 DEPENDS="kbd-base e2fsprogs busybox slitaz-tools" |
pankso@12161 | 22 |
pascal@24069 | 23 current_version() |
pascal@24069 | 24 { |
pascal@24069 | 25 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \ |
pascal@24069 | 26 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \ |
pascal@24069 | 27 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 28 } |
pascal@24069 | 29 |
pankso@16 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16 | 31 # |
pankso@16 | 32 # This package is all build by genpkg, it provide the boot scripts found |
pankso@16 | 33 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also |
pankso@16 | 34 # the default inittab and the network config file used with network.sh |
pankso@16 | 35 # |
pankso@16 | 36 genpkg_rules() |
pankso@16 | 37 { |
pankso@16 | 38 cp -a $src/etc $fs |
al@17832 | 39 cp -a $src/usr $fs |
pascal@11620 | 40 cp -a $src/init $fs |
pankso@806 | 41 |
pankso@2787 | 42 chown -R root.root $fs |
pankso@16 | 43 chmod 755 $fs/etc/init.d/*.sh |
pankso@16 | 44 chmod 755 $fs/etc/init.d/rc* |
pascal@11620 | 45 chmod 755 $fs/init |
al@17832 | 46 |
pankso@16424 | 47 case "$ARCH" in |
pankso@16424 | 48 arm*) |
pankso@16424 | 49 # Provided by slitaz-arm-configs |
pankso@16424 | 50 rm \ |
pankso@16424 | 51 $fs/etc/rcS.conf \ |
pankso@16424 | 52 $fs/etc/inittab \ |
pankso@16424 | 53 $fs/etc/init.d/rcS \ |
pankso@16425 | 54 $fs/etc/init.d/rc.shutdown \ |
pankso@16424 | 55 $fs/etc/init.d/system.sh ;; |
pankso@16424 | 56 esac |
pankso@16 | 57 } |
pankso@16 | 58 |
pankso@12977 | 59 # Post install commands. |
pankso@16 | 60 # |
pankso@16 | 61 post_install() |
pankso@16 | 62 { |
pankso@16424 | 63 case "$SLITAZ_ARCH" in |
al@18545 | 64 i?86) |
al@18640 | 65 echo |
pascal@18730 | 66 chroot "$1/" /usr/bin/rcSconf up ;; |
al@18545 | 67 arm) |
al@18545 | 68 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then |
al@18545 | 69 spk-add slitaz-arm-configs |
al@18545 | 70 fi ;; |
pankso@16424 | 71 esac |
pankso@16 | 72 } |