# SliTaz package receipt.

PACKED_SIZE="28.0K"
UNPACKED_SIZE="120.0K"
PACKAGE="slitaz-boot-scripts"
VERSION="5.4.2"
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"

# 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()
{
	mkdir -p $fs/usr/share
	cp -a $src/etc $fs
	cp -a $src/bin $fs/usr
	cp -a $src/init $fs
	cp -a $src/applications $fs/usr/share

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

# Post install commands.
#
post_install()
{
 	chroot $1/ /usr/bin/rcSconf up
}
