wok-6.x rev 1156
openldap: save volatile conf files.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 27 09:35:39 2008 +0000 (2008-07-27) |
parents | c13c815a576c |
children | 286e99ba6ccd |
files | openldap/receipt |
line diff
1.1 --- a/openldap/receipt Sun Jul 27 09:18:17 2008 +0000 1.2 +++ b/openldap/receipt Sun Jul 27 09:35:39 2008 +0000 1.3 @@ -40,3 +40,18 @@ 1.4 tazwok genpkg $i 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 +etc/openldap/ldap.conf 1.14 +etc/openldap/slapd.conf 1.15 +EOT 1.16 +} 1.17 + 1.18 +repack_cleanup() 1.19 +{ 1.20 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.21 +}