# HG changeset patch # User Pascal Bellard # Date 1216137964 0 # Node ID e5ace79a18af1af5ef5fc9810063f1608f2187a2 # Parent 90ac5dedc9bbc834e4eeeb3bb0fe10bf0c90c6aa slitaz-tools, slitaz-boot-scripts, slim: add repack_cleanup diff -r 90ac5dedc9bb -r e5ace79a18af slim/receipt --- a/slim/receipt Tue Jul 15 15:44:48 2008 +0000 +++ b/slim/receipt Tue Jul 15 16:06:04 2008 +0000 @@ -29,3 +29,15 @@ cp -a stuff/etc $fs } +post_install() +{ + ( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz </dev/null mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null @@ -77,3 +82,7 @@ fi } +repack_cleanup() +{ + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) +} diff -r 90ac5dedc9bb -r e5ace79a18af slitaz-tools/receipt --- a/slitaz-tools/receipt Tue Jul 15 15:44:48 2008 +0000 +++ b/slitaz-tools/receipt Tue Jul 15 16:06:04 2008 +0000 @@ -80,3 +80,21 @@ chmod -R 755 $fs/usr/bin chmod -R 755 $fs/sbin } + +post_install() +{ + ( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <