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