wok diff php-cups/receipt @ rev 1769

Add get-upx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 26 11:51:02 2008 +0000 (2008-11-26)
parents 12531da22255
children 1143af92f66a
line diff
     1.1 --- a/php-cups/receipt	Wed Sep 24 08:10:52 2008 +0000
     1.2 +++ b/php-cups/receipt	Wed Nov 26 11:51:02 2008 +0000
     1.3 @@ -46,3 +46,18 @@
     1.4  EOT
     1.5  }
     1.6  
     1.7 +# Pre and post remove commands for Tazpkg.
     1.8 +pre_remove()
     1.9 +{
    1.10 +	sed -i '/.*=cups.so.*/d' /etc/php.ini
    1.11 +
    1.12 +	# Start Web server.
    1.13 +	while read daemon file; do
    1.14 +		if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then
    1.15 +			/etc/init.d/$daemon start
    1.16 +		fi
    1.17 +	done <<EOT
    1.18 +apache apache/httpd.pid
    1.19 +lighttpd lighttpd.pid
    1.20 +EOT
    1.21 +}