wok view php-pdo-pgsql/receipt @ rev 6293

Added squashfs_lzma to kernel config. Added some more options to aufs in kernel. Added all missing modules into packages. Added scsi.patch to fix linux-headers scsi.h file to be compatible with glibc scsi.h. Up: aufs-utils to 20100916.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Sep 16 13:04:44 2010 +0000 (2010-09-16)
parents be154d2d3d27
children 11b005eb0d03
line source
1 # SliTaz package receipt.
3 PACKAGE="php-pdo-pgsql"
4 VERSION="5.2.11"
5 CATEGORY="development"
6 SHORT_DESC="PDO PgSQL module for PHP web programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="php php-mysql libpostgresqlclient"
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 pdo_pgsql.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 while read daemon file; do
24 if [ -z "$1" -a -f "/var/run/$file" ]; then
25 /etc/init.d/$daemon stop
26 fi
27 done <<EOT
28 apache apache/httpd.pid
29 lighttpd lighttpd.pid
30 EOT
31 }
33 post_install()
34 {
35 grep -q ^extension=pdo_pgsql.so $1/etc/php.ini || \
36 sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' -i $1/etc/php.ini
37 # Start Web server.
38 while read daemon file; do
39 [ -z "$1" ] || continue
40 if [ -z "$1" -a -f "/var/run/$file" ]; then
41 /etc/init.d/$daemon stop
42 sleep 2
43 fi
44 if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
45 /etc/init.d/$daemon start
46 fi
47 done <<EOT
48 apache apache/httpd.pid
49 lighttpd lighttpd.pid
50 EOT
51 }
53 # Pre and post remove commands for Tazpkg.
54 pre_remove()
55 {
56 sed -i '/.*=pdo_pgsql.so.*/d' /etc/php.ini
58 # Start Web server.
59 while read daemon file; do
60 if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
61 /etc/init.d/$daemon stop
62 sleep 2
63 /etc/init.d/$daemon start
64 fi
65 done <<EOT
66 apache apache/httpd.pid
67 lighttpd lighttpd.pid
68 EOT
69 }