wok rev 1213

asterisk, zaptel: create volatile.cpio.gz
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 17:55:16 2008 +0000 (2008-08-09)
parents 534023d6e005
children 662bf9da5ad7
files asterisk/receipt zaptel/receipt
line diff
     1.1 --- a/asterisk/receipt	Sat Aug 09 17:50:04 2008 +0000
     1.2 +++ b/asterisk/receipt	Sat Aug 09 17:55:16 2008 +0000
     1.3 @@ -37,3 +37,17 @@
     1.4  		mv $i ${i%.sample}
     1.5  	done
     1.6  }
     1.7 +
     1.8 +# Pre and post install commands for Tazpkg.
     1.9 +post_install()
    1.10 +{
    1.11 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.12 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.13 +$(cd $1/ ; find etc/asterisk -type f)
    1.14 +EOT
    1.15 +}
    1.16 +
    1.17 +repack_cleanup()
    1.18 +{
    1.19 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.20 +}
     2.1 --- a/zaptel/receipt	Sat Aug 09 17:50:04 2008 +0000
     2.2 +++ b/zaptel/receipt	Sat Aug 09 17:55:16 2008 +0000
     2.3 @@ -39,6 +39,10 @@
     2.4  # Post install/remove commands for Tazpkg.
     2.5  post_install()
     2.6  {
     2.7 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
     2.8 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
     2.9 +etc/zaptel.conf
    2.10 +EOT
    2.11  	depmod -a -b "$1/"
    2.12  }
    2.13  
    2.14 @@ -47,3 +51,7 @@
    2.15  	depmod -a
    2.16  }
    2.17  
    2.18 +repack_cleanup()
    2.19 +{
    2.20 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    2.21 +}