wok-current rev 13087
Remove php-dbase & php-mhash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 25 18:44:53 2012 +0200 (2012-06-25) |
parents | fff81b2e2529 |
children | c97c94696513 |
files | php-dbase/receipt php-mhash/receipt php/receipt |
line diff
1.1 --- a/php-dbase/receipt Mon Jun 25 12:37:55 2012 +0000 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,68 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="php-dbase" 1.7 -VERSION="5.4.4" 1.8 -CATEGORY="development" 1.9 -SHORT_DESC="dbase module for PHP web programming language." 1.10 -MAINTAINER="pascal.bellard@slitaz.org" 1.11 -WEB_SITE="http://www.php.net/" 1.12 -WANTED="php" 1.13 - 1.14 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 -genpkg_rules() 1.16 -{ 1.17 - mkdir -p $fs/usr/share/php 1.18 - cp $(find $_pkg | grep dbase.so) $fs/usr/share/php/ 1.19 -} 1.20 - 1.21 -# Post and pre install commans to stop 1.22 -# and restart Web server if needed. 1.23 -pre_install() 1.24 -{ 1.25 - while read daemon file; do 1.26 - if [ -z "$1" -a -f "/var/run/$file" ]; then 1.27 - /etc/init.d/$daemon stop 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 -post_install() 1.36 -{ 1.37 - grep -q ^extension=dbase.so $1/etc/php.ini || \ 1.38 - sed -e 's|extension=msql.so|extension=msql.so\nextension=dbase.so|' -i $1/etc/php.ini 1.39 - # Start Web server. 1.40 - while read daemon file; do 1.41 - [ -z "$1" ] || continue 1.42 - if [ -f "/var/run/$file" ]; then 1.43 - /etc/init.d/$daemon stop 1.44 - sleep 2 1.45 - fi 1.46 - if [ -f /etc/init.d/$daemon ]; then 1.47 - /etc/init.d/$daemon start 1.48 - fi 1.49 - done <<EOT 1.50 -apache apache/httpd.pid 1.51 -lighttpd lighttpd.pid 1.52 -EOT 1.53 -} 1.54 - 1.55 -# Pre and post remove commands for Tazpkg. 1.56 -pre_remove() 1.57 -{ 1.58 - sed -i '/.*=dbase.so.*/d' /etc/php.ini 1.59 - 1.60 - # Start Web server. 1.61 - while read daemon file; do 1.62 - if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then 1.63 - /etc/init.d/$daemon stop 1.64 - sleep 2 1.65 - /etc/init.d/$daemon start 1.66 - fi 1.67 - done <<EOT 1.68 -apache apache/httpd.pid 1.69 -lighttpd lighttpd.pid 1.70 -EOT 1.71 -}
2.1 --- a/php-mhash/receipt Mon Jun 25 12:37:55 2012 +0000 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,69 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="php-mhash" 2.7 -VERSION="5.4.4" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="mhash module for PHP web programming language." 2.10 -MAINTAINER="pascal.bellard@slitaz.org" 2.11 -DEPENDS="php mhash" 2.12 -WEB_SITE="http://www.php.net/" 2.13 -WANTED="php" 2.14 - 2.15 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.16 -genpkg_rules() 2.17 -{ 2.18 - mkdir -p $fs/usr/share/php 2.19 - cp $(find $_pkg | grep mhash.so) $fs/usr/share/php/ 2.20 -} 2.21 - 2.22 -# Post and pre install commans to stop 2.23 -# and restart Web server if needed. 2.24 -pre_install() 2.25 -{ 2.26 - while read daemon file; do 2.27 - if [ -z "$1" -a -f "/var/run/$file" ]; then 2.28 - /etc/init.d/$daemon stop 2.29 - fi 2.30 - done <<EOT 2.31 -apache apache/httpd.pid 2.32 -lighttpd lighttpd.pid 2.33 -EOT 2.34 -} 2.35 - 2.36 -post_install() 2.37 -{ 2.38 - grep -q ^extension=mhash.so $1/etc/php.ini || \ 2.39 - sed -e 's|extension=msql.so|extension=msql.so\nextension=mhash.so|' -i $1/etc/php.ini 2.40 - # Start Web server. 2.41 - while read daemon file; do 2.42 - [ -z "$1" ] || continue 2.43 - if [ -f "/var/run/$file" ]; then 2.44 - /etc/init.d/$daemon stop 2.45 - sleep 2 2.46 - fi 2.47 - if [ -f /etc/init.d/$daemon ]; then 2.48 - /etc/init.d/$daemon start 2.49 - fi 2.50 - done <<EOT 2.51 -apache apache/httpd.pid 2.52 -lighttpd lighttpd.pid 2.53 -EOT 2.54 -} 2.55 - 2.56 -# Pre and post remove commands for Tazpkg. 2.57 -pre_remove() 2.58 -{ 2.59 - sed -i '/.*=mhash.so.*/d' /etc/php.ini 2.60 - 2.61 - # Start Web server. 2.62 - while read daemon file; do 2.63 - if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then 2.64 - /etc/init.d/$daemon stop 2.65 - sleep 2 2.66 - /etc/init.d/$daemon start 2.67 - fi 2.68 - done <<EOT 2.69 -apache apache/httpd.pid 2.70 -lighttpd lighttpd.pid 2.71 -EOT 2.72 -}
3.1 --- a/php/receipt Mon Jun 25 12:37:55 2012 +0000 3.2 +++ b/php/receipt Mon Jun 25 18:44:53 2012 +0200 3.3 @@ -15,7 +15,8 @@ 3.4 net-snmp-dev postgresql-dev gettext openssl-dev apache-dev apr-util-dev \ 3.5 c-client mhash-dev libpng-dev libunixODBC unixODBC-dev openldap-dev \ 3.6 libldap apr-dev libmcrypt-dev curl-dev cyrus-sasl-dev perl pkg-config \ 3.7 -jpeg-dev net-snmp-dev apache freetype-dev libtool bison" 3.8 +jpeg-dev net-snmp-dev apache freetype-dev libtool bison \ 3.9 +re2c coreutils-conditions" 3.10 3.11 # Rules to configure and make the package. 3.12 compile_rules()