# HG changeset patch # User Pascal Bellard # Date 1296729995 -3600 # Node ID 703539c8a5f6350bb72ea83c2c411240faeae290 # Parent cec4b1afcd56e59401888994792a4fec6cce26ed Add module-squashfs diff -r cec4b1afcd56 -r 703539c8a5f6 module-squashfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/module-squashfs/receipt Thu Feb 03 11:46:35 2011 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="module-squashfs" +VERSION="2.6.37" +CATEGORY="base-system" +SHORT_DESC="Kernel module for the squashfs filesystem" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://mirror.slitaz.org/pizza/tiny/" +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 +}