wok-6.x annotate php-mysql/receipt @ rev 1145

phpmyadmin: fix MAINTAINER
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 25 09:33:25 2008 +0000 (2008-07-25)
parents
children 41897da4a1db
rev   line source
pascal@1143 1 # SliTaz package receipt.
pascal@1143 2
pascal@1143 3 PACKAGE="php-mysql"
pascal@1143 4 VERSION="5.2.5"
pascal@1143 5 CATEGORY="development"
pascal@1143 6 SHORT_DESC="mysql module for PHP web programming language."
pascal@1143 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1143 8 DEPENDS="libmysqlclient php"
pascal@1143 9 WEB_SITE="http://www.php.net/"
pascal@1143 10 WANTED="php"
pascal@1143 11
pascal@1143 12 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1143 13 genpkg_rules()
pascal@1143 14 {
pascal@1143 15 mkdir -p $fs/usr/share/php
pascal@1143 16 cp $(find $_pkg | grep mysql.so) $fs/usr/share/php/
pascal@1143 17 }
pascal@1143 18
pascal@1143 19 # Post and pre install commans to stop
pascal@1143 20 # and restart Web server if needed.
pascal@1143 21 pre_install()
pascal@1143 22 {
pascal@1143 23 if [ -z "$1" -a -f "/var/run/lighttpd.pid" ]; then
pascal@1143 24 /etc/init.d/lighttpd stop
pascal@1143 25 fi
pascal@1143 26 }
pascal@1143 27
pascal@1143 28 post_install()
pascal@1143 29 {
pascal@1143 30 grep -q ^extension=msql.so $1/etc/php.ini || \
pascal@1143 31 sed -e 's|;.*extension=msql.so|; extension=msql.so\nextension=mysql.so|' -i $1/etc/php.ini
pascal@1143 32 # Start Web server.
pascal@1143 33 if [ -z "$1" -a ! -f "/var/run/lighttpd.pid" ]; then
pascal@1143 34 /etc/init.d/lighttpd start
pascal@1143 35 fi
pascal@1143 36 }
pascal@1143 37