wok diff linux-reiserfs/receipt @ rev 2807

libQtGUI update to 4.5.0
author Allan Pinto <allan316@gmail.com>
date Wed Apr 29 10:15:34 2009 +0000 (2009-04-29)
parents 532538d67b1c
children f306d126580e
line diff
     1.1 --- a/linux-reiserfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     1.2 +++ b/linux-reiserfs/receipt	Wed Apr 29 10:15:34 2009 +0000
     1.3 @@ -7,13 +7,14 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  WANTED="linux"
     1.6  WEB_SITE="http://www.kernel.org/"
     1.7 +CONFIG_FILES="/etc/filesystems"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11  {
    1.12      local path
    1.13      path=lib/modules/$VERSION-slitaz/kernel
    1.14 -    mkdir -p $fs/$path
    1.15 +    mkdir -p $fs/$path $fs/etc
    1.16      export src
    1.17      export _pkg
    1.18      $src/list_modules.sh fs/reiserfs | while read module; do
    1.19 @@ -21,18 +22,19 @@
    1.20      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.21          cp -a $_pkg/$path/$module $fs/$dir
    1.22      done
    1.23 +    touch $fs/etc/filesystems
    1.24  }
    1.25  
    1.26  # Post install/remove commands for Tazpkg.
    1.27  post_install()
    1.28  {
    1.29 -	grep -qs ^reiserfs$ $1/etc/filesystems || \
    1.30 -		echo "reiserfs" >> $1/etc/filesystems
    1.31 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    1.32 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    1.33  	depmod -a -b "$1/" $VERSION-slitaz
    1.34  }
    1.35  
    1.36  post_remove()
    1.37  {
    1.38 -	sed -i '/^reiserfs$/d' $1/etc/filesystems
    1.39 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    1.40  	depmod -a $VERSION-slitaz
    1.41  }