wok-tiny annotate module-nfs/receipt @ rev 30

Add module-nfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 11:46:34 2011 +0100 (2011-02-03)
parents
children d3c5f3688ec0
rev   line source
pascal@30 1 # SliTaz package receipt.
pascal@30 2
pascal@30 3 PACKAGE="module-nfs"
pascal@30 4 VERSION="2.6.37"
pascal@30 5 CATEGORY="base-system"
pascal@30 6 SHORT_DESC="Kernel module for the nfs filesystem"
pascal@30 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@30 8 WEB_SITE="http://mirror.slitaz.org/pizza/tiny/"
pascal@30 9 WANTED="kernel-modular"
pascal@30 10 CONFIG_FILES="/etc/filesystems"
pascal@30 11
pascal@30 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@30 13 genpkg_rules()
pascal@30 14 {
pascal@30 15 local path
pascal@30 16 path=lib/modules/$VERSION-slitaz/kernel
pascal@30 17 mkdir -p $fs/$path $fs/etc
pascal@30 18 export src=$WOK/$WANTED/linux-$VERSION
pascal@30 19 export _pkg=$src/_pkg
pascal@30 20 $src/slitaz/list_modules.sh fs/${PACKAGE#*-} | while read module; do
pascal@30 21 dir=$path/$(dirname $module)
pascal@30 22 [ -d $fs/$dir ] || mkdir -p $fs/$dir
pascal@30 23 cp -a $_pkg/$path/$module $fs/$dir
pascal@30 24 done
pascal@30 25 touch $fs/etc/filesystems
pascal@30 26 }
pascal@30 27
pascal@30 28 # Post install/remove commands for Tazpkg.
pascal@30 29 post_install()
pascal@30 30 {
pascal@30 31 grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
pascal@30 32 echo "${PACKAGE#*-}" >> $1/etc/filesystems
pascal@30 33 chroot "$1/" depmod -a $VERSION-slitaz
pascal@30 34 }