wok-4.x diff linux-cramfs/receipt @ rev 3060

Linux: don't forget firmwares...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 13 17:34:54 2009 +0200 (2009-05-13)
parents f306d126580e
children 7df76f20d2c3
line diff
     1.1 --- a/linux-cramfs/receipt	Thu May 07 09:37:08 2009 +0200
     1.2 +++ b/linux-cramfs/receipt	Wed May 13 17:34:54 2009 +0200
     1.3 @@ -1,20 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux-cramfs"
     1.7 -VERSION="2.6.25.5"
     1.8 +VERSION="2.6.29.3"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="The Linux kernel cramfs module."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  DEPENDS="linux"
    1.13  WANTED="linux"
    1.14  WEB_SITE="http://www.kernel.org/"
    1.15 +CONFIG_FILES="/etc/filesystems"
    1.16  
    1.17  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.18  genpkg_rules()
    1.19  {
    1.20      local path
    1.21      path=lib/modules/$VERSION-slitaz/kernel
    1.22 -    mkdir -p $fs/$path
    1.23 +    mkdir -p $fs/$path $fs/etc
    1.24      export src
    1.25      export _pkg
    1.26      $src/list_modules.sh fs/cramfs | while read module; do
    1.27 @@ -22,16 +23,20 @@
    1.28      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.29          cp -a $_pkg/$path/$module $fs/$dir
    1.30      done
    1.31 +    touch $fs/etc/filesystems
    1.32  }
    1.33  
    1.34  # Post install/remove commands for Tazpkg.
    1.35  post_install()
    1.36  {
    1.37 - 	chroot "$1/" depmod -a $VERSION-slitaz
    1.38 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    1.39 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    1.40 +	chroot "$1/" depmod -a $VERSION-slitaz
    1.41  }
    1.42  
    1.43  post_remove()
    1.44  {
    1.45 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    1.46  	depmod -a $VERSION-slitaz
    1.47  }
    1.48