SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "slitaz-boot-scripts"

# SliTaz package receipt.

PACKAGE="slitaz-boot-scripts"
VERSION="474"
CATEGORY="base-system"
SHORT_DESC="Provide all the initialisation scripts used at boot time."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.slitaz.org/"
WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
HOST_ARCH="i486 arm"

CONFIG_FILES="
/etc/inittab
/etc/init.d/local.sh
/etc/rcS.conf
/etc/network.conf"

# Needed to fetch the keymaps and test the filesystem.
DEPENDS="kbd-base e2fsprogs busybox slitaz-tools"

current_version()
{
    wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
    sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
    xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
#
# This package is all build by genpkg, it provide the boot scripts found
# in /etc/init.d with the main config file : /etc/rcS.conf. It provide also
# the default inittab and the network config file used with network.sh
#
genpkg_rules()
{
    cd $src
    # Thanks Rantanplan, fix mhwaveedit tempdir path
    patch -p1 < $stuff/fix-mhwaveedit-tempdir-path.patch

    cp -a $src/etc $fs
    cp -a $src/usr $fs
    cp -a $src/init $fs

    chown -R root.root $fs
    chmod 755 $fs/etc/init.d/*.sh
    chmod 755 $fs/etc/init.d/rc*
    chmod 755 $fs/init

    case "$ARCH" in
        arm*)
            # Provided by slitaz-arm-configs
            rm \
                $fs/etc/rcS.conf \
                $fs/etc/inittab \
                $fs/etc/init.d/rcS \
                $fs/etc/init.d/rc.shutdown \
                $fs/etc/init.d/system.sh ;;
    esac
}

# Post install commands.
#
post_install()
{
    case "$SLITAZ_ARCH" in
        i?86)
            echo
            chroot "$1/" /usr/bin/rcSconf up ;;
        arm)
            if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then
                spk-add slitaz-arm-configs
            fi ;;
    esac
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)