# SliTaz package receipt. PACKED_SIZE="24.0K" UNPACKED_SIZE="56.0K" PACKAGE="module-squashfs" EXTRAVERSION="_2.6.37" VERSION="2.6.37" CATEGORY="base-system" SHORT_DESC="Kernel module for the squashfs filesystem" MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://tiny.slitaz.org/" WANTED="kernel-modular" CONFIG_FILES="/etc/filesystems" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel mkdir -p $fs/$path $fs/etc export src=$WOK/$WANTED/linux-$VERSION export _pkg=$src/_pkg $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done touch $fs/etc/filesystems } # Post install/remove commands for Tazpkg. post_install() { grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \ echo "${PACKAGE#*-}" >> $1/etc/filesystems chroot "$1/" depmod -a $VERSION-slitaz }