wok-next diff linux-ncpfs/receipt @ rev 2709

fix: gst-plugins-good receipt
author Rohit Joshi <jozee@slitaz.org>
date Wed Apr 22 16:57:34 2009 +0000 (2009-04-22)
parents 532538d67b1c
children f306d126580e
line diff
     1.1 --- a/linux-ncpfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     1.2 +++ b/linux-ncpfs/receipt	Wed Apr 22 16:57: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/ncpfs | while read module; do
    1.19 @@ -26,13 +27,13 @@
    1.20  # Post install/remove commands for Tazpkg.
    1.21  post_install()
    1.22  {
    1.23 -	grep -qs ^ncpfs$ $1/etc/filesystems || \
    1.24 -		echo "ncpfs" >> $1/etc/filesystems
    1.25 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    1.26 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    1.27  	depmod -a -b "$1/" $VERSION-slitaz
    1.28  }
    1.29  
    1.30  post_remove()
    1.31  {
    1.32 -	sed -i '/^ncpfs$/d' $1/etc/filesystems
    1.33 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    1.34  	depmod -a $VERSION-slitaz
    1.35  }