wok-next view slitaz-boot-scripts/receipt @ rev 20635

Up tazpkg (965), fix openconnect
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 27 13:59:14 2018 +0300 (2018-04-27)
parents ec4ebc01cb25
children cd7906120828
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-boot-scripts"
4 VERSION="444"
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.bz2"
12 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
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 # Rules to gen a SliTaz package suitable for Tazpkg.
24 #
25 # This package is all build by genpkg, it provide the boot scripts found
26 # in /etc/init.d with the main config file /etc/rcS.conf. It provide also
27 # the default inittab and the network config file used with network.sh
28 #
29 genpkg_rules()
30 {
31 cp -a $src/etc $fs
32 cp -a $src/usr $fs
33 cp -a $src/init $fs
35 chown -R root.root $fs
36 chmod 755 $fs/etc/init.d/*.sh
37 chmod 755 $fs/etc/init.d/rc*
38 chmod 755 $fs/init
40 case "$ARCH" in
41 arm*)
42 # Provided by slitaz-arm-configs
43 rm \
44 $fs/etc/rcS.conf \
45 $fs/etc/inittab \
46 $fs/etc/init.d/rcS \
47 $fs/etc/init.d/rc.shutdown \
48 $fs/etc/init.d/system.sh
49 ;;
50 esac
51 }
53 # Post install commands.
54 #
55 post_install()
56 {
57 case "$SLITAZ_ARCH" in
58 i?86)
59 echo
60 chroot "$1/" /usr/bin/rcSconf up ;;
61 arm)
62 if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then
63 spk-add slitaz-arm-configs
64 fi ;;
65 esac
66 }