wok-4.x rev 1062

slitaz-tools, slitaz-boot-scripts, slim: add repack_cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 15 16:06:04 2008 +0000 (2008-07-15)
parents 90ac5dedc9bb
children ae229eb38f6b
files slim/receipt slitaz-boot-scripts/receipt slitaz-tools/receipt
line diff
     1.1 --- a/slim/receipt	Tue Jul 15 15:44:48 2008 +0000
     1.2 +++ b/slim/receipt	Tue Jul 15 16:06:04 2008 +0000
     1.3 @@ -29,3 +29,15 @@
     1.4  	cp -a stuff/etc $fs
     1.5  }
     1.6  
     1.7 +post_install()
     1.8 +{
     1.9 +	( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \
    1.10 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.11 +etc/slim.conf
    1.12 +EOT
    1.13 +}
    1.14 +
    1.15 +repack_cleanup()
    1.16 +{
    1.17 +	zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.18 +}
     2.1 --- a/slitaz-boot-scripts/receipt	Tue Jul 15 15:44:48 2008 +0000
     2.2 +++ b/slitaz-boot-scripts/receipt	Tue Jul 15 16:06:04 2008 +0000
     2.3 @@ -46,6 +46,11 @@
     2.4  {
     2.5   	local root
     2.6   	root=$1
     2.7 +	( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \
     2.8 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
     2.9 +etc/rcS.conf
    2.10 +etc/network.conf
    2.11 +EOT
    2.12  	echo "Restoring configs backups..."
    2.13  	mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null
    2.14  	mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
    2.15 @@ -77,3 +82,7 @@
    2.16  	fi 
    2.17  }
    2.18  
    2.19 +repack_cleanup()
    2.20 +{
    2.21 +	zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    2.22 +}
     3.1 --- a/slitaz-tools/receipt	Tue Jul 15 15:44:48 2008 +0000
     3.2 +++ b/slitaz-tools/receipt	Tue Jul 15 16:06:04 2008 +0000
     3.3 @@ -80,3 +80,21 @@
     3.4  	chmod -R 755 $fs/usr/bin
     3.5  	chmod -R 755 $fs/sbin
     3.6  }
     3.7 +
     3.8 +post_install()
     3.9 +{
    3.10 +	( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \
    3.11 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    3.12 +etc/TZ
    3.13 +etc/motd
    3.14 +etc/keymap.conf
    3.15 +etc/X11/screen.conf
    3.16 +etc/locale.conf
    3.17 +etc/firewall.conf
    3.18 +EOT
    3.19 +}
    3.20 +
    3.21 +repack_cleanup()
    3.22 +{
    3.23 +	zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    3.24 +}