wok view slitaz-boot-scripts/receipt @ rev 24307
slitaz-boot-scripts: update
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Jan 17 12:42:24 2022 -0500 (2022-01-17) |
parents | 2ac466d9d0a7 |
children | 8655cec97854 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="473"
5 CATEGORY="base-system"
6 SHORT_DESC="Provide all the initialisation scripts used at boot time."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
12 HOST_ARCH="i486 arm"
14 CONFIG_FILES="
15 /etc/inittab
16 /etc/init.d/local.sh
17 /etc/rcS.conf
18 /etc/network.conf"
20 # Needed to fetch the keymaps and test the filesystem.
21 DEPENDS="kbd-base e2fsprogs busybox slitaz-tools"
23 current_version()
24 {
25 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
26 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
27 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 #
32 # This package is all build by genpkg, it provide the boot scripts found
33 # in /etc/init.d with the main config file : /etc/rcS.conf. It provide also
34 # the default inittab and the network config file used with network.sh
35 #
36 genpkg_rules()
37 {
38 cp -a $src/etc $fs
39 cp -a $src/usr $fs
40 cp -a $src/init $fs
42 chown -R root.root $fs
43 chmod 755 $fs/etc/init.d/*.sh
44 chmod 755 $fs/etc/init.d/rc*
45 chmod 755 $fs/init
47 case "$ARCH" in
48 arm*)
49 # Provided by slitaz-arm-configs
50 rm \
51 $fs/etc/rcS.conf \
52 $fs/etc/inittab \
53 $fs/etc/init.d/rcS \
54 $fs/etc/init.d/rc.shutdown \
55 $fs/etc/init.d/system.sh ;;
56 esac
57 }
59 # Post install commands.
60 #
61 post_install()
62 {
63 case "$SLITAZ_ARCH" in
64 i?86)
65 echo
66 chroot "$1/" /usr/bin/rcSconf up ;;
67 arm)
68 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then
69 spk-add slitaz-arm-configs
70 fi ;;
71 esac
72 }