# HG changeset patch # User Pascal Bellard # Date 1217095024 0 # Node ID dd2aa8326cbc2f3d819957613af4de0df5506a7c # Parent 1f6a0ebbf92676e23d245c578b6d73dc25ce23dd mysql,postgresql: backup volatile files diff -r 1f6a0ebbf926 -r dd2aa8326cbc mysql/receipt --- a/mysql/receipt Sat Jul 26 18:58:09 2008 +0200 +++ b/mysql/receipt Sat Jul 26 17:57:04 2008 +0000 @@ -49,6 +49,10 @@ # Pre and post install commands for Tazpkg. post_install() { + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf @@ -43,3 +47,7 @@ fi } +repack_cleanup() +{ + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) +} diff -r 1f6a0ebbf926 -r dd2aa8326cbc phppgadmin/receipt --- a/phppgadmin/receipt Sat Jul 26 18:58:09 2008 +0200 +++ b/phppgadmin/receipt Sat Jul 26 17:57:04 2008 +0000 @@ -24,6 +24,7 @@ cp -a $src/. $fs/usr/share/phppgadmin mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf + sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin chmod 700 $fs/etc/phppgadmin chmod 600 $fs/etc/phppgadmin/* @@ -31,6 +32,10 @@ post_install() { + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf @@ -43,3 +48,7 @@ fi } +repack_cleanup() +{ + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) +} diff -r 1f6a0ebbf926 -r dd2aa8326cbc postgresql/receipt --- a/postgresql/receipt Sat Jul 26 18:58:09 2008 +0200 +++ b/postgresql/receipt Sat Jul 26 17:57:04 2008 +0000 @@ -66,6 +66,8 @@ chroot $1/ chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql cat <