wok-current rev 2562

declare /etc/filesystems
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 29 11:34:34 2009 +0000 (2009-03-29)
parents d5075dd7430c
children b1bda6bf42c4
files linux-cifs/receipt linux-hfsplus/receipt linux-jfs/receipt linux-ncpfs/receipt linux-reiserfs/receipt ntfs-3g/receipt squashfs/receipt
line diff
     1.1 --- a/linux-cifs/receipt	Fri Mar 27 22:07:54 2009 +0000
     1.2 +++ b/linux-cifs/receipt	Sun Mar 29 11:34: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/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  }
     2.1 --- a/linux-hfsplus/receipt	Fri Mar 27 22:07:54 2009 +0000
     2.2 +++ b/linux-hfsplus/receipt	Sun Mar 29 11:34:34 2009 +0000
     2.3 @@ -7,13 +7,14 @@
     2.4  MAINTAINER="pascal.bellard@slitaz.org"
     2.5  WANTED="linux"
     2.6  WEB_SITE="http://www.kernel.org/"
     2.7 +CONFIG_FILES="/etc/filesystems"
     2.8  
     2.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.10  genpkg_rules()
    2.11  {
    2.12      local path
    2.13      path=lib/modules/$VERSION-slitaz/kernel
    2.14 -    mkdir -p $fs/$path
    2.15 +    mkdir -p $fs/$path $fs/etc
    2.16      export src
    2.17      export _pkg
    2.18      $src/list_modules.sh fs/hfsplus | while read module; do
    2.19 @@ -21,6 +22,7 @@
    2.20      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    2.21          cp -a $_pkg/$path/$module $fs/$dir
    2.22      done
    2.23 +    touch $fs/etc/filesystems
    2.24  }
    2.25  
    2.26  # Post install/remove commands for Tazpkg.
     3.1 --- a/linux-jfs/receipt	Fri Mar 27 22:07:54 2009 +0000
     3.2 +++ b/linux-jfs/receipt	Sun Mar 29 11:34:34 2009 +0000
     3.3 @@ -7,13 +7,14 @@
     3.4  MAINTAINER="pascal.bellard@slitaz.org"
     3.5  WANTED="linux"
     3.6  WEB_SITE="http://www.kernel.org/"
     3.7 +CONFIG_FILES="/etc/filesystems"
     3.8  
     3.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.10  genpkg_rules()
    3.11  {
    3.12      local path
    3.13      path=lib/modules/$VERSION-slitaz/kernel
    3.14 -    mkdir -p $fs/$path
    3.15 +    mkdir -p $fs/$path $fs/etc
    3.16      export src
    3.17      export _pkg
    3.18      $src/list_modules.sh fs/jfs | while read module; do
    3.19 @@ -21,18 +22,19 @@
    3.20      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    3.21          cp -a $_pkg/$path/$module $fs/$dir
    3.22      done
    3.23 +    touch $fs/etc/filesystems
    3.24  }
    3.25  
    3.26  # Post install/remove commands for Tazpkg.
    3.27  post_install()
    3.28  {
    3.29 -	grep -qs ^jfs$ $1/etc/filesystems || \
    3.30 -		echo "jfs" >> $1/etc/filesystems
    3.31 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    3.32 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    3.33  	depmod -a -b "$1/" $VERSION-slitaz
    3.34  }
    3.35  
    3.36  post_remove()
    3.37  {
    3.38 -	sed -i '/^jfs$/d' $1/etc/filesystems
    3.39 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    3.40  	depmod -a $VERSION-slitaz
    3.41  }
     4.1 --- a/linux-ncpfs/receipt	Fri Mar 27 22:07:54 2009 +0000
     4.2 +++ b/linux-ncpfs/receipt	Sun Mar 29 11:34:34 2009 +0000
     4.3 @@ -7,13 +7,14 @@
     4.4  MAINTAINER="pascal.bellard@slitaz.org"
     4.5  WANTED="linux"
     4.6  WEB_SITE="http://www.kernel.org/"
     4.7 +CONFIG_FILES="/etc/filesystems"
     4.8  
     4.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.10  genpkg_rules()
    4.11  {
    4.12      local path
    4.13      path=lib/modules/$VERSION-slitaz/kernel
    4.14 -    mkdir -p $fs/$path
    4.15 +    mkdir -p $fs/$path $fs/etc
    4.16      export src
    4.17      export _pkg
    4.18      $src/list_modules.sh fs/ncpfs | while read module; do
    4.19 @@ -26,13 +27,13 @@
    4.20  # Post install/remove commands for Tazpkg.
    4.21  post_install()
    4.22  {
    4.23 -	grep -qs ^ncpfs$ $1/etc/filesystems || \
    4.24 -		echo "ncpfs" >> $1/etc/filesystems
    4.25 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    4.26 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    4.27  	depmod -a -b "$1/" $VERSION-slitaz
    4.28  }
    4.29  
    4.30  post_remove()
    4.31  {
    4.32 -	sed -i '/^ncpfs$/d' $1/etc/filesystems
    4.33 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    4.34  	depmod -a $VERSION-slitaz
    4.35  }
     5.1 --- a/linux-reiserfs/receipt	Fri Mar 27 22:07:54 2009 +0000
     5.2 +++ b/linux-reiserfs/receipt	Sun Mar 29 11:34:34 2009 +0000
     5.3 @@ -7,13 +7,14 @@
     5.4  MAINTAINER="pascal.bellard@slitaz.org"
     5.5  WANTED="linux"
     5.6  WEB_SITE="http://www.kernel.org/"
     5.7 +CONFIG_FILES="/etc/filesystems"
     5.8  
     5.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.10  genpkg_rules()
    5.11  {
    5.12      local path
    5.13      path=lib/modules/$VERSION-slitaz/kernel
    5.14 -    mkdir -p $fs/$path
    5.15 +    mkdir -p $fs/$path $fs/etc
    5.16      export src
    5.17      export _pkg
    5.18      $src/list_modules.sh fs/reiserfs | while read module; do
    5.19 @@ -21,18 +22,19 @@
    5.20      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    5.21          cp -a $_pkg/$path/$module $fs/$dir
    5.22      done
    5.23 +    touch $fs/etc/filesystems
    5.24  }
    5.25  
    5.26  # Post install/remove commands for Tazpkg.
    5.27  post_install()
    5.28  {
    5.29 -	grep -qs ^reiserfs$ $1/etc/filesystems || \
    5.30 -		echo "reiserfs" >> $1/etc/filesystems
    5.31 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    5.32 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    5.33  	depmod -a -b "$1/" $VERSION-slitaz
    5.34  }
    5.35  
    5.36  post_remove()
    5.37  {
    5.38 -	sed -i '/^reiserfs$/d' $1/etc/filesystems
    5.39 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    5.40  	depmod -a $VERSION-slitaz
    5.41  }
     6.1 --- a/ntfs-3g/receipt	Fri Mar 27 22:07:54 2009 +0000
     6.2 +++ b/ntfs-3g/receipt	Sun Mar 29 11:34:34 2009 +0000
     6.3 @@ -9,6 +9,7 @@
     6.4  TARBALL="$PACKAGE-$VERSION.tgz"
     6.5  WEB_SITE="http://www.ntfs-3g.org/"
     6.6  WGET_URL="$WEB_SITE/$TARBALL"
     6.7 +CONFIG_FILES="/etc/filesystems"
     6.8  
     6.9  # Rules to configure and make the package.
    6.10  compile_rules()
    6.11 @@ -17,30 +18,31 @@
    6.12  	sed -i 's/\terr = ntfs_open\(.*\);/\tntfs_log_clear_levels((u32) -1); if (err = ntfs_open\1) goto err2;/' \
    6.13  		src/ntfs-3g.c
    6.14  	./configure --prefix=/usr \
    6.15 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    6.16 -	make
    6.17 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    6.18 +	make &&
    6.19  	make DESTDIR=$PWD/_pkg install
    6.20  }
    6.21  
    6.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.23  genpkg_rules()
    6.24  {
    6.25 -	mkdir -p $fs/lib $fs/usr/lib
    6.26 +	mkdir -p $fs/lib $fs/usr/lib $fs/etc
    6.27  	cp -a $_pkg/bin $fs/
    6.28  	cp -a $_pkg/sbin $fs/
    6.29  	cp -a $_pkg/lib/*.so* $fs/lib
    6.30  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    6.31  	cp -a $_pkg/usr/bin $fs/usr
    6.32 +	touch $fs/etc/filesystems
    6.33  }
    6.34  
    6.35  # Pre remove and post install commands for Tazpkg.
    6.36  pre_remove()
    6.37  {
    6.38 -	sed -i '/^ntfs-3g$/d' $1/etc/filesystems
    6.39 +	sed -i '/^$PACKAGE$/d' $1/etc/filesystems
    6.40  }
    6.41  
    6.42  post_install()
    6.43  {
    6.44 -	grep -qs ^ntfs-3g$ $1/etc/filesystems || \
    6.45 -		echo "ntfs-3g" >> $1/etc/filesystems
    6.46 +	grep -qs ^$PACKAGE$ $1/etc/filesystems || \
    6.47 +		echo "$PACKAGE" >> $1/etc/filesystems
    6.48  }
     7.1 --- a/squashfs/receipt	Fri Mar 27 22:07:54 2009 +0000
     7.2 +++ b/squashfs/receipt	Sun Mar 29 11:34:34 2009 +0000
     7.3 @@ -11,6 +11,7 @@
     7.4  DEPENDS="zlib squashfs-module"
     7.5  BUILD_DEPENDS="zlib-dev patch lzma"
     7.6  PROVIDE="cromfs-or-squashfs"
     7.7 +CONFIG_FILES="/etc/filesystems"
     7.8  
     7.9  # Download a source tarball
    7.10  . /etc/tazwok.conf
    7.11 @@ -179,17 +180,19 @@
    7.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.13  genpkg_rules()
    7.14  {
    7.15 +	mkdir $fs/etc
    7.16 +	touch $fs/etc/filesystems
    7.17  	cp -a $_pkg/usr $_pkg/sbin $fs
    7.18  }
    7.19  
    7.20  # Pre remove and post install commands for Tazpkg.
    7.21  pre_remove()
    7.22  {
    7.23 -	sed -i '/^squashfs$/d' $1/etc/filesystems
    7.24 +	sed -i '/^$PACKAGE$/d' $1/etc/filesystems
    7.25  }
    7.26  
    7.27  post_install()
    7.28  {
    7.29 -	grep -qs ^squashfs$ $1/etc/filesystems || \
    7.30 -		echo "squashfs" >> $1/etc/filesystems
    7.31 +	grep -qs ^$PACKAGE$ $1/etc/filesystems || \
    7.32 +		echo "$PACKAGE" >> $1/etc/filesystems
    7.33  }