wok view slitaz-boot-scripts/receipt @ rev 25682

Up libqcow (20240308)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 24 18:25:46 2024 +0000 (4 days ago)
parents 8655cec97854
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="475"
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 WEB_SITE="http://www.slitaz.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
13 HOST_ARCH="i486 arm"
15 CONFIG_FILES="
16 /etc/inittab
17 /etc/init.d/local.sh
18 /etc/rcS.conf
19 /etc/network.conf"
21 # Needed to fetch the keymaps and test the filesystem.
22 DEPENDS="busybox e2fsprogs kbd-base slitaz-tools"
24 current_version()
25 {
26 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
27 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
28 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 #
33 # This package is all build by genpkg, it provides the boot scripts to be found
34 # in /etc/init.d with the main configuration file: /etc/rcS.conf. It provides also
35 # the default inittab and the network configuration file used with network.sh
36 #
37 genpkg_rules()
38 {
39 cp -a $src/etc $fs
40 cp -a $src/usr $fs
41 cp -a $src/init $fs
43 chown -R root.root $fs
44 chmod 755 $fs/etc/init.d/*.sh
45 chmod 755 $fs/etc/init.d/rc*
46 chmod 755 $fs/init
48 case "$ARCH" in
49 arm*)
50 # Provided by slitaz-arm-configs
51 rm \
52 $fs/etc/rcS.conf \
53 $fs/etc/inittab \
54 $fs/etc/init.d/rcS \
55 $fs/etc/init.d/rc.shutdown \
56 $fs/etc/init.d/system.sh ;;
57 esac
58 }
60 # Post install commands.
61 #
62 post_install()
63 {
64 case "$SLITAZ_ARCH" in
65 (i?86)
66 echo
67 chroot "$1/" /usr/bin/rcSconf up
68 ;;
69 (arm)
70 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]
71 then
72 spk-add slitaz-arm-configs
73 fi
74 ;;
75 esac
76 }