wok rev 1223
php: declare /etc/php.ini
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 09:23:04 2008 +0000 (2008-08-10) |
parents | b649ec903494 |
children | ce9ca92103e0 |
files | php/receipt |
line diff
1.1 --- a/php/receipt Sun Aug 10 08:15:15 2008 +0000 1.2 +++ b/php/receipt Sun Aug 10 09:23:04 2008 +0000 1.3 @@ -10,6 +10,7 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.5 WEB_SITE="http://www.php.net/" 1.6 WGET_URL="http://us2.php.net/distributions/$TARBALL" 1.7 +CONFIG_FILES="/etc/php.ini" 1.8 1.9 # Rules to configure and make the package. 1.10 compile_rules() 1.11 @@ -68,6 +69,10 @@ 1.12 } 1.13 post_install() 1.14 { 1.15 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 1.16 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.17 +etc/php.ini 1.18 +EOT 1.19 # Restore original php.ini 1.20 if [ -f "$1/etc/php.ini.bak" ]; then 1.21 echo -n "Restoring php.ini backup..." 1.22 @@ -92,3 +97,7 @@ 1.23 fi 1.24 } 1.25 1.26 +repack_cleanup() 1.27 +{ 1.28 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.29 +}