wok-current view slitaz-boot-scripts/receipt @ rev 25713

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (2 months ago)
parents 8655cec97854
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="474"
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 cd $src
39 # Thanks Rantanplan, fix mhwaveedit tempdir path
40 patch -p1 < $stuff/fix-mhwaveedit-tempdir-path.patch
42 cp -a $src/etc $fs
43 cp -a $src/usr $fs
44 cp -a $src/init $fs
46 chown -R root.root $fs
47 chmod 755 $fs/etc/init.d/*.sh
48 chmod 755 $fs/etc/init.d/rc*
49 chmod 755 $fs/init
51 case "$ARCH" in
52 arm*)
53 # Provided by slitaz-arm-configs
54 rm \
55 $fs/etc/rcS.conf \
56 $fs/etc/inittab \
57 $fs/etc/init.d/rcS \
58 $fs/etc/init.d/rc.shutdown \
59 $fs/etc/init.d/system.sh ;;
60 esac
61 }
63 # Post install commands.
64 #
65 post_install()
66 {
67 case "$SLITAZ_ARCH" in
68 i?86)
69 echo
70 chroot "$1/" /usr/bin/rcSconf up ;;
71 arm)
72 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then
73 spk-add slitaz-arm-configs
74 fi ;;
75 esac
76 }