wok-current diff eaccelerator/receipt @ rev 4589

Add linmodem-intel537
author Rohit Joshi <jozee@slitaz.org>
date Thu Dec 10 13:28:27 2009 +0000 (2009-12-10)
parents cc721aa29750
children 31c985a0bd3d
line diff
     1.1 --- a/eaccelerator/receipt	Sat Nov 22 23:27:11 2008 +0000
     1.2 +++ b/eaccelerator/receipt	Thu Dec 10 13:28:27 2009 +0000
     1.3 @@ -37,21 +37,23 @@
     1.4  post_install()
     1.5  {
     1.6  	grep -q ^extension=msql.so $1/etc/php.ini || \
     1.7 -	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\n\
     1.8 -   extension=eaccelerator.so\n\
     1.9 -   eaccelerator.shm_size="48"\n\
    1.10 -   eaccelerator.cache_dir="/tmp/eaccelerator"\n\
    1.11 -   eaccelerator.enable="1"\n\
    1.12 -   eaccelerator.optimizer="1"\n\
    1.13 -   eaccelerator.check_mtime="1"\n\
    1.14 -   eaccelerator.debug="0"\n\
    1.15 -   eaccelerator.filter=""\n\
    1.16 -   eaccelerator.shm_max="0"\n\
    1.17 -   eaccelerator.shm_ttl="0"\n\
    1.18 -   eaccelerator.shm_prune_period="0"\n\
    1.19 -   eaccelerator.shm_only="0"\n\
    1.20 -   eaccelerator.compress="1"\n\
    1.21 -   eaccelerator.compress_level="9"|' -i $1/etc/php.ini
    1.22 +	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=eaccelerator.so\neaccelerator.shm_size="48"\neaccelerator.cache_dir="/tmp/eaccelerator"\neaccelerator.enable="1"\neaccelerator.optimizer="1"\neaccelerator.check_mtime="1"\neaccelerator.debug="0"\neaccelerator.filter=""\neaccelerator.shm_max="0"\neaccelerator.shm_ttl="0"\neaccelerator.shm_prune_period="0"\neaccelerator.shm_only="0"\neaccelerator.compress="1"\neaccelerator.compress_level="9"|' -i $1/etc/php.ini
    1.23 +
    1.24 +	# Start Web server.
    1.25 +	while read daemon file; do
    1.26 +		if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then
    1.27 +			/etc/init.d/$daemon start
    1.28 +		fi
    1.29 +	done <<EOT
    1.30 +apache apache/httpd.pid
    1.31 +lighttpd lighttpd.pid
    1.32 +EOT
    1.33 +}
    1.34 +
    1.35 +# Pre and post remove commands for Tazpkg.
    1.36 +pre_remove()
    1.37 +{
    1.38 +	sed -i '/.*eaccelerator.*/d' /etc/php.ini
    1.39  
    1.40  	# Start Web server.
    1.41  	while read daemon file; do
    1.42 @@ -64,4 +66,3 @@
    1.43  lighttpd lighttpd.pid
    1.44  EOT
    1.45  }
    1.46 -