wok 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 | 81601463d8a0 |
children | 2d03cdc832cb |
files | eaccelerator/receipt php-cups/receipt php-gd/receipt php-imap/receipt php-ldap/receipt php-mhash/receipt php-mysql/receipt php-pgsql/receipt |
line diff
1.1 --- a/eaccelerator/receipt Sun Nov 23 11:16:02 2008 +0000 1.2 +++ b/eaccelerator/receipt Sun Nov 23 12:08:41 2008 +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 -
2.1 --- a/php-cups/receipt Sun Nov 23 11:16:02 2008 +0000 2.2 +++ b/php-cups/receipt Sun Nov 23 12:08:41 2008 +0000 2.3 @@ -46,3 +46,18 @@ 2.4 EOT 2.5 } 2.6 2.7 +# Pre and post remove commands for Tazpkg. 2.8 +pre_remove() 2.9 +{ 2.10 + sed -i '/.*=cups.so.*/d' /etc/php.ini 2.11 + 2.12 + # Start Web server. 2.13 + while read daemon file; do 2.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 2.15 + /etc/init.d/$daemon start 2.16 + fi 2.17 + done <<EOT 2.18 +apache apache/httpd.pid 2.19 +lighttpd lighttpd.pid 2.20 +EOT 2.21 +}
3.1 --- a/php-gd/receipt Sun Nov 23 11:16:02 2008 +0000 3.2 +++ b/php-gd/receipt Sun Nov 23 12:08:41 2008 +0000 3.3 @@ -46,3 +46,18 @@ 3.4 EOT 3.5 } 3.6 3.7 +# Pre and post remove commands for Tazpkg. 3.8 +pre_remove() 3.9 +{ 3.10 + sed -i '/.*=gd.so.*/d' /etc/php.ini 3.11 + 3.12 + # Start Web server. 3.13 + while read daemon file; do 3.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 3.15 + /etc/init.d/$daemon start 3.16 + fi 3.17 + done <<EOT 3.18 +apache apache/httpd.pid 3.19 +lighttpd lighttpd.pid 3.20 +EOT 3.21 +}
4.1 --- a/php-imap/receipt Sun Nov 23 11:16:02 2008 +0000 4.2 +++ b/php-imap/receipt Sun Nov 23 12:08:41 2008 +0000 4.3 @@ -46,3 +46,18 @@ 4.4 EOT 4.5 } 4.6 4.7 +# Pre and post remove commands for Tazpkg. 4.8 +pre_remove() 4.9 +{ 4.10 + sed -i '/.*=imap.so.*/d' /etc/php.ini 4.11 + 4.12 + # Start Web server. 4.13 + while read daemon file; do 4.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 4.15 + /etc/init.d/$daemon start 4.16 + fi 4.17 + done <<EOT 4.18 +apache apache/httpd.pid 4.19 +lighttpd lighttpd.pid 4.20 +EOT 4.21 +}
5.1 --- a/php-ldap/receipt Sun Nov 23 11:16:02 2008 +0000 5.2 +++ b/php-ldap/receipt Sun Nov 23 12:08:41 2008 +0000 5.3 @@ -46,3 +46,18 @@ 5.4 EOT 5.5 } 5.6 5.7 +# Pre and post remove commands for Tazpkg. 5.8 +pre_remove() 5.9 +{ 5.10 + sed -i '/.*=ldap.so.*/d' /etc/php.ini 5.11 + 5.12 + # Start Web server. 5.13 + while read daemon file; do 5.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 5.15 + /etc/init.d/$daemon start 5.16 + fi 5.17 + done <<EOT 5.18 +apache apache/httpd.pid 5.19 +lighttpd lighttpd.pid 5.20 +EOT 5.21 +}
6.1 --- a/php-mhash/receipt Sun Nov 23 11:16:02 2008 +0000 6.2 +++ b/php-mhash/receipt Sun Nov 23 12:08:41 2008 +0000 6.3 @@ -46,3 +46,18 @@ 6.4 EOT 6.5 } 6.6 6.7 +# Pre and post remove commands for Tazpkg. 6.8 +pre_remove() 6.9 +{ 6.10 + sed -i '/.*=mhash.so.*/d' /etc/php.ini 6.11 + 6.12 + # Start Web server. 6.13 + while read daemon file; do 6.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 6.15 + /etc/init.d/$daemon start 6.16 + fi 6.17 + done <<EOT 6.18 +apache apache/httpd.pid 6.19 +lighttpd lighttpd.pid 6.20 +EOT 6.21 +}
7.1 --- a/php-mysql/receipt Sun Nov 23 11:16:02 2008 +0000 7.2 +++ b/php-mysql/receipt Sun Nov 23 12:08:41 2008 +0000 7.3 @@ -46,3 +46,18 @@ 7.4 EOT 7.5 } 7.6 7.7 +# Pre and post remove commands for Tazpkg. 7.8 +pre_remove() 7.9 +{ 7.10 + sed -i '/.*=mysql.so.*/d' /etc/php.ini 7.11 + 7.12 + # Start Web server. 7.13 + while read daemon file; do 7.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 7.15 + /etc/init.d/$daemon start 7.16 + fi 7.17 + done <<EOT 7.18 +apache apache/httpd.pid 7.19 +lighttpd lighttpd.pid 7.20 +EOT 7.21 +}
8.1 --- a/php-pgsql/receipt Sun Nov 23 11:16:02 2008 +0000 8.2 +++ b/php-pgsql/receipt Sun Nov 23 12:08:41 2008 +0000 8.3 @@ -46,3 +46,18 @@ 8.4 EOT 8.5 } 8.6 8.7 +# Pre and post remove commands for Tazpkg. 8.8 +pre_remove() 8.9 +{ 8.10 + sed -i '/.*=pgsql.so.*/d' /etc/php.ini 8.11 + 8.12 + # Start Web server. 8.13 + while read daemon file; do 8.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 8.15 + /etc/init.d/$daemon start 8.16 + fi 8.17 + done <<EOT 8.18 +apache apache/httpd.pid 8.19 +lighttpd lighttpd.pid 8.20 +EOT 8.21 +}