wok-stable diff php-gd/receipt @ rev 1749
php-*: add pre_remove()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 23 12:08:41 2008 +0000 (2008-11-23) |
parents | 24cffdc5d961 |
children | 1143af92f66a |
line diff
1.1 --- a/php-gd/receipt Fri Aug 29 15:41:08 2008 +0000 1.2 +++ b/php-gd/receipt Sun Nov 23 12:08:41 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 '/.*=gd.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 +}