wok diff linux-coda/receipt @ rev 3813

Add: python-couchdbkit (0.1.8)
author Claudinei Pereira <claudinei@slitaz.org>
date Wed Aug 05 23:27:52 2009 +0000 (2009-08-05)
parents f306d126580e
children 7df76f20d2c3
line diff
     1.1 --- a/linux-coda/receipt	Thu May 07 09:37:08 2009 +0200
     1.2 +++ b/linux-coda/receipt	Wed Aug 05 23:27:52 2009 +0000
     1.3 @@ -1,20 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="linux-coda"
     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 coda 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/coda | 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