wok-next rev 2127

linux-*fs, squashfs : update /etc/filesystems
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 01 12:36:41 2009 +0000 (2009-02-01)
parents 14a7a851672f
children dcd78f3d0238
files linux-cifs/receipt linux-jfs/receipt linux-ncpfs/receipt linux-reiserfs/receipt ntfs-3g/receipt squashfs/receipt
line diff
     1.1 --- a/linux-cifs/receipt	Sun Feb 01 12:23:00 2009 +0000
     1.2 +++ b/linux-cifs/receipt	Sun Feb 01 12:36:41 2009 +0000
     1.3 @@ -26,11 +26,13 @@
     1.4  # Post install/remove commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 +	grep -qs ^cifs$ $1/etc/filesystems || \
     1.8 +		echo "cifs" >> $1/etc/filesystems
     1.9  	depmod -a -b "$1/" $VERSION-slitaz
    1.10  }
    1.11  
    1.12  post_remove()
    1.13  {
    1.14 +	sed -i '/^cifs$/d' $1/etc/filesystems
    1.15  	depmod -a $VERSION-slitaz
    1.16  }
    1.17 -
     2.1 --- a/linux-jfs/receipt	Sun Feb 01 12:23:00 2009 +0000
     2.2 +++ b/linux-jfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     2.3 @@ -26,11 +26,13 @@
     2.4  # Post install/remove commands for Tazpkg.
     2.5  post_install()
     2.6  {
     2.7 +	grep -qs ^jfs$ $1/etc/filesystems || \
     2.8 +		echo "jfs" >> $1/etc/filesystems
     2.9  	depmod -a -b "$1/" $VERSION-slitaz
    2.10  }
    2.11  
    2.12  post_remove()
    2.13  {
    2.14 +	sed -i '/^jfs$/d' $1/etc/filesystems
    2.15  	depmod -a $VERSION-slitaz
    2.16  }
    2.17 -
     3.1 --- a/linux-ncpfs/receipt	Sun Feb 01 12:23:00 2009 +0000
     3.2 +++ b/linux-ncpfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     3.3 @@ -26,11 +26,13 @@
     3.4  # Post install/remove commands for Tazpkg.
     3.5  post_install()
     3.6  {
     3.7 +	grep -qs ^ncpfs$ $1/etc/filesystems || \
     3.8 +		echo "ncpfs" >> $1/etc/filesystems
     3.9  	depmod -a -b "$1/" $VERSION-slitaz
    3.10  }
    3.11  
    3.12  post_remove()
    3.13  {
    3.14 +	sed -i '/^ncpfs$/d' $1/etc/filesystems
    3.15  	depmod -a $VERSION-slitaz
    3.16  }
    3.17 -
     4.1 --- a/linux-reiserfs/receipt	Sun Feb 01 12:23:00 2009 +0000
     4.2 +++ b/linux-reiserfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     4.3 @@ -26,11 +26,13 @@
     4.4  # Post install/remove commands for Tazpkg.
     4.5  post_install()
     4.6  {
     4.7 +	grep -qs ^reiserfs$ $1/etc/filesystems || \
     4.8 +		echo "reiserfs" >> $1/etc/filesystems
     4.9  	depmod -a -b "$1/" $VERSION-slitaz
    4.10  }
    4.11  
    4.12  post_remove()
    4.13  {
    4.14 +	sed -i '/^reiserfs$/d' $1/etc/filesystems
    4.15  	depmod -a $VERSION-slitaz
    4.16  }
    4.17 -
     5.1 --- a/ntfs-3g/receipt	Sun Feb 01 12:23:00 2009 +0000
     5.2 +++ b/ntfs-3g/receipt	Sun Feb 01 12:36:41 2009 +0000
     5.3 @@ -34,11 +34,11 @@
     5.4  # Pre remove and post install commands for Tazpkg.
     5.5  pre_remove()
     5.6  {
     5.7 -	sed -i '/ntfs-3g/d' $1/etc/filesystems
     5.8 +	sed -i '/^ntfs-3g$/d' $1/etc/filesystems
     5.9  }
    5.10  
    5.11  post_install()
    5.12  {
    5.13 -	grep -qs ntfs-3g $1/etc/filesystems || \
    5.14 +	grep -qs ^ntfs-3g$ $1/etc/filesystems || \
    5.15  		echo "ntfs-3g" >> $1/etc/filesystems
    5.16  }
     6.1 --- a/squashfs/receipt	Sun Feb 01 12:23:00 2009 +0000
     6.2 +++ b/squashfs/receipt	Sun Feb 01 12:36:41 2009 +0000
     6.3 @@ -177,3 +177,15 @@
     6.4  {
     6.5  	cp -a $_pkg/usr $_pkg/sbin $fs
     6.6  }
     6.7 +
     6.8 +# Pre remove and post install commands for Tazpkg.
     6.9 +pre_remove()
    6.10 +{
    6.11 +	sed -i '/^squashfs$/d' $1/etc/filesystems
    6.12 +}
    6.13 +
    6.14 +post_install()
    6.15 +{
    6.16 +	grep -qs ^squashfs$ $1/etc/filesystems || \
    6.17 +		echo "squashfs" >> $1/etc/filesystems
    6.18 +}