wok diff linux-cifs/receipt @ rev 2765

Add printer drivers: hplip, gutneprint, foomatic, pnm2ppa
author Rohit Joshi <jozee@slitaz.org>
date Sun Apr 26 16:04:40 2009 +0000 (2009-04-26)
parents 532538d67b1c
children f306d126580e
line diff
     1.1 --- a/linux-cifs/receipt	Sun Feb 01 12:36:41 2009 +0000
     1.2 +++ b/linux-cifs/receipt	Sun Apr 26 16:04:40 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/cifs | 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 ^cifs$ $1/etc/filesystems || \
    1.30 -		echo "cifs" >> $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 '/^cifs$/d' $1/etc/filesystems
    1.39 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    1.40  	depmod -a $VERSION-slitaz
    1.41  }