# HG changeset patch # User Pascal Bellard # Date 1296729994 -3600 # Node ID 84572d9bb00fe2c00cd09b1d9563c158a2177f29 # Parent 417400e8c6da5b9832ad09103152091fc8b7cbc5 Add module-nfs diff -r 417400e8c6da -r 84572d9bb00f module-nfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/module-nfs/receipt Thu Feb 03 11:46:34 2011 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="module-nfs" +VERSION="2.6.37" +CATEGORY="base-system" +SHORT_DESC="Kernel module for the nfs 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 +}